Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
patrickbrouwers authored and StyleCIBot committed Mar 8, 2018
1 parent 6a712d4 commit cdc4510
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 34 deletions.
40 changes: 20 additions & 20 deletions src/Excel.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,26 @@ public function queue($export, string $filePath, string $disk = null, string $wr
return $this->queuedWriter->store($export, $filePath, $disk, $writerType);
}

/**
* Get the writer.
*
* @return Writer
*/
public function getWritter()
{
return $this->writer;
}

/**
* Get the queued writer.
*
* @return QueuedWriter
*/
public function getQueuedWritter()
{
return $this->queuedWriter;
}

/**
* @param object $export
* @param string|null $fileName
Expand Down Expand Up @@ -148,24 +168,4 @@ protected function findTypeByExtension(string $fileName)

return config('excel.extension_detector.' . strtolower($pathinfo['extension'] ?? ''));
}

/**
* Get the writer.
*
* @return Writer
*/
public function getWritter()
{
return $this->writer;
}

/**
* Get the queued writer.
*
* @return QueuedWriter
*/
public function getQueuedWritter()
{
return $this->queuedWriter;
}
}
20 changes: 10 additions & 10 deletions src/Facades/Excel.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@

class Excel extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'excel';
}

/**
* Replace the bound instance with a fake.
*
Expand All @@ -34,4 +24,14 @@ public static function fake()
app()->make('filesystem')
));
}

/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'excel';
}
}
1 change: 0 additions & 1 deletion src/Fakes/ExcelFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@

class ExcelFake extends Excel
{

}
5 changes: 3 additions & 2 deletions src/Fakes/QueuedWriterFake.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php namespace Maatwebsite\Excel\Fakes;
<?php

namespace Maatwebsite\Excel\Fakes;

use Maatwebsite\Excel\QueuedWriter;

class QueuedWriterFake extends QueuedWriter
{

}
1 change: 0 additions & 1 deletion src/Fakes/WriterFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@

class WriterFake extends Writer
{

}

0 comments on commit cdc4510

Please sign in to comment.