@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | return ((float) $value) / self::PERCENTAGE_MULTIPLIER; |
179 | 179 | } |
180 | 180 | |
181 | - protected function setColorProperties(?string $color, null|float|int|string $alpha, ?string $colorType): array |
|
181 | + protected function setColorProperties(?string $color, null | float | int | string $alpha, ?string $colorType): array |
|
182 | 182 | { |
183 | 183 | return [ |
184 | 184 | 'type' => $colorType, |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | /** |
404 | 404 | * Get value of array element. |
405 | 405 | */ |
406 | - protected function getArrayElementsValue(array $properties, array|int|string $elements): mixed |
|
406 | + protected function getArrayElementsValue(array $properties, array | int | string $elements): mixed |
|
407 | 407 | { |
408 | 408 | $reference = &$properties; |
409 | 409 | if (!is_array($elements)) { |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | /** |
438 | 438 | * Get Glow Property. |
439 | 439 | */ |
440 | - public function getGlowProperty(array|string $property): null|array|float|int|string |
|
440 | + public function getGlowProperty(array | string $property): null | array | float | int | string |
|
441 | 441 | { |
442 | 442 | $retVal = null; |
443 | 443 | if ($property === 'size') { |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | /** |
459 | 459 | * Get Glow Color Property. |
460 | 460 | */ |
461 | - public function getGlowColor(string $propertyName): null|int|string |
|
461 | + public function getGlowColor(string $propertyName): null | int | string |
|
462 | 462 | { |
463 | 463 | return $this->glowColor->getColorProperty($propertyName); |
464 | 464 | } |
@@ -522,7 +522,7 @@ discard block |
||
522 | 522 | /** |
523 | 523 | * Set Shadow Properties. |
524 | 524 | */ |
525 | - public function setShadowProperties(int $presets, ?string $colorValue = null, ?string $colorType = null, null|float|int|string $colorAlpha = null, ?float $blur = null, ?int $angle = null, ?float $distance = null): void |
|
525 | + public function setShadowProperties(int $presets, ?string $colorValue = null, ?string $colorType = null, null | float | int | string $colorAlpha = null, ?float $blur = null, ?int $angle = null, ?float $distance = null): void |
|
526 | 526 | { |
527 | 527 | $this->activateObject()->setShadowPresetsProperties((int) $presets); |
528 | 528 | if ($presets === 0) { |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | * |
606 | 606 | * @return $this |
607 | 607 | */ |
608 | - protected function setShadowAngle(null|float|int|string $angle) |
|
608 | + protected function setShadowAngle(null | float | int | string $angle) |
|
609 | 609 | { |
610 | 610 | if (is_numeric($angle)) { |
611 | 611 | $this->shadowProperties['direction'] = $angle; |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | * |
639 | 639 | * @param string|string[] $elements |
640 | 640 | */ |
641 | - public function getShadowProperty($elements): array|string|null |
|
641 | + public function getShadowProperty($elements): array | string | null |
|
642 | 642 | { |
643 | 643 | if ($elements === 'color') { |
644 | 644 | return [ |
@@ -718,7 +718,7 @@ discard block |
||
718 | 718 | /** |
719 | 719 | * Get Line Color Property. |
720 | 720 | */ |
721 | - public function getLineColorProperty(string $propertyName): null|int|string |
|
721 | + public function getLineColorProperty(string $propertyName): null | int | string |
|
722 | 722 | { |
723 | 723 | return $this->lineColor->getColorProperty($propertyName); |
724 | 724 | } |
@@ -727,7 +727,7 @@ discard block |
||
727 | 727 | * Set Line Style Properties. |
728 | 728 | */ |
729 | 729 | public function setLineStyleProperties( |
730 | - null|float|int|string $lineWidth = null, |
|
730 | + null | float | int | string $lineWidth = null, |
|
731 | 731 | ?string $compoundType = '', |
732 | 732 | ?string $dashType = '', |
733 | 733 | ?string $capType = '', |
@@ -823,7 +823,7 @@ discard block |
||
823 | 823 | /** |
824 | 824 | * Get Line Style Property. |
825 | 825 | */ |
826 | - public function getLineStyleProperty(array|string $elements): ?string |
|
826 | + public function getLineStyleProperty(array | string $elements): ?string |
|
827 | 827 | { |
828 | 828 | return $this->getArrayElementsValue($this->lineStyleProperties, $elements); |
829 | 829 | } |
@@ -113,8 +113,8 @@ discard block |
||
113 | 113 | * @param DataSeriesValues[] $plotValues |
114 | 114 | */ |
115 | 115 | public function __construct( |
116 | - null|string $plotType = null, |
|
117 | - null|string $plotGrouping = null, |
|
116 | + null | string $plotType = null, |
|
117 | + null | string $plotGrouping = null, |
|
118 | 118 | array $plotOrder = [], |
119 | 119 | array $plotLabel = [], |
120 | 120 | array $plotCategory = [], |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * |
233 | 233 | * @return DataSeriesValues|false |
234 | 234 | */ |
235 | - public function getPlotLabelByIndex(int $index): bool|DataSeriesValues |
|
235 | + public function getPlotLabelByIndex(int $index): bool | DataSeriesValues |
|
236 | 236 | { |
237 | 237 | $keys = array_keys($this->plotLabel); |
238 | 238 | if (in_array($index, $keys)) { |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | * |
258 | 258 | * @return DataSeriesValues|false |
259 | 259 | */ |
260 | - public function getPlotCategoryByIndex(int $index): bool|DataSeriesValues |
|
260 | + public function getPlotCategoryByIndex(int $index): bool | DataSeriesValues |
|
261 | 261 | { |
262 | 262 | $keys = array_keys($this->plotCategory); |
263 | 263 | if (in_array($index, $keys)) { |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | * |
305 | 305 | * @return DataSeriesValues|false |
306 | 306 | */ |
307 | - public function getPlotValuesByIndex(int $index): bool|DataSeriesValues |
|
307 | + public function getPlotValuesByIndex(int $index): bool | DataSeriesValues |
|
308 | 308 | { |
309 | 309 | $keys = array_keys($this->plotValues); |
310 | 310 | if (in_array($index, $keys)) { |
@@ -51,12 +51,12 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * The object to be returned by the reader. Modified during load. |
53 | 53 | */ |
54 | - private BSE|BstoreContainer|DgContainer|DggContainer|\PhpOffice\PhpSpreadsheet\Shared\Escher|SpContainer|SpgrContainer $object; |
|
54 | + private BSE | BstoreContainer | DgContainer | DggContainer | \PhpOffice\PhpSpreadsheet\Shared\Escher | SpContainer | SpgrContainer $object; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Create a new Escher instance. |
58 | 58 | */ |
59 | - public function __construct(BSE|BstoreContainer|DgContainer|DggContainer|\PhpOffice\PhpSpreadsheet\Shared\Escher|SpContainer|SpgrContainer $object) |
|
59 | + public function __construct(BSE | BstoreContainer | DgContainer | DggContainer | \PhpOffice\PhpSpreadsheet\Shared\Escher | SpContainer | SpgrContainer $object) |
|
60 | 60 | { |
61 | 61 | $this->object = $object; |
62 | 62 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | /** |
86 | 86 | * Load Escher stream data. May be a partial Escher stream. |
87 | 87 | */ |
88 | - public function load(string $data): BSE|BstoreContainer|DgContainer|DggContainer|\PhpOffice\PhpSpreadsheet\Shared\Escher|SpContainer|SpgrContainer |
|
88 | + public function load(string $data): BSE | BstoreContainer | DgContainer | DggContainer | \PhpOffice\PhpSpreadsheet\Shared\Escher | SpContainer | SpgrContainer |
|
89 | 89 | { |
90 | 90 | $this->data = $data; |
91 | 91 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | /** |
18 | 18 | * The object we are writing. |
19 | 19 | */ |
20 | - private Blip|BSE|BstoreContainer|DgContainer|DggContainer|Escher|SpContainer|SpgrContainer|SharedEscher $object; |
|
20 | + private Blip | BSE | BstoreContainer | DgContainer | DggContainer | Escher | SpContainer | SpgrContainer | SharedEscher $object; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * The written binary data. |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * Constructor. |
39 | 39 | */ |
40 | - public function __construct(Blip|BSE|BstoreContainer|DgContainer|DggContainer|self|SpContainer|SpgrContainer|SharedEscher $object) |
|
40 | + public function __construct(Blip | BSE | BstoreContainer | DgContainer | DggContainer | self | SpContainer | SpgrContainer | SharedEscher $object) |
|
41 | 41 | { |
42 | 42 | $this->object = $object; |
43 | 43 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * If this is a height, then size is measured in pixels () |
49 | 49 | * or in points () if $unit is null. |
50 | 50 | */ |
51 | - protected float|int $size; |
|
51 | + protected float | int $size; |
|
52 | 52 | |
53 | 53 | protected ?string $unit = null; |
54 | 54 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * Phpstan bug has been fixed; this function allows us to |
57 | 57 | * pass Phpstan whether fixed or not. |
58 | 58 | */ |
59 | - private static function stanBugFixed(array|int|null $value): array |
|
59 | + private static function stanBugFixed(array | int | null $value): array |
|
60 | 60 | { |
61 | 61 | return is_array($value) ? $value : [null, null]; |
62 | 62 | } |
@@ -34,14 +34,14 @@ |
||
34 | 34 | * @phpstan-assert int|numeric-string $columnId |
35 | 35 | * @phpstan-assert int|numeric-string $rowId |
36 | 36 | */ |
37 | - private static function validateColumnAndRow(int|string $columnId, int|string $rowId): void |
|
37 | + private static function validateColumnAndRow(int | string $columnId, int | string $rowId): void |
|
38 | 38 | { |
39 | 39 | if (!is_numeric($columnId) || $columnId <= 0 || !is_numeric($rowId) || $rowId <= 0) { |
40 | 40 | throw new Exception('Row and Column Ids must be positive integer values'); |
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
44 | - public static function fromColumnAndRow(int|string $columnId, int|string $rowId, ?Worksheet $worksheet = null): self |
|
44 | + public static function fromColumnAndRow(int | string $columnId, int | string $rowId, ?Worksheet $worksheet = null): self |
|
45 | 45 | { |
46 | 46 | self::validateColumnAndRow($columnId, $rowId); |
47 | 47 |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * serialized timestamp. |
161 | 161 | * See https://en.wikipedia.org/wiki/ISO_8601 for details of the ISO-8601 standard format. |
162 | 162 | */ |
163 | - public static function convertIsoDate(mixed $value): float|int |
|
163 | + public static function convertIsoDate(mixed $value): float | int |
|
164 | 164 | { |
165 | 165 | if (!is_string($value)) { |
166 | 166 | throw new Exception('Non-string value supplied for Iso Date conversion'); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * |
196 | 196 | * @return DateTime PHP date/time object |
197 | 197 | */ |
198 | - public static function excelToDateTimeObject(float|int $excelTimestamp, null|DateTimeZone|string $timeZone = null): DateTime |
|
198 | + public static function excelToDateTimeObject(float | int $excelTimestamp, null | DateTimeZone | string $timeZone = null): DateTime |
|
199 | 199 | { |
200 | 200 | $timeZone = ($timeZone === null) ? self::getDefaultTimezone() : self::validateTimeZone($timeZone); |
201 | 201 | if (Functions::getCompatibilityMode() == Functions::COMPATIBILITY_EXCEL) { |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | * |
307 | 307 | * @return false|float MS Excel serialized date/time value |
308 | 308 | */ |
309 | - public static function timestampToExcel($unixTimestamp): bool|float |
|
309 | + public static function timestampToExcel($unixTimestamp): bool | float |
|
310 | 310 | { |
311 | 311 | if (!is_numeric($unixTimestamp)) { |
312 | 312 | return false; |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | * |
321 | 321 | * @return float Excel date/time value |
322 | 322 | */ |
323 | - public static function formattedPHPToExcel(int $year, int $month, int $day, int $hours = 0, int $minutes = 0, float|int $seconds = 0): float |
|
323 | + public static function formattedPHPToExcel(int $year, int $month, int $day, int $hours = 0, int $minutes = 0, float | int $seconds = 0): float |
|
324 | 324 | { |
325 | 325 | if (self::$excelCalendar == self::CALENDAR_WINDOWS_1900) { |
326 | 326 | // |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | * |
460 | 460 | * @return false|float Excel date/time serial value |
461 | 461 | */ |
462 | - public static function stringToExcel(string $dateValue): bool|float |
|
462 | + public static function stringToExcel(string $dateValue): bool | float |
|
463 | 463 | { |
464 | 464 | if (strlen($dateValue) < 2) { |
465 | 465 | return false; |
@@ -1110,7 +1110,7 @@ discard block |
||
1110 | 1110 | * |
1111 | 1111 | * @return $this |
1112 | 1112 | */ |
1113 | - public function setCellValue(CellAddress|string|array $coordinate, mixed $value, ?IValueBinder $binder = null): static |
|
1113 | + public function setCellValue(CellAddress | string | array $coordinate, mixed $value, ?IValueBinder $binder = null): static |
|
1114 | 1114 | { |
1115 | 1115 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1116 | 1116 | $this->getCell($cellAddress)->setValue($value, $binder); |
@@ -1135,7 +1135,7 @@ discard block |
||
1135 | 1135 | * |
1136 | 1136 | * @return $this |
1137 | 1137 | */ |
1138 | - public function setCellValueExplicit(CellAddress|string|array $coordinate, mixed $value, string $dataType): static |
|
1138 | + public function setCellValueExplicit(CellAddress | string | array $coordinate, mixed $value, string $dataType): static |
|
1139 | 1139 | { |
1140 | 1140 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1141 | 1141 | $this->getCell($cellAddress)->setValueExplicit($value, $dataType); |
@@ -1156,7 +1156,7 @@ discard block |
||
1156 | 1156 | * the "active" cell, and any previous assignment becomes a disconnected reference because |
1157 | 1157 | * the active cell has changed. |
1158 | 1158 | */ |
1159 | - public function getCell(CellAddress|string|array $coordinate): Cell |
|
1159 | + public function getCell(CellAddress | string | array $coordinate): Cell |
|
1160 | 1160 | { |
1161 | 1161 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1162 | 1162 | |
@@ -1302,7 +1302,7 @@ discard block |
||
1302 | 1302 | * @param array{0: int, 1: int}|CellAddress|string $coordinate Coordinate of the cell as a string, eg: 'C5'; |
1303 | 1303 | * or as an array of [$columnIndex, $row] (e.g. [3, 5]), or a CellAddress object. |
1304 | 1304 | */ |
1305 | - public function cellExists(CellAddress|string|array $coordinate): bool |
|
1305 | + public function cellExists(CellAddress | string | array $coordinate): bool |
|
1306 | 1306 | { |
1307 | 1307 | $cellAddress = Validations::validateCellAddress($coordinate); |
1308 | 1308 | [$sheet, $finalCoordinate] = $this->getWorksheetAndCoordinate($cellAddress); |
@@ -1388,7 +1388,7 @@ discard block |
||
1388 | 1388 | * or passing in an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 8]), |
1389 | 1389 | * or a CellAddress or AddressRange object. |
1390 | 1390 | */ |
1391 | - public function getStyle(AddressRange|CellAddress|int|string|array $cellCoordinate): Style |
|
1391 | + public function getStyle(AddressRange | CellAddress | int | string | array $cellCoordinate): Style |
|
1392 | 1392 | { |
1393 | 1393 | $cellCoordinate = Validations::validateCellOrCellRange($cellCoordinate); |
1394 | 1394 | |
@@ -1595,7 +1595,7 @@ discard block |
||
1595 | 1595 | * |
1596 | 1596 | * @return $this |
1597 | 1597 | */ |
1598 | - public function setBreak(CellAddress|string|array $coordinate, int $break, int $max = -1): static |
|
1598 | + public function setBreak(CellAddress | string | array $coordinate, int $break, int $max = -1): static |
|
1599 | 1599 | { |
1600 | 1600 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1601 | 1601 | |
@@ -1692,7 +1692,7 @@ discard block |
||
1692 | 1692 | * |
1693 | 1693 | * @return $this |
1694 | 1694 | */ |
1695 | - public function mergeCells(AddressRange|string|array $range, string $behaviour = self::MERGE_CELL_CONTENT_EMPTY): static |
|
1695 | + public function mergeCells(AddressRange | string | array $range, string $behaviour = self::MERGE_CELL_CONTENT_EMPTY): static |
|
1696 | 1696 | { |
1697 | 1697 | $range = Functions::trimSheetFromCellReference(Validations::validateCellRange($range)); |
1698 | 1698 | |
@@ -1812,7 +1812,7 @@ discard block |
||
1812 | 1812 | * |
1813 | 1813 | * @return $this |
1814 | 1814 | */ |
1815 | - public function unmergeCells(AddressRange|string|array $range): static |
|
1815 | + public function unmergeCells(AddressRange | string | array $range): static |
|
1816 | 1816 | { |
1817 | 1817 | $range = Functions::trimSheetFromCellReference(Validations::validateCellRange($range)); |
1818 | 1818 | |
@@ -1865,7 +1865,7 @@ discard block |
||
1865 | 1865 | * |
1866 | 1866 | * @return $this |
1867 | 1867 | */ |
1868 | - public function protectCells(AddressRange|CellAddress|int|string|array $range, string $password, bool $alreadyHashed = false): static |
|
1868 | + public function protectCells(AddressRange | CellAddress | int | string | array $range, string $password, bool $alreadyHashed = false): static |
|
1869 | 1869 | { |
1870 | 1870 | $range = Functions::trimSheetFromCellReference(Validations::validateCellOrCellRange($range)); |
1871 | 1871 | |
@@ -1886,7 +1886,7 @@ discard block |
||
1886 | 1886 | * |
1887 | 1887 | * @return $this |
1888 | 1888 | */ |
1889 | - public function unprotectCells(AddressRange|CellAddress|int|string|array $range): static |
|
1889 | + public function unprotectCells(AddressRange | CellAddress | int | string | array $range): static |
|
1890 | 1890 | { |
1891 | 1891 | $range = Functions::trimSheetFromCellReference(Validations::validateCellOrCellRange($range)); |
1892 | 1892 | |
@@ -1927,7 +1927,7 @@ discard block |
||
1927 | 1927 | * |
1928 | 1928 | * @return $this |
1929 | 1929 | */ |
1930 | - public function setAutoFilter(AddressRange|string|array|AutoFilter $autoFilterOrRange): static |
|
1930 | + public function setAutoFilter(AddressRange | string | array | AutoFilter $autoFilterOrRange): static |
|
1931 | 1931 | { |
1932 | 1932 | if (is_object($autoFilterOrRange) && ($autoFilterOrRange instanceof AutoFilter)) { |
1933 | 1933 | $this->autoFilter = $autoFilterOrRange; |
@@ -2072,7 +2072,7 @@ discard block |
||
2072 | 2072 | * |
2073 | 2073 | * @return $this |
2074 | 2074 | */ |
2075 | - public function freezePane(null|CellAddress|string|array $coordinate, null|CellAddress|string|array $topLeftCell = null, bool $frozenSplit = false): static |
|
2075 | + public function freezePane(null | CellAddress | string | array $coordinate, null | CellAddress | string | array $topLeftCell = null, bool $frozenSplit = false): static |
|
2076 | 2076 | { |
2077 | 2077 | $this->panes = [ |
2078 | 2078 | 'bottomRight' => null, |
@@ -2582,7 +2582,7 @@ discard block |
||
2582 | 2582 | * |
2583 | 2583 | * @return $this |
2584 | 2584 | */ |
2585 | - public function removeComment(CellAddress|string|array $cellCoordinate): self |
|
2585 | + public function removeComment(CellAddress | string | array $cellCoordinate): self |
|
2586 | 2586 | { |
2587 | 2587 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($cellCoordinate)); |
2588 | 2588 | |
@@ -2607,7 +2607,7 @@ discard block |
||
2607 | 2607 | * @param array{0: int, 1: int}|CellAddress|string $cellCoordinate Coordinate of the cell as a string, eg: 'C5'; |
2608 | 2608 | * or as an array of [$columnIndex, $row] (e.g. [3, 5]), or a CellAddress object. |
2609 | 2609 | */ |
2610 | - public function getComment(CellAddress|string|array $cellCoordinate): Comment |
|
2610 | + public function getComment(CellAddress | string | array $cellCoordinate): Comment |
|
2611 | 2611 | { |
2612 | 2612 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($cellCoordinate)); |
2613 | 2613 | |
@@ -2670,7 +2670,7 @@ discard block |
||
2670 | 2670 | * |
2671 | 2671 | * @return $this |
2672 | 2672 | */ |
2673 | - public function setSelectedCells(AddressRange|CellAddress|int|string|array $coordinate): static |
|
2673 | + public function setSelectedCells(AddressRange | CellAddress | int | string | array $coordinate): static |
|
2674 | 2674 | { |
2675 | 2675 | if (is_string($coordinate)) { |
2676 | 2676 | $coordinate = Validations::definedNameToCoordinate($coordinate, $this); |
@@ -3100,7 +3100,7 @@ discard block |
||
3100 | 3100 | * |
3101 | 3101 | * @return ($range is non-empty-string ? ($returnRange is true ? array{0: string, 1: string} : string) : ($returnRange is true ? array{0: null, 1: null} : null)) |
3102 | 3102 | */ |
3103 | - public static function extractSheetTitle(?string $range, bool $returnRange = false): array|null|string |
|
3103 | + public static function extractSheetTitle(?string $range, bool $returnRange = false): array | null | string |
|
3104 | 3104 | { |
3105 | 3105 | if (empty($range)) { |
3106 | 3106 | return $returnRange ? [null, null] : null; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * or passing in an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 8]), |
54 | 54 | * or an AddressRange object. |
55 | 55 | */ |
56 | - public function __construct(AddressRange|string|array $range = '', ?Worksheet $worksheet = null) |
|
56 | + public function __construct(AddressRange | string | array $range = '', ?Worksheet $worksheet = null) |
|
57 | 57 | { |
58 | 58 | if ($range !== '') { |
59 | 59 | [, $range] = Worksheet::extractSheetTitle(Validations::validateCellRange($range), true); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * Get AutoFilter Parent Worksheet. |
73 | 73 | */ |
74 | - public function getParent(): null|Worksheet |
|
74 | + public function getParent(): null | Worksheet |
|
75 | 75 | { |
76 | 76 | return $this->workSheet; |
77 | 77 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * or passing in an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 8]), |
106 | 106 | * or an AddressRange object. |
107 | 107 | */ |
108 | - public function setRange(AddressRange|string|array $range = ''): self |
|
108 | + public function setRange(AddressRange | string | array $range = ''): self |
|
109 | 109 | { |
110 | 110 | $this->evaluated = false; |
111 | 111 | // extract coordinate |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | * |
234 | 234 | * @return $this |
235 | 235 | */ |
236 | - public function setColumn(AutoFilter\Column|string $columnObjectOrString): static |
|
236 | + public function setColumn(AutoFilter\Column | string $columnObjectOrString): static |
|
237 | 237 | { |
238 | 238 | $this->evaluated = false; |
239 | 239 | if ((is_string($columnObjectOrString)) && (!empty($columnObjectOrString))) { |