From 5276a7f41591c2fbf853a37a93942af95f0847d6 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Thu, 18 Jan 2024 10:28:20 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/Sheet.php | 111 ++++++++++++++++++++++---------------------------- 1 file changed, 49 insertions(+), 62 deletions(-) diff --git a/src/Sheet.php b/src/Sheet.php index fe7c49bb..fdc59b46 100644 --- a/src/Sheet.php +++ b/src/Sheet.php @@ -85,7 +85,7 @@ class Sheet private $worksheet; /** - * @param Worksheet $worksheet + * @param Worksheet $worksheet */ public function __construct(Worksheet $worksheet) { @@ -95,9 +95,8 @@ public function __construct(Worksheet $worksheet) } /** - * @param Spreadsheet $spreadsheet - * @param string|int $index - * + * @param Spreadsheet $spreadsheet + * @param string|int $index * @return Sheet * * @throws \PhpOffice\PhpSpreadsheet\Exception @@ -113,9 +112,8 @@ public static function make(Spreadsheet $spreadsheet, $index) } /** - * @param Spreadsheet $spreadsheet - * @param int $index - * + * @param Spreadsheet $spreadsheet + * @param int $index * @return Sheet * * @throws \PhpOffice\PhpSpreadsheet\Exception @@ -131,9 +129,8 @@ public static function byIndex(Spreadsheet $spreadsheet, int $index): Sheet } /** - * @param Spreadsheet $spreadsheet - * @param string $name - * + * @param Spreadsheet $spreadsheet + * @param string $name * @return Sheet * * @throws SheetNotFoundException @@ -148,7 +145,7 @@ public static function byName(Spreadsheet $spreadsheet, string $name): Sheet } /** - * @param object $sheetExport + * @param object $sheetExport * * @throws \PhpOffice\PhpSpreadsheet\Exception */ @@ -199,7 +196,7 @@ public function open($sheetExport) } /** - * @param object $sheetExport + * @param object $sheetExport * * @throws \PhpOffice\PhpSpreadsheet\Exception * @throws \PhpOffice\PhpSpreadsheet\Reader\Exception @@ -236,8 +233,8 @@ public function export($sheetExport) } /** - * @param object $import - * @param int $startRow + * @param object $import + * @param int $startRow */ public function import($import, int $startRow = 1) { @@ -325,12 +322,11 @@ public function import($import, int $startRow = 1) } /** - * @param object $import - * @param int|null $startRow - * @param null $nullValue - * @param bool $calculateFormulas - * @param bool $formatData - * + * @param object $import + * @param int|null $startRow + * @param null $nullValue + * @param bool $calculateFormulas + * @param bool $formatData * @return array */ public function toArray($import, int $startRow = null, $nullValue = null, $calculateFormulas = false, $formatData = false) @@ -377,12 +373,11 @@ public function toArray($import, int $startRow = null, $nullValue = null, $calcu } /** - * @param object $import - * @param int|null $startRow - * @param null $nullValue - * @param bool $calculateFormulas - * @param bool $formatData - * + * @param object $import + * @param int|null $startRow + * @param null $nullValue + * @param bool $calculateFormulas + * @param bool $formatData * @return Collection */ public function toCollection($import, int $startRow = null, $nullValue = null, $calculateFormulas = false, $formatData = false): Collection @@ -395,7 +390,7 @@ public function toCollection($import, int $startRow = null, $nullValue = null, $ } /** - * @param object $sheetExport + * @param object $sheetExport * * @throws \PhpOffice\PhpSpreadsheet\Exception */ @@ -442,8 +437,8 @@ public function close($sheetExport) } /** - * @param FromView $sheetExport - * @param int|null $sheetIndex + * @param FromView $sheetExport + * @param int|null $sheetIndex * * @throws \PhpOffice\PhpSpreadsheet\Reader\Exception */ @@ -465,8 +460,8 @@ public function fromView(FromView $sheetExport, $sheetIndex = null) } /** - * @param FromQuery $sheetExport - * @param Worksheet $worksheet + * @param FromQuery $sheetExport + * @param Worksheet $worksheet */ public function fromQuery(FromQuery $sheetExport, Worksheet $worksheet) { @@ -482,8 +477,8 @@ public function fromQuery(FromQuery $sheetExport, Worksheet $worksheet) } /** - * @param FromQuery $sheetExport - * @param Worksheet $worksheet + * @param FromQuery $sheetExport + * @param Worksheet $worksheet */ public function fromScout(FromQuery $sheetExport, Worksheet $worksheet) { @@ -501,7 +496,7 @@ public function fromScout(FromQuery $sheetExport, Worksheet $worksheet) } /** - * @param FromCollection $sheetExport + * @param FromCollection $sheetExport */ public function fromCollection(FromCollection $sheetExport) { @@ -509,7 +504,7 @@ public function fromCollection(FromCollection $sheetExport) } /** - * @param FromArray $sheetExport + * @param FromArray $sheetExport */ public function fromArray(FromArray $sheetExport) { @@ -517,7 +512,7 @@ public function fromArray(FromArray $sheetExport) } /** - * @param FromIterator $sheetExport + * @param FromIterator $sheetExport */ public function fromIterator(FromIterator $sheetExport) { @@ -531,7 +526,7 @@ public function fromIterator(FromIterator $sheetExport) } /** - * @param FromGenerator $sheetExport + * @param FromGenerator $sheetExport */ public function fromGenerator(FromGenerator $sheetExport) { @@ -545,9 +540,9 @@ public function fromGenerator(FromGenerator $sheetExport) } /** - * @param array $rows - * @param string|null $startCell - * @param bool $strictNullComparison + * @param array $rows + * @param string|null $startCell + * @param bool $strictNullComparison */ public function append(array $rows, string $startCell = null, bool $strictNullComparison = false) { @@ -575,8 +570,8 @@ public function autoSize() } /** - * @param string $column - * @param string $format + * @param string $column + * @param string $format * * @throws \PhpOffice\PhpSpreadsheet\Exception */ @@ -597,8 +592,7 @@ public function formatColumn(string $column, string $format) } /** - * @param int $chunkSize - * + * @param int $chunkSize * @return Sheet */ public function chunkSize(int $chunkSize) @@ -617,7 +611,7 @@ public function getDelegate() } /** - * @param Chart|Chart[] $charts + * @param Chart|Chart[] $charts */ public function addCharts($charts) { @@ -629,7 +623,7 @@ public function addCharts($charts) } /** - * @param BaseDrawing|BaseDrawing[] $drawings + * @param BaseDrawing|BaseDrawing[] $drawings */ public function addDrawings($drawings) { @@ -641,8 +635,7 @@ public function addDrawings($drawings) } /** - * @param string $concern - * + * @param string $concern * @return string */ public function hasConcern(string $concern): string @@ -651,8 +644,8 @@ public function hasConcern(string $concern): string } /** - * @param iterable $rows - * @param object $sheetExport + * @param iterable $rows + * @param object $sheetExport */ public function appendRows($rows, $sheetExport) { @@ -684,8 +677,7 @@ public function appendRows($rows, $sheetExport) } /** - * @param mixed $row - * + * @param mixed $row * @return array */ public static function mapArraybleRow($row): array @@ -710,7 +702,6 @@ public static function mapArraybleRow($row): array /** * @param $sheetImport - * * @return int */ public function getStartRow($sheetImport): int @@ -748,9 +739,8 @@ protected function validated(WithValidation $import, int $startRow, $rows) } /** - * @param string $lower - * @param string $upper - * + * @param string $lower + * @param string $upper * @return \Generator */ protected function buildColumnRange(string $lower, string $upper) @@ -775,8 +765,7 @@ private function hasRows(): bool } /** - * @param object $sheetExport - * + * @param object $sheetExport * @return bool */ private function hasStrictNullComparison($sheetExport): bool @@ -789,8 +778,7 @@ private function hasStrictNullComparison($sheetExport): bool } /** - * @param object|WithCustomChunkSize $export - * + * @param object|WithCustomChunkSize $export * @return int */ private function getChunkSize($export): int @@ -803,8 +791,7 @@ private function getChunkSize($export): int } /** - * @param object|WithValidation $import - * + * @param object|WithValidation $import * @return Closure|null */ private function getPreparationCallback($import)