@@ -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 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | return; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - $files = new RII(iterator: new RDI(directory: $this->tmpPath, flags: FI::SKIP_DOTS), mode: RII::CHILD_FIRST, ); |
|
| 76 | + $files = new RII(iterator: new RDI(directory: $this->tmpPath, flags: FI::SKIP_DOTS), mode: RII::CHILD_FIRST,); |
|
| 77 | 77 | |
| 78 | 78 | foreach ($files as $file) { |
| 79 | 79 | if ($file->isDir()) { |
@@ -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), code: 0, previous: $previous); |
|
| 19 | + parent::__construct(message : 'Error opening file: ' . $this->getErrorMessage(errorCode : $code), code : 0, 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 $path, ?Throwable $previous = null) |
| 13 | 13 | { |
| 14 | - parent::__construct(message: sprintf('Not a XLSX file: %s', $path), code: 0, previous: $previous); |
|
| 14 | + parent::__construct(message : sprintf('Not a XLSX file: %s', $path), code : 0, 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 $name, ?Throwable $previous = null) |
| 13 | 13 | { |
| 14 | - parent::__construct(message: sprintf('Invalid name: "%s"', $name), code: 0, previous: $previous); |
|
| 14 | + parent::__construct(message : sprintf('Invalid name: "%s"', $name), code : 0, 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 |
@@ -67,6 +67,6 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | private function getStyles(): ?Styles |
| 69 | 69 | { |
| 70 | - return $this->styles ??= new Styles(path: $this->archive->extract(filePath: $this->getRelationships()->getStylesPath())); |
|
| 70 | + return $this->styles ??= new Styles(path : $this->archive->extract(filePath : $this->getRelationships()->getStylesPath())); |
|
| 71 | 71 | } |
| 72 | 72 | } |
@@ -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 | |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | private function processValue(): void |
| 114 | 114 | { |
| 115 | - $this->row?->addValue(columnIndex: $this->index, value: $this->valueTransformer->transform(value: $this->xml->readString(), type: $this->type, style: $this->style), ); |
|
| 115 | + $this->row?->addValue(columnIndex: $this->index, value: $this->valueTransformer->transform(value: $this->xml->readString(), type: $this->type, style: $this->style),); |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | private function processDefault(): void |