@@ -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): Comment |
|
2629 | + public function getComment(CellAddress | string | array $cellCoordinate): Comment |
|
2630 | 2630 | { |
2631 | 2631 | $cellAddress = Functions::trimSheetFromCellReference(Validations::validateCellAddress($cellCoordinate)); |
2632 | 2632 | |
@@ -2689,7 +2689,7 @@ discard block |
||
2689 | 2689 | * |
2690 | 2690 | * @return $this |
2691 | 2691 | */ |
2692 | - public function setSelectedCells(AddressRange|CellAddress|int|string|array $coordinate): static |
|
2692 | + public function setSelectedCells(AddressRange | CellAddress | int | string | array $coordinate): static |
|
2693 | 2693 | { |
2694 | 2694 | if (is_string($coordinate)) { |
2695 | 2695 | $coordinate = Validations::definedNameToCoordinate($coordinate, $this); |
@@ -3148,7 +3148,7 @@ discard block |
||
3148 | 3148 | * |
3149 | 3149 | * @return ($range is non-empty-string ? ($returnRange is true ? array{0: string, 1: string} : string) : ($returnRange is true ? array{0: null, 1: null} : null)) |
3150 | 3150 | */ |
3151 | - public static function extractSheetTitle(?string $range, bool $returnRange = false): array|null|string |
|
3151 | + public static function extractSheetTitle(?string $range, bool $returnRange = false): array | null | string |
|
3152 | 3152 | { |
3153 | 3153 | if (empty($range)) { |
3154 | 3154 | return $returnRange ? [null, null] : null; |