Skip to content

Commit da0565a

Browse files
authored
Merge pull request #9 from jqhph/analysis-PxWWRK
Apply fixes from StyleCI
2 parents 8c50340 + b7320c3 commit da0565a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Importers/Sheet.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@ public function filter(callable $callback)
9898
*/
9999
public function each(callable $callback)
100100
{
101-
$headings = [];
101+
$headings = [];
102102
$originalHeaders = [];
103-
$headingLine = null;
103+
$headingLine = null;
104104

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

108-
if (!$this->withoutHeadings()) {
108+
if (! $this->withoutHeadings()) {
109109
if ($headingLine === null && $this->isHeadingRow($line, $row)) {
110-
$headingLine = $line;
110+
$headingLine = $line;
111111
$originalHeaders = $row;
112-
$headings = $this->formatHeadings($row);
112+
$headings = $this->formatHeadings($row);
113113

114114
continue;
115115
}

tests/Exporters/CSV/FilesystemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use Dcat\EasyExcel\Excel;
66
use League\Flysystem\Adapter\Local;
7-
use League\Flysystem\Local\LocalFilesystemAdapter;
87
use League\Flysystem\Filesystem;
8+
use League\Flysystem\Local\LocalFilesystemAdapter;
99
use Tests\TestCase;
1010

1111
class FilesystemTest extends TestCase

tests/Importers/FilesystemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use Dcat\EasyExcel\Excel;
66
use League\Flysystem\Adapter\Local;
7-
use League\Flysystem\Local\LocalFilesystemAdapter;
87
use League\Flysystem\Filesystem;
8+
use League\Flysystem\Local\LocalFilesystemAdapter;
99

1010
class FilesystemTest extends ImporterTest
1111
{

0 commit comments

Comments
 (0)