@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Spaghetti\XLSXParser\Exception; |
4 | 4 | |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | { |
17 | 17 | public function __construct(int $code, ?Throwable $previous = null) |
18 | 18 | { |
19 | - parent::__construct(message: 'Error opening file: ' . $this->getErrorMessage(errorCode: $code), previous: $previous); |
|
19 | + parent::__construct(message : 'Error opening file: ' . $this->getErrorMessage(errorCode : $code), previous : $previous); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | private function getErrorMessage(int $errorCode): string |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Spaghetti\XLSXParser\Exception; |
4 | 4 | |
@@ -11,6 +11,6 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function __construct(string $name, ?Throwable $previous = null) |
13 | 13 | { |
14 | - parent::__construct(message: sprintf('Invalid name: "%s"', $name), previous: $previous); |
|
14 | + parent::__construct(message : sprintf('Invalid name: "%s"', $name), previous : $previous); |
|
15 | 15 | } |
16 | 16 | } |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Spaghetti\XLSXParser\Exception; |
4 | 4 | |
@@ -11,6 +11,6 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function __construct(string $path, ?Throwable $previous = null) |
13 | 13 | { |
14 | - parent::__construct(message: sprintf('Not a XLSX file: %s', $path), previous: $previous); |
|
14 | + parent::__construct(message : sprintf('Not a XLSX file: %s', $path), previous : $previous); |
|
15 | 15 | } |
16 | 16 | } |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Spaghetti\XLSXParser; |
4 | 4 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | public function getRows(int $index): Iterator |
34 | 34 | { |
35 | - return new RowIterator(valueTransformer: $this->getValueTransformer(), path: $this->archive->extract(filePath: array_values(array: $this->getWorksheetPaths())[$index]), ); |
|
35 | + return new RowIterator(valueTransformer: $this->getValueTransformer(), path: $this->archive->extract(filePath: array_values(array: $this->getWorksheetPaths())[$index]),); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | public function getIndex(string $name): int |