@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
28 | 28 | * with the same dimensions |
29 | 29 | */ |
30 | - public static function hour(mixed $timeValue): array|string|int |
|
30 | + public static function hour(mixed $timeValue): array | string | int |
|
31 | 31 | { |
32 | 32 | if (is_array($timeValue)) { |
33 | 33 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
69 | 69 | * with the same dimensions |
70 | 70 | */ |
71 | - public static function minute(mixed $timeValue): array|string|int |
|
71 | + public static function minute(mixed $timeValue): array | string | int |
|
72 | 72 | { |
73 | 73 | if (is_array($timeValue)) { |
74 | 74 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
110 | 110 | * with the same dimensions |
111 | 111 | */ |
112 | - public static function second(mixed $timeValue): array|string|int |
|
112 | + public static function second(mixed $timeValue): array | string | int |
|
113 | 113 | { |
114 | 114 | if (is_array($timeValue)) { |
115 | 115 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue); |
@@ -439,7 +439,7 @@ |
||
439 | 439 | * @deprecated 1.23.0 Use the isLogical() method in the Information\Value class instead |
440 | 440 | * @see Information\Value::isLogical() |
441 | 441 | */ |
442 | - public static function isLogical(mixed $value = null): bool|array |
|
442 | + public static function isLogical(mixed $value = null): bool | array |
|
443 | 443 | { |
444 | 444 | return Information\Value::isLogical($value); |
445 | 445 | } |
@@ -90,7 +90,7 @@ |
||
90 | 90 | |
91 | 91 | $meanSquareDeviations[$delimiter] = array_reduce( |
92 | 92 | $series, |
93 | - fn ($sum, $value): int|float => $sum + ($value - $median) ** 2 |
|
93 | + fn ($sum, $value): int | float => $sum + ($value - $median) ** 2 |
|
94 | 94 | ) / count($series); |
95 | 95 | } |
96 | 96 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * If an array of values is passed as the $testValue argument, then the returned result will also be |
49 | 49 | * an array with the same dimensions |
50 | 50 | */ |
51 | - public static function cell(mixed $row, mixed $column, mixed $relativity = 1, mixed $referenceStyle = true, mixed $sheetName = ''): array|string |
|
51 | + public static function cell(mixed $row, mixed $column, mixed $relativity = 1, mixed $referenceStyle = true, mixed $sheetName = ''): array | string |
|
52 | 52 | { |
53 | 53 | if ( |
54 | 54 | is_array($row) || is_array($column) |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
31 | 31 | * with the same dimensions |
32 | 32 | */ |
33 | - public static function distribution(mixed $sampleSuccesses, mixed $sampleNumber, mixed $populationSuccesses, mixed $populationNumber): array|string|float |
|
33 | + public static function distribution(mixed $sampleSuccesses, mixed $sampleNumber, mixed $populationSuccesses, mixed $populationNumber): array | string | float |
|
34 | 34 | { |
35 | 35 | if ( |
36 | 36 | is_array($sampleSuccesses) || is_array($sampleNumber) |
@@ -2144,7 +2144,7 @@ discard block |
||
2144 | 2144 | * @param float $scale_x The horizontal scale |
2145 | 2145 | * @param float $scale_y The vertical scale |
2146 | 2146 | */ |
2147 | - public function insertBitmap($row, $col, GdImage|string $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1): void |
|
2147 | + public function insertBitmap($row, $col, GdImage | string $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1): void |
|
2148 | 2148 | { |
2149 | 2149 | $bitmap_array = $bitmap instanceof GdImage |
2150 | 2150 | ? $this->processBitmapGd($bitmap) |
@@ -2286,7 +2286,7 @@ discard block |
||
2286 | 2286 | * @param int $rwB Row containing bottom right corner of object |
2287 | 2287 | * @param int $dyB Distance from bottom of cell |
2288 | 2288 | */ |
2289 | - private function writeObjPicture(int $colL, int $dxL, int $rwT, int|float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void |
|
2289 | + private function writeObjPicture(int $colL, int $dxL, int $rwT, int | float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void |
|
2290 | 2290 | { |
2291 | 2291 | $record = 0x005D; // Record identifier |
2292 | 2292 | $length = 0x003C; // Bytes to follow |
@@ -424,7 +424,7 @@ |
||
424 | 424 | { |
425 | 425 | return array_sum( |
426 | 426 | array_map( |
427 | - fn ($value): float|int => $value ** 2, |
|
427 | + fn ($value): float | int => $value ** 2, |
|
428 | 428 | $values |
429 | 429 | ) |
430 | 430 | ); |
@@ -158,7 +158,7 @@ |
||
158 | 158 | /** |
159 | 159 | * @param AddressRange|array{0: int, 1: int, 2: int, 3: int}|array{0: int, 1: int}|string $fullRange |
160 | 160 | */ |
161 | - public function xtestSetRangeValidRange(string|array|AddressRange $fullRange, string $actualRange): void |
|
161 | + public function xtestSetRangeValidRange(string | array | AddressRange $fullRange, string $actualRange): void |
|
162 | 162 | { |
163 | 163 | $table = new Table(self::INITIAL_RANGE); |
164 | 164 |
@@ -63,7 +63,7 @@ |
||
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|array|string $cellRange): string |
|
66 | + public static function validateCellRange(AddressRange | array | string $cellRange): string |
|
67 | 67 | { |
68 | 68 | if (is_string($cellRange)) { |
69 | 69 | [$worksheet, $addressRange] = Worksheet::extractSheetTitle($cellRange, true); |