@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * @param array{0: int, 1: int}|CellAddress|string $coordinate |
19 | 19 | */ |
20 | - public function __construct(int $breakType, CellAddress|string|array $coordinate, int $maxColOrRow = -1) |
|
20 | + public function __construct(int $breakType, CellAddress | string | array $coordinate, int $maxColOrRow = -1) |
|
21 | 21 | { |
22 | 22 | $coordinate = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
23 | 23 | $this->breakType = $breakType; |
@@ -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); |