From b7320c3450793ee2681af117916e213424794f86 Mon Sep 17 00:00:00 2001 From: Jiang Qinghua Date: Mon, 14 Dec 2020 07:31:48 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Importers/Sheet.php | 10 +++++----- tests/Exporters/CSV/FilesystemTest.php | 2 +- tests/Importers/FilesystemTest.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Importers/Sheet.php b/src/Importers/Sheet.php index 09e8b98..f0f5f0d 100644 --- a/src/Importers/Sheet.php +++ b/src/Importers/Sheet.php @@ -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; } diff --git a/tests/Exporters/CSV/FilesystemTest.php b/tests/Exporters/CSV/FilesystemTest.php index 37bf300..8d00358 100644 --- a/tests/Exporters/CSV/FilesystemTest.php +++ b/tests/Exporters/CSV/FilesystemTest.php @@ -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 diff --git a/tests/Importers/FilesystemTest.php b/tests/Importers/FilesystemTest.php index b4f8ae4..a44c914 100644 --- a/tests/Importers/FilesystemTest.php +++ b/tests/Importers/FilesystemTest.php @@ -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 {