@@ -1112,7 +1112,7 @@ discard block |
||
1112 | 1112 | * |
1113 | 1113 | * @return $this |
1114 | 1114 | */ |
1115 | - public function setCellValue(CellAddress|string|array $coordinate, mixed $value, ?IValueBinder $binder = null): static |
|
1115 | + public function setCellValue(CellAddress | string | array $coordinate, mixed $value, ?IValueBinder $binder = null): static |
|
1116 | 1116 | { |
1117 | 1117 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1118 | 1118 | $this->getCell($cellAddress)->setValue($value, $binder); |
@@ -1137,7 +1137,7 @@ discard block |
||
1137 | 1137 | * |
1138 | 1138 | * @return $this |
1139 | 1139 | */ |
1140 | - public function setCellValueExplicit(CellAddress|string|array $coordinate, mixed $value, string $dataType): static |
|
1140 | + public function setCellValueExplicit(CellAddress | string | array $coordinate, mixed $value, string $dataType): static |
|
1141 | 1141 | { |
1142 | 1142 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1143 | 1143 | $this->getCell($cellAddress)->setValueExplicit($value, $dataType); |
@@ -1158,7 +1158,7 @@ discard block |
||
1158 | 1158 | * the "active" cell, and any previous assignment becomes a disconnected reference because |
1159 | 1159 | * the active cell has changed. |
1160 | 1160 | */ |
1161 | - public function getCell(CellAddress|string|array $coordinate): Cell |
|
1161 | + public function getCell(CellAddress | string | array $coordinate): Cell |
|
1162 | 1162 | { |
1163 | 1163 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1164 | 1164 | |
@@ -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); |
@@ -1393,7 +1393,7 @@ discard block |
||
1393 | 1393 | * or passing in an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 8]), |
1394 | 1394 | * or a CellAddress or AddressRange object. |
1395 | 1395 | */ |
1396 | - public function getStyle(AddressRange|CellAddress|int|string|array $cellCoordinate): Style |
|
1396 | + public function getStyle(AddressRange | CellAddress | int | string | array $cellCoordinate): Style |
|
1397 | 1397 | { |
1398 | 1398 | if (is_string($cellCoordinate)) { |
1399 | 1399 | $cellCoordinate = Validations::definedNameToCoordinate($cellCoordinate, $this, true); |
@@ -1638,7 +1638,7 @@ discard block |
||
1638 | 1638 | * |
1639 | 1639 | * @return $this |
1640 | 1640 | */ |
1641 | - public function setBreak(CellAddress|string|array $coordinate, int $break, int $max = -1): static |
|
1641 | + public function setBreak(CellAddress | string | array $coordinate, int $break, int $max = -1): static |
|
1642 | 1642 | { |
1643 | 1643 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
1644 | 1644 | |
@@ -1735,7 +1735,7 @@ discard block |
||
1735 | 1735 | * |
1736 | 1736 | * @return $this |
1737 | 1737 | */ |
1738 | - public function mergeCells(AddressRange|string|array $range, string $behaviour = self::MERGE_CELL_CONTENT_EMPTY): static |
|
1738 | + public function mergeCells(AddressRange | string | array $range, string $behaviour = self::MERGE_CELL_CONTENT_EMPTY): static |
|
1739 | 1739 | { |
1740 | 1740 | $range = Functions::trimSheetFromCellReference(Validations::validateCellRange($range)); |
1741 | 1741 | |
@@ -1855,7 +1855,7 @@ discard block |
||
1855 | 1855 | * |
1856 | 1856 | * @return $this |
1857 | 1857 | */ |
1858 | - public function unmergeCells(AddressRange|string|array $range): static |
|
1858 | + public function unmergeCells(AddressRange | string | array $range): static |
|
1859 | 1859 | { |
1860 | 1860 | $range = Functions::trimSheetFromCellReference(Validations::validateCellRange($range)); |
1861 | 1861 | |
@@ -1908,7 +1908,7 @@ discard block |
||
1908 | 1908 | * |
1909 | 1909 | * @return $this |
1910 | 1910 | */ |
1911 | - public function protectCells(AddressRange|CellAddress|int|string|array $range, string $password = '', bool $alreadyHashed = false, string $name = '', string $securityDescriptor = ''): static |
|
1911 | + public function protectCells(AddressRange | CellAddress | int | string | array $range, string $password = '', bool $alreadyHashed = false, string $name = '', string $securityDescriptor = ''): static |
|
1912 | 1912 | { |
1913 | 1913 | $range = Functions::trimSheetFromCellReference(Validations::validateCellOrCellRange($range)); |
1914 | 1914 | |
@@ -1929,7 +1929,7 @@ discard block |
||
1929 | 1929 | * |
1930 | 1930 | * @return $this |
1931 | 1931 | */ |
1932 | - public function unprotectCells(AddressRange|CellAddress|int|string|array $range): static |
|
1932 | + public function unprotectCells(AddressRange | CellAddress | int | string | array $range): static |
|
1933 | 1933 | { |
1934 | 1934 | $range = Functions::trimSheetFromCellReference(Validations::validateCellOrCellRange($range)); |
1935 | 1935 | |
@@ -1970,7 +1970,7 @@ discard block |
||
1970 | 1970 | * |
1971 | 1971 | * @return $this |
1972 | 1972 | */ |
1973 | - public function setAutoFilter(AddressRange|string|array|AutoFilter $autoFilterOrRange): static |
|
1973 | + public function setAutoFilter(AddressRange | string | array | AutoFilter $autoFilterOrRange): static |
|
1974 | 1974 | { |
1975 | 1975 | if (is_object($autoFilterOrRange) && ($autoFilterOrRange instanceof AutoFilter)) { |
1976 | 1976 | $this->autoFilter = $autoFilterOrRange; |
@@ -2115,7 +2115,7 @@ discard block |
||
2115 | 2115 | * |
2116 | 2116 | * @return $this |
2117 | 2117 | */ |
2118 | - public function freezePane(null|CellAddress|string|array $coordinate, null|CellAddress|string|array $topLeftCell = null, bool $frozenSplit = false): static |
|
2118 | + public function freezePane(null | CellAddress | string | array $coordinate, null | CellAddress | string | array $topLeftCell = null, bool $frozenSplit = false): static |
|
2119 | 2119 | { |
2120 | 2120 | $this->panes = [ |
2121 | 2121 | 'bottomRight' => null, |
@@ -2625,7 +2625,7 @@ discard block |
||
2625 | 2625 | * |
2626 | 2626 | * @return $this |
2627 | 2627 | */ |
2628 | - public function removeComment(CellAddress|string|array $cellCoordinate): self |
|
2628 | + public function removeComment(CellAddress | string | array $cellCoordinate): self |
|
2629 | 2629 | { |
2630 | 2630 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($cellCoordinate)); |
2631 | 2631 | |
@@ -2650,7 +2650,7 @@ discard block |
||
2650 | 2650 | * @param array{0: int, 1: int}|CellAddress|string $cellCoordinate Coordinate of the cell as a string, eg: 'C5'; |
2651 | 2651 | * or as an array of [$columnIndex, $row] (e.g. [3, 5]), or a CellAddress object. |
2652 | 2652 | */ |
2653 | - public function getComment(CellAddress|string|array $cellCoordinate, bool $attachNew = true): Comment |
|
2653 | + public function getComment(CellAddress | string | array $cellCoordinate, bool $attachNew = true): Comment |
|
2654 | 2654 | { |
2655 | 2655 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($cellCoordinate)); |
2656 | 2656 | |
@@ -2715,7 +2715,7 @@ discard block |
||
2715 | 2715 | * |
2716 | 2716 | * @return $this |
2717 | 2717 | */ |
2718 | - public function setSelectedCells(AddressRange|CellAddress|int|string|array $coordinate): static |
|
2718 | + public function setSelectedCells(AddressRange | CellAddress | int | string | array $coordinate): static |
|
2719 | 2719 | { |
2720 | 2720 | if (is_string($coordinate)) { |
2721 | 2721 | $coordinate = Validations::definedNameToCoordinate($coordinate, $this); |
@@ -3185,7 +3185,7 @@ discard block |
||
3185 | 3185 | * |
3186 | 3186 | * @return ($range is non-empty-string ? ($returnRange is true ? array{0: string, 1: string} : string) : ($returnRange is true ? array{0: null, 1: null} : null)) |
3187 | 3187 | */ |
3188 | - public static function extractSheetTitle(?string $range, bool $returnRange = false, bool $unapostrophize = false): array|null|string |
|
3188 | + public static function extractSheetTitle(?string $range, bool $returnRange = false, bool $unapostrophize = false): array | null | string |
|
3189 | 3189 | { |
3190 | 3190 | if (empty($range)) { |
3191 | 3191 | return $returnRange ? [null, null] : null; |