@@ -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 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | private function matchDateFormat(XMLReader $xml): int |
| 88 | 88 | { |
| 89 | - return preg_match(pattern: '{^(\[\$[[:alpha:]]*-[0-9A-F]*\])*[hmsdy]}i', subject: $xml->getAttribute(name: 'formatCode'), ) ? self::FORMAT_DATE : self::FORMAT_DEFAULT; |
|
| 89 | + return preg_match(pattern: '{^(\[\$[[:alpha:]]*-[0-9A-F]*\])*[hmsdy]}i', subject: $xml->getAttribute(name: 'formatCode'),) ? self::FORMAT_DATE : self::FORMAT_DEFAULT; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | private function getValue(int $fmtId): int |
@@ -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 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | return $this->valid; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - private function processEnd(?Row &$row, ?int &$currentKey): bool |
|
| 79 | + private function processEnd(?Row&$row, ?int &$currentKey): bool |
|
| 80 | 80 | { |
| 81 | 81 | $currentValue = $row->getData(); |
| 82 | 82 | if (count(value: $currentValue)) { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | return false; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - private function process(?int &$columnIndex, ?int &$currentKey, ?Row &$row, ?string &$type, ?string &$style): void |
|
| 93 | + private function process(?int &$columnIndex, ?int &$currentKey, ?Row&$row, ?string &$type, ?string &$style): void |
|
| 94 | 94 | { |
| 95 | 95 | switch ($this->xml->name) { |
| 96 | 96 | case 'row': |