Skip to content

Commit

Permalink
Merge pull request #9 from jqhph/analysis-PxWWRK
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
jqhph authored Dec 14, 2020
2 parents 8c50340 + b7320c3 commit da0565a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/Importers/Sheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,18 @@ public function filter(callable $callback)
*/
public function each(callable $callback)
{
$headings = [];
$headings = [];
$originalHeaders = [];
$headingLine = null;
$headingLine = null;

foreach ($this->sheet->getRowIterator() as $line => $row) {
$row = $row instanceof Row ? $row->toArray() : (is_array($row) ? $row : []);

if (!$this->withoutHeadings()) {
if (! $this->withoutHeadings()) {
if ($headingLine === null && $this->isHeadingRow($line, $row)) {
$headingLine = $line;
$headingLine = $line;
$originalHeaders = $row;
$headings = $this->formatHeadings($row);
$headings = $this->formatHeadings($row);

continue;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Exporters/CSV/FilesystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Dcat\EasyExcel\Excel;
use League\Flysystem\Adapter\Local;
use League\Flysystem\Local\LocalFilesystemAdapter;
use League\Flysystem\Filesystem;
use League\Flysystem\Local\LocalFilesystemAdapter;
use Tests\TestCase;

class FilesystemTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Importers/FilesystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Dcat\EasyExcel\Excel;
use League\Flysystem\Adapter\Local;
use League\Flysystem\Local\LocalFilesystemAdapter;
use League\Flysystem\Filesystem;
use League\Flysystem\Local\LocalFilesystemAdapter;

class FilesystemTest extends ImporterTest
{
Expand Down

0 comments on commit da0565a

Please sign in to comment.