@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @param null|array{0: int, 1: int}|CellAddress|string $cellAddress Coordinate of the cell as a string, eg: 'C5'; |
16 | 16 | * or as an array of [$columnIndex, $row] (e.g. [3, 5]), or a CellAddress object. |
17 | 17 | */ |
18 | - public static function validateCellAddress(null|CellAddress|string|array $cellAddress): string |
|
18 | + public static function validateCellAddress(null | CellAddress | string | array $cellAddress): string |
|
19 | 19 | { |
20 | 20 | if (is_string($cellAddress)) { |
21 | 21 | [$worksheet, $address] = Worksheet::extractSheetTitle($cellAddress, true); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * or as an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 12]), |
41 | 41 | * or as a CellAddress or AddressRange object. |
42 | 42 | */ |
43 | - public static function validateCellOrCellRange(AddressRange|CellAddress|int|string|array $cellRange): string |
|
43 | + public static function validateCellOrCellRange(AddressRange | CellAddress | int | string | array $cellRange): string |
|
44 | 44 | { |
45 | 45 | if (is_string($cellRange) || is_numeric($cellRange)) { |
46 | 46 | // Convert a single column reference like 'A' to 'A:A', |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * or as an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 12]), |
64 | 64 | * or as an AddressRange object. |
65 | 65 | */ |
66 | - public static function validateCellRange(AddressRange|string|array $cellRange): string |
|
66 | + public static function validateCellRange(AddressRange | string | array $cellRange): string |
|
67 | 67 | { |
68 | 68 | if (is_string($cellRange)) { |
69 | 69 | [$worksheet, $addressRange] = Worksheet::extractSheetTitle($cellRange, true); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | true, // plotVisibleOnly |
182 | 182 | DataSeries::EMPTY_AS_GAP, // displayBlanksAs |
183 | 183 | null, // xAxisLabel |
184 | - $yAxisLabel, // yAxisLabel |
|
184 | + $yAxisLabel, // yAxisLabel |
|
185 | 185 | // added xAxis for correct date display |
186 | 186 | $xAxis, // xAxis |
187 | 187 | $yAxis, // yAxis |
@@ -291,13 +291,13 @@ discard block |
||
291 | 291 | null, // minor_tick_mark |
292 | 292 | $dateMinMax['min'], // minimum calculate this from the earliest data: 'Data!$A$2' |
293 | 293 | $dateMinMax['max'], // maximum calculate this from the last data: 'Data!$A$'.($nrows+1) |
294 | - $tickMarkInterval, // majorUnit determines tickmarks & Gridlines ? |
|
294 | + $tickMarkInterval, // majorUnit determines tickmarks & Gridlines ? |
|
295 | 295 | null, // minorUnit |
296 | 296 | null, // textRotation |
297 | 297 | null, // hidden |
298 | 298 | 'days', // baseTimeUnit |
299 | 299 | 'months', // majorTimeUnit, |
300 | - 'months', // minorTimeUnit |
|
300 | + 'months', // minorTimeUnit |
|
301 | 301 | ); |
302 | 302 | |
303 | 303 | $yAxisLabel = new Title('Value ($k)'); |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | true, // plotVisibleOnly |
318 | 318 | DataSeries::EMPTY_AS_GAP, // displayBlanksAs |
319 | 319 | null, // xAxisLabel |
320 | - $yAxisLabel, // yAxisLabel |
|
320 | + $yAxisLabel, // yAxisLabel |
|
321 | 321 | // added xAxis for correct date display |
322 | 322 | $xAxis, // xAxis |
323 | 323 | $yAxis, // yAxis |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | true, // plotVisibleOnly |
156 | 156 | DataSeries::EMPTY_AS_GAP, // displayBlanksAs |
157 | 157 | null, // xAxisLabel |
158 | - $yAxisLabel, // yAxisLabel |
|
158 | + $yAxisLabel, // yAxisLabel |
|
159 | 159 | // added xAxis for correct date display |
160 | 160 | $xAxis, // xAxis |
161 | 161 | // $yAxis, // yAxis |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | true, // plotVisibleOnly |
252 | 252 | DataSeries::EMPTY_AS_GAP, // displayBlanksAs |
253 | 253 | null, // xAxisLabel |
254 | - $yAxisLabel, // yAxisLabel |
|
254 | + $yAxisLabel, // yAxisLabel |
|
255 | 255 | // added xAxis for correct date display |
256 | 256 | $xAxis, // xAxis |
257 | 257 | // $yAxis, // yAxis |
@@ -129,7 +129,7 @@ |
||
129 | 129 | |
130 | 130 | $yAxis = new ChartAxis(); |
131 | 131 | $yAxis->setLineStyleProperties( |
132 | - 2.5, // width in points |
|
132 | + 2.5, // width in points |
|
133 | 133 | Properties::LINE_STYLE_COMPOUND_SIMPLE, |
134 | 134 | Properties::LINE_STYLE_DASH_DASH_DOT, |
135 | 135 | Properties::LINE_STYLE_CAP_FLAT, |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | $yAxis = new ChartAxis(); |
130 | 130 | $yAxis->setLineStyleProperties( |
131 | - 2.5, // width in points |
|
131 | + 2.5, // width in points |
|
132 | 132 | Properties::LINE_STYLE_COMPOUND_SIMPLE, |
133 | 133 | Properties::LINE_STYLE_DASH_DASH_DOT, |
134 | 134 | Properties::LINE_STYLE_CAP_FLAT, |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | true, // plotVisibleOnly |
167 | 167 | DataSeries::EMPTY_AS_GAP, // displayBlanksAs |
168 | 168 | null, // xAxisLabel |
169 | - $yAxisLabel, // yAxisLabel |
|
169 | + $yAxisLabel, // yAxisLabel |
|
170 | 170 | // added xAxis for correct date display |
171 | 171 | $xAxis, // xAxis |
172 | 172 | $yAxis, // yAxis |
@@ -36,12 +36,12 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * Created. |
38 | 38 | */ |
39 | - private float|int $created; |
|
39 | + private float | int $created; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Modified. |
43 | 43 | */ |
44 | - private float|int $modified; |
|
44 | + private float | int $modified; |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * Title. |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | return $this; |
141 | 141 | } |
142 | 142 | |
143 | - private static function intOrFloatTimestamp(null|bool|float|int|string $timestamp): float|int |
|
143 | + private static function intOrFloatTimestamp(null | bool | float | int | string $timestamp): float | int |
|
144 | 144 | { |
145 | 145 | if ($timestamp === null || is_bool($timestamp)) { |
146 | 146 | $timestamp = (float) (new DateTime())->format('U'); |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | /** |
162 | 162 | * Get Created. |
163 | 163 | */ |
164 | - public function getCreated(): float|int |
|
164 | + public function getCreated(): float | int |
|
165 | 165 | { |
166 | 166 | return $this->created; |
167 | 167 | } |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * |
172 | 172 | * @return $this |
173 | 173 | */ |
174 | - public function setCreated(null|float|int|string $timestamp): self |
|
174 | + public function setCreated(null | float | int | string $timestamp): self |
|
175 | 175 | { |
176 | 176 | $this->created = self::intOrFloatTimestamp($timestamp); |
177 | 177 | |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | /** |
182 | 182 | * Get Modified. |
183 | 183 | */ |
184 | - public function getModified(): float|int |
|
184 | + public function getModified(): float | int |
|
185 | 185 | { |
186 | 186 | return $this->modified; |
187 | 187 | } |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * |
192 | 192 | * @return $this |
193 | 193 | */ |
194 | - public function setModified(null|float|int|string $timestamp): self |
|
194 | + public function setModified(null | float | int | string $timestamp): self |
|
195 | 195 | { |
196 | 196 | $this->modified = self::intOrFloatTimestamp($timestamp); |
197 | 197 | |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | /** |
360 | 360 | * Get a Custom Property Value. |
361 | 361 | */ |
362 | - public function getCustomPropertyValue(string $propertyName): bool|int|float|string|null |
|
362 | + public function getCustomPropertyValue(string $propertyName): bool | int | float | string | null |
|
363 | 363 | { |
364 | 364 | if (isset($this->customProperties[$propertyName])) { |
365 | 365 | return $this->customProperties[$propertyName]['value']; |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | return $this->customProperties[$propertyName]['type'] ?? null; |
377 | 377 | } |
378 | 378 | |
379 | - private function identifyPropertyType(bool|int|float|string|null $propertyValue): string |
|
379 | + private function identifyPropertyType(bool | int | float | string | null $propertyValue): string |
|
380 | 380 | { |
381 | 381 | if (is_float($propertyValue)) { |
382 | 382 | return self::PROPERTY_TYPE_FLOAT; |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | * |
399 | 399 | * @return $this |
400 | 400 | */ |
401 | - public function setCustomProperty(string $propertyName, bool|int|float|string|null $propertyValue = '', ?string $propertyType = null): self |
|
401 | + public function setCustomProperty(string $propertyName, bool | int | float | string | null $propertyValue = '', ?string $propertyType = null): self |
|
402 | 402 | { |
403 | 403 | if (($propertyType === null) || (!in_array($propertyType, self::VALID_PROPERTY_TYPE_LIST))) { |
404 | 404 | $propertyType = $this->identifyPropertyType($propertyValue); |
@@ -413,32 +413,32 @@ discard block |
||
413 | 413 | } |
414 | 414 | |
415 | 415 | private const PROPERTY_TYPE_ARRAY = [ |
416 | - 'i' => self::PROPERTY_TYPE_INTEGER, // Integer |
|
417 | - 'i1' => self::PROPERTY_TYPE_INTEGER, // 1-Byte Signed Integer |
|
418 | - 'i2' => self::PROPERTY_TYPE_INTEGER, // 2-Byte Signed Integer |
|
419 | - 'i4' => self::PROPERTY_TYPE_INTEGER, // 4-Byte Signed Integer |
|
420 | - 'i8' => self::PROPERTY_TYPE_INTEGER, // 8-Byte Signed Integer |
|
421 | - 'int' => self::PROPERTY_TYPE_INTEGER, // Integer |
|
422 | - 'ui1' => self::PROPERTY_TYPE_INTEGER, // 1-Byte Unsigned Integer |
|
423 | - 'ui2' => self::PROPERTY_TYPE_INTEGER, // 2-Byte Unsigned Integer |
|
424 | - 'ui4' => self::PROPERTY_TYPE_INTEGER, // 4-Byte Unsigned Integer |
|
425 | - 'ui8' => self::PROPERTY_TYPE_INTEGER, // 8-Byte Unsigned Integer |
|
426 | - 'uint' => self::PROPERTY_TYPE_INTEGER, // Unsigned Integer |
|
427 | - 'f' => self::PROPERTY_TYPE_FLOAT, // Real Number |
|
428 | - 'r4' => self::PROPERTY_TYPE_FLOAT, // 4-Byte Real Number |
|
429 | - 'r8' => self::PROPERTY_TYPE_FLOAT, // 8-Byte Real Number |
|
430 | - 'decimal' => self::PROPERTY_TYPE_FLOAT, // Decimal |
|
431 | - 's' => self::PROPERTY_TYPE_STRING, // String |
|
432 | - 'empty' => self::PROPERTY_TYPE_STRING, // Empty |
|
433 | - 'null' => self::PROPERTY_TYPE_STRING, // Null |
|
434 | - 'lpstr' => self::PROPERTY_TYPE_STRING, // LPSTR |
|
435 | - 'lpwstr' => self::PROPERTY_TYPE_STRING, // LPWSTR |
|
436 | - 'bstr' => self::PROPERTY_TYPE_STRING, // Basic String |
|
437 | - 'd' => self::PROPERTY_TYPE_DATE, // Date and Time |
|
438 | - 'date' => self::PROPERTY_TYPE_DATE, // Date and Time |
|
439 | - 'filetime' => self::PROPERTY_TYPE_DATE, // File Time |
|
440 | - 'b' => self::PROPERTY_TYPE_BOOLEAN, // Boolean |
|
441 | - 'bool' => self::PROPERTY_TYPE_BOOLEAN, // Boolean |
|
416 | + 'i' => self::PROPERTY_TYPE_INTEGER, // Integer |
|
417 | + 'i1' => self::PROPERTY_TYPE_INTEGER, // 1-Byte Signed Integer |
|
418 | + 'i2' => self::PROPERTY_TYPE_INTEGER, // 2-Byte Signed Integer |
|
419 | + 'i4' => self::PROPERTY_TYPE_INTEGER, // 4-Byte Signed Integer |
|
420 | + 'i8' => self::PROPERTY_TYPE_INTEGER, // 8-Byte Signed Integer |
|
421 | + 'int' => self::PROPERTY_TYPE_INTEGER, // Integer |
|
422 | + 'ui1' => self::PROPERTY_TYPE_INTEGER, // 1-Byte Unsigned Integer |
|
423 | + 'ui2' => self::PROPERTY_TYPE_INTEGER, // 2-Byte Unsigned Integer |
|
424 | + 'ui4' => self::PROPERTY_TYPE_INTEGER, // 4-Byte Unsigned Integer |
|
425 | + 'ui8' => self::PROPERTY_TYPE_INTEGER, // 8-Byte Unsigned Integer |
|
426 | + 'uint' => self::PROPERTY_TYPE_INTEGER, // Unsigned Integer |
|
427 | + 'f' => self::PROPERTY_TYPE_FLOAT, // Real Number |
|
428 | + 'r4' => self::PROPERTY_TYPE_FLOAT, // 4-Byte Real Number |
|
429 | + 'r8' => self::PROPERTY_TYPE_FLOAT, // 8-Byte Real Number |
|
430 | + 'decimal' => self::PROPERTY_TYPE_FLOAT, // Decimal |
|
431 | + 's' => self::PROPERTY_TYPE_STRING, // String |
|
432 | + 'empty' => self::PROPERTY_TYPE_STRING, // Empty |
|
433 | + 'null' => self::PROPERTY_TYPE_STRING, // Null |
|
434 | + 'lpstr' => self::PROPERTY_TYPE_STRING, // LPSTR |
|
435 | + 'lpwstr' => self::PROPERTY_TYPE_STRING, // LPWSTR |
|
436 | + 'bstr' => self::PROPERTY_TYPE_STRING, // Basic String |
|
437 | + 'd' => self::PROPERTY_TYPE_DATE, // Date and Time |
|
438 | + 'date' => self::PROPERTY_TYPE_DATE, // Date and Time |
|
439 | + 'filetime' => self::PROPERTY_TYPE_DATE, // File Time |
|
440 | + 'b' => self::PROPERTY_TYPE_BOOLEAN, // Boolean |
|
441 | + 'bool' => self::PROPERTY_TYPE_BOOLEAN, // Boolean |
|
442 | 442 | ]; |
443 | 443 | |
444 | 444 | private const SPECIAL_TYPES = [ |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | /** |
450 | 450 | * Convert property to form desired by Excel. |
451 | 451 | */ |
452 | - public static function convertProperty(bool|int|float|string|null $propertyValue, string $propertyType): bool|int|float|string|null |
|
452 | + public static function convertProperty(bool | int | float | string | null $propertyValue, string $propertyType): bool | int | float | string | null |
|
453 | 453 | { |
454 | 454 | return self::SPECIAL_TYPES[$propertyType] ?? self::convertProperty2($propertyValue, $propertyType); |
455 | 455 | } |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | /** |
458 | 458 | * Convert property to form desired by Excel. |
459 | 459 | */ |
460 | - private static function convertProperty2(bool|int|float|string|null $propertyValue, string $type): bool|int|float|string|null |
|
460 | + private static function convertProperty2(bool | int | float | string | null $propertyValue, string $type): bool | int | float | string | null |
|
461 | 461 | { |
462 | 462 | $propertyType = self::convertPropertyType($type); |
463 | 463 | switch ($propertyType) { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
37 | 37 | * with the same dimensions |
38 | 38 | */ |
39 | - public static function fromString(null|array|string|int|bool|float $timeValue): array|string|Datetime|int|float |
|
39 | + public static function fromString(null | array | string | int | bool | float $timeValue): array | string | Datetime | int | float |
|
40 | 40 | { |
41 | 41 | if (is_array($timeValue)) { |
42 | 42 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue); |
@@ -1111,7 +1111,7 @@ discard block |
||
1111 | 1111 | * |
1112 | 1112 | * @return $this |
1113 | 1113 | */ |
1114 | - public function setCellValue(CellAddress|string|array $coordinate, mixed $value, ?IValueBinder $binder = null): static |
|
1114 | + public function setCellValue(CellAddress | string | array $coordinate, mixed $value, ?IValueBinder $binder = null): static |
|
1115 | 1115 | { |
1116 | 1116 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1117 | 1117 | $this->getCell($cellAddress)->setValue($value, $binder); |
@@ -1136,7 +1136,7 @@ discard block |
||
1136 | 1136 | * |
1137 | 1137 | * @return $this |
1138 | 1138 | */ |
1139 | - public function setCellValueExplicit(CellAddress|string|array $coordinate, mixed $value, string $dataType): static |
|
1139 | + public function setCellValueExplicit(CellAddress | string | array $coordinate, mixed $value, string $dataType): static |
|
1140 | 1140 | { |
1141 | 1141 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1142 | 1142 | $this->getCell($cellAddress)->setValueExplicit($value, $dataType); |
@@ -1157,7 +1157,7 @@ discard block |
||
1157 | 1157 | * the "active" cell, and any previous assignment becomes a disconnected reference because |
1158 | 1158 | * the active cell has changed. |
1159 | 1159 | */ |
1160 | - public function getCell(CellAddress|string|array $coordinate): Cell |
|
1160 | + public function getCell(CellAddress | string | array $coordinate): Cell |
|
1161 | 1161 | { |
1162 | 1162 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1163 | 1163 | |
@@ -1303,7 +1303,7 @@ discard block |
||
1303 | 1303 | * @param array{0: int, 1: int}|CellAddress|string $coordinate Coordinate of the cell as a string, eg: 'C5'; |
1304 | 1304 | * or as an array of [$columnIndex, $row] (e.g. [3, 5]), or a CellAddress object. |
1305 | 1305 | */ |
1306 | - public function cellExists(CellAddress|string|array $coordinate): bool |
|
1306 | + public function cellExists(CellAddress | string | array $coordinate): bool |
|
1307 | 1307 | { |
1308 | 1308 | $cellAddress = Validations::validateCellAddress($coordinate); |
1309 | 1309 | [$sheet, $finalCoordinate] = $this->getWorksheetAndCoordinate($cellAddress); |
@@ -1389,7 +1389,7 @@ discard block |
||
1389 | 1389 | * or passing in an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 8]), |
1390 | 1390 | * or a CellAddress or AddressRange object. |
1391 | 1391 | */ |
1392 | - public function getStyle(AddressRange|CellAddress|int|string|array $cellCoordinate): Style |
|
1392 | + public function getStyle(AddressRange | CellAddress | int | string | array $cellCoordinate): Style |
|
1393 | 1393 | { |
1394 | 1394 | $cellCoordinate = Validations::validateCellOrCellRange($cellCoordinate); |
1395 | 1395 | |
@@ -1596,7 +1596,7 @@ discard block |
||
1596 | 1596 | * |
1597 | 1597 | * @return $this |
1598 | 1598 | */ |
1599 | - public function setBreak(CellAddress|string|array $coordinate, int $break, int $max = -1): static |
|
1599 | + public function setBreak(CellAddress | string | array $coordinate, int $break, int $max = -1): static |
|
1600 | 1600 | { |
1601 | 1601 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1602 | 1602 | |
@@ -1693,7 +1693,7 @@ discard block |
||
1693 | 1693 | * |
1694 | 1694 | * @return $this |
1695 | 1695 | */ |
1696 | - public function mergeCells(AddressRange|string|array $range, string $behaviour = self::MERGE_CELL_CONTENT_EMPTY): static |
|
1696 | + public function mergeCells(AddressRange | string | array $range, string $behaviour = self::MERGE_CELL_CONTENT_EMPTY): static |
|
1697 | 1697 | { |
1698 | 1698 | $range = Functions::trimSheetFromCellReference(Validations::validateCellRange($range)); |
1699 | 1699 | |
@@ -1813,7 +1813,7 @@ discard block |
||
1813 | 1813 | * |
1814 | 1814 | * @return $this |
1815 | 1815 | */ |
1816 | - public function unmergeCells(AddressRange|string|array $range): static |
|
1816 | + public function unmergeCells(AddressRange | string | array $range): static |
|
1817 | 1817 | { |
1818 | 1818 | $range = Functions::trimSheetFromCellReference(Validations::validateCellRange($range)); |
1819 | 1819 | |
@@ -1866,7 +1866,7 @@ discard block |
||
1866 | 1866 | * |
1867 | 1867 | * @return $this |
1868 | 1868 | */ |
1869 | - public function protectCells(AddressRange|CellAddress|int|string|array $range, string $password = '', bool $alreadyHashed = false, string $name = '', string $securityDescriptor = ''): static |
|
1869 | + public function protectCells(AddressRange | CellAddress | int | string | array $range, string $password = '', bool $alreadyHashed = false, string $name = '', string $securityDescriptor = ''): static |
|
1870 | 1870 | { |
1871 | 1871 | $range = Functions::trimSheetFromCellReference(Validations::validateCellOrCellRange($range)); |
1872 | 1872 | |
@@ -1887,7 +1887,7 @@ discard block |
||
1887 | 1887 | * |
1888 | 1888 | * @return $this |
1889 | 1889 | */ |
1890 | - public function unprotectCells(AddressRange|CellAddress|int|string|array $range): static |
|
1890 | + public function unprotectCells(AddressRange | CellAddress | int | string | array $range): static |
|
1891 | 1891 | { |
1892 | 1892 | $range = Functions::trimSheetFromCellReference(Validations::validateCellOrCellRange($range)); |
1893 | 1893 | |
@@ -1946,7 +1946,7 @@ discard block |
||
1946 | 1946 | * |
1947 | 1947 | * @return $this |
1948 | 1948 | */ |
1949 | - public function setAutoFilter(AddressRange|string|array|AutoFilter $autoFilterOrRange): static |
|
1949 | + public function setAutoFilter(AddressRange | string | array | AutoFilter $autoFilterOrRange): static |
|
1950 | 1950 | { |
1951 | 1951 | if (is_object($autoFilterOrRange) && ($autoFilterOrRange instanceof AutoFilter)) { |
1952 | 1952 | $this->autoFilter = $autoFilterOrRange; |
@@ -2091,7 +2091,7 @@ discard block |
||
2091 | 2091 | * |
2092 | 2092 | * @return $this |
2093 | 2093 | */ |
2094 | - public function freezePane(null|CellAddress|string|array $coordinate, null|CellAddress|string|array $topLeftCell = null, bool $frozenSplit = false): static |
|
2094 | + public function freezePane(null | CellAddress | string | array $coordinate, null | CellAddress | string | array $topLeftCell = null, bool $frozenSplit = false): static |
|
2095 | 2095 | { |
2096 | 2096 | $this->panes = [ |
2097 | 2097 | 'bottomRight' => null, |
@@ -2601,7 +2601,7 @@ discard block |
||
2601 | 2601 | * |
2602 | 2602 | * @return $this |
2603 | 2603 | */ |
2604 | - public function removeComment(CellAddress|string|array $cellCoordinate): self |
|
2604 | + public function removeComment(CellAddress | string | array $cellCoordinate): self |
|
2605 | 2605 | { |
2606 | 2606 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($cellCoordinate)); |
2607 | 2607 | |
@@ -2626,7 +2626,7 @@ discard block |
||
2626 | 2626 | * @param array{0: int, 1: int}|CellAddress|string $cellCoordinate Coordinate of the cell as a string, eg: 'C5'; |
2627 | 2627 | * or as an array of [$columnIndex, $row] (e.g. [3, 5]), or a CellAddress object. |
2628 | 2628 | */ |
2629 | - public function getComment(CellAddress|string|array $cellCoordinate, bool $attachNew = true): Comment |
|
2629 | + public function getComment(CellAddress | string | array $cellCoordinate, bool $attachNew = true): Comment |
|
2630 | 2630 | { |
2631 | 2631 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($cellCoordinate)); |
2632 | 2632 | |
@@ -2691,7 +2691,7 @@ discard block |
||
2691 | 2691 | * |
2692 | 2692 | * @return $this |
2693 | 2693 | */ |
2694 | - public function setSelectedCells(AddressRange|CellAddress|int|string|array $coordinate): static |
|
2694 | + public function setSelectedCells(AddressRange | CellAddress | int | string | array $coordinate): static |
|
2695 | 2695 | { |
2696 | 2696 | if (is_string($coordinate)) { |
2697 | 2697 | $coordinate = Validations::definedNameToCoordinate($coordinate, $this); |
@@ -3150,7 +3150,7 @@ discard block |
||
3150 | 3150 | * |
3151 | 3151 | * @return ($range is non-empty-string ? ($returnRange is true ? array{0: string, 1: string} : string) : ($returnRange is true ? array{0: null, 1: null} : null)) |
3152 | 3152 | */ |
3153 | - public static function extractSheetTitle(?string $range, bool $returnRange = false): array|null|string |
|
3153 | + public static function extractSheetTitle(?string $range, bool $returnRange = false): array | null | string |
|
3154 | 3154 | { |
3155 | 3155 | if (empty($range)) { |
3156 | 3156 | return $returnRange ? [null, null] : null; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $this->formatBlocks = array_map([$this, 'mapFormatBlocks'], $formatBlocks); |
29 | 29 | } |
30 | 30 | |
31 | - private function mapFormatBlocks(DateTimeWizard|string $value): string |
|
31 | + private function mapFormatBlocks(DateTimeWizard | string $value): string |
|
32 | 32 | { |
33 | 33 | // Any date masking codes are returned as lower case values |
34 | 34 | if ($value instanceof DateTimeWizard) { |