@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | /** |
253 | 253 | * Flush cell. |
254 | 254 | */ |
255 | - protected function flushCell(Worksheet $sheet, string $column, int|string $row, mixed &$cellContent, array $attributeArray): void |
|
255 | + protected function flushCell(Worksheet $sheet, string $column, int | string $row, mixed &$cellContent, array $attributeArray): void |
|
256 | 256 | { |
257 | 257 | if (is_string($cellContent)) { |
258 | 258 | // Simple String content |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | /** @var array<int, array<int, string>> */ |
302 | 302 | private static array $falseTrueArray = []; |
303 | 303 | |
304 | - private static function convertBoolean(?string $cellContent): bool|string |
|
304 | + private static function convertBoolean(?string $cellContent): bool | string |
|
305 | 305 | { |
306 | 306 | if ($cellContent === '1') { |
307 | 307 | return true; |
@@ -887,7 +887,7 @@ discard block |
||
887 | 887 | * TODO : |
888 | 888 | * - Implement to other propertie, such as border |
889 | 889 | */ |
890 | - private function applyInlineStyle(Worksheet &$sheet, int $row, string $column, array $attributeArray): void |
|
890 | + private function applyInlineStyle(Worksheet & $sheet, int $row, string $column, array $attributeArray): void |
|
891 | 891 | { |
892 | 892 | if (!isset($attributeArray['style'])) { |
893 | 893 | return; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | #[\PHPUnit\Framework\Attributes\DataProvider('providerXORLiteral')] |
21 | - public function testXORLiteral(mixed $expectedResult, float|string $formula): void |
|
21 | + public function testXORLiteral(mixed $expectedResult, float | string $formula): void |
|
22 | 22 | { |
23 | 23 | $sheet = $this->getSheet(); |
24 | 24 | $sheet->getCell('A1')->setValue("=XOR($formula)"); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @return mixed[]|string |
36 | 36 | */ |
37 | - public static function chooseCols(mixed $input, mixed ...$args): array|string |
|
37 | + public static function chooseCols(mixed $input, mixed ...$args): array | string |
|
38 | 38 | { |
39 | 39 | if (!is_array($input)) { |
40 | 40 | $input = [[$input]]; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @return mixed[]|string |
53 | 53 | */ |
54 | - public static function chooseRows(mixed $input, mixed ...$args): array|string |
|
54 | + public static function chooseRows(mixed $input, mixed ...$args): array | string |
|
55 | 55 | { |
56 | 56 | if (!is_array($input)) { |
57 | 57 | $input = [[$input]]; |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | return $outputArray; |
81 | 81 | } |
82 | 82 | |
83 | - private static function dropRows(array $array, mixed $offset): array|string |
|
83 | + private static function dropRows(array $array, mixed $offset): array | string |
|
84 | 84 | { |
85 | 85 | if ($offset === null) { |
86 | 86 | return $array; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | * |
113 | 113 | * @return mixed[]|string |
114 | 114 | */ |
115 | - public static function drop(mixed $input, mixed $rows = null, mixed $columns = null): array|string |
|
115 | + public static function drop(mixed $input, mixed $rows = null, mixed $columns = null): array | string |
|
116 | 116 | { |
117 | 117 | if (!is_array($input)) { |
118 | 118 | $input = [[$input]]; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | return self::transpose($outputArray3); |
135 | 135 | } |
136 | 136 | |
137 | - private static function takeRows(array $array, mixed $offset): array|string |
|
137 | + private static function takeRows(array $array, mixed $offset): array | string |
|
138 | 138 | { |
139 | 139 | if ($offset === null) { |
140 | 140 | return $array; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * |
166 | 166 | * @return mixed[]|string |
167 | 167 | */ |
168 | - public static function take(mixed $input, mixed $rows, mixed $columns = null): array|string |
|
168 | + public static function take(mixed $input, mixed $rows, mixed $columns = null): array | string |
|
169 | 169 | { |
170 | 170 | if (!is_array($input)) { |
171 | 171 | $input = [[$input]]; |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | * |
198 | 198 | * @return mixed[]|string |
199 | 199 | */ |
200 | - public static function expand(mixed $input, mixed $rows, mixed $columns = null, mixed $pad = '#N/A'): array|string |
|
200 | + public static function expand(mixed $input, mixed $rows, mixed $columns = null, mixed $pad = '#N/A'): array | string |
|
201 | 201 | { |
202 | 202 | if (!is_array($input)) { |
203 | 203 | $input = [[$input]]; |