@@ -111,7 +111,7 @@ |
||
111 | 111 | * |
112 | 112 | * @return false|string |
113 | 113 | */ |
114 | - public function stream_read(int $count): bool|string // @codingStandardsIgnoreLine |
|
114 | + public function stream_read(int $count): bool | string // @codingStandardsIgnoreLine |
|
115 | 115 | { |
116 | 116 | if ($this->stream_eof()) { |
117 | 117 | return false; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * Help some functions with large results operate correctly on 32-bit, |
9 | 9 | * by returning result as int when possible, float otherwise. |
10 | 10 | */ |
11 | - public static function evaluate(float|int $value): float|int |
|
11 | + public static function evaluate(float | int $value): float | int |
|
12 | 12 | { |
13 | 13 | $iValue = (int) $value; |
14 | 14 |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | return $this->yBestFitValues; |
297 | 297 | } |
298 | 298 | |
299 | - protected function calculateGoodnessOfFit(float $sumX, float $sumY, float $sumX2, float $sumY2, float $sumXY, float $meanX, float $meanY, bool|int $const): void |
|
299 | + protected function calculateGoodnessOfFit(float $sumX, float $sumY, float $sumX2, float $sumY2, float $sumXY, float $meanX, float $meanY, bool | int $const): void |
|
300 | 300 | { |
301 | 301 | $SSres = $SScov = $SStot = $SSsex = 0.0; |
302 | 302 | foreach ($this->xValues as $xKey => $xValue) { |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | { |
357 | 357 | return array_sum( |
358 | 358 | array_map( |
359 | - fn ($value): float|int => $value ** 2, |
|
359 | + fn ($value): float | int => $value ** 2, |
|
360 | 360 | $values |
361 | 361 | ) |
362 | 362 | ); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * |
34 | 34 | * @return float|string (string if result is an error) |
35 | 35 | */ |
36 | - public static function evaluate(array $database, array|null|int|string $field, array $criteria): string|float |
|
36 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria): string | float |
|
37 | 37 | { |
38 | 38 | $field = self::fieldExtract($database, $field); |
39 | 39 | if ($field === null) { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * the column label in which you specify a condition for the |
32 | 32 | * column. |
33 | 33 | */ |
34 | - public static function evaluate(array $database, array|null|int|string $field, array $criteria): float|string |
|
34 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria): float | string |
|
35 | 35 | { |
36 | 36 | $field = self::fieldExtract($database, $field); |
37 | 37 | if ($field === null) { |
@@ -62,12 +62,12 @@ |
||
62 | 62 | /** |
63 | 63 | * A timestamp. |
64 | 64 | */ |
65 | - public float|int $Time1st; |
|
65 | + public float | int $Time1st; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * A timestamp. |
69 | 69 | */ |
70 | - public float|int $Time2nd; |
|
70 | + public float | int $Time2nd; |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Starting block (small or big) for this PPS's data inside the container. |
@@ -62,14 +62,14 @@ |
||
62 | 62 | return array_key_exists($key, $this->cache); |
63 | 63 | } |
64 | 64 | |
65 | - public function set(string $key, mixed $value, null|int|DateInterval $ttl = null): bool |
|
65 | + public function set(string $key, mixed $value, null | int | DateInterval $ttl = null): bool |
|
66 | 66 | { |
67 | 67 | $this->cache[$key] = $value; |
68 | 68 | |
69 | 69 | return true; |
70 | 70 | } |
71 | 71 | |
72 | - public function setMultiple(iterable $values, null|int|DateInterval $ttl = null): bool |
|
72 | + public function setMultiple(iterable $values, null | int | DateInterval $ttl = null): bool |
|
73 | 73 | { |
74 | 74 | foreach ($values as $key => $value) { |
75 | 75 | $this->set($key, $value); |
@@ -213,7 +213,7 @@ |
||
213 | 213 | self::assertEqualsWithDelta($expectedResult, $sheet->getCell('Z99')->getCalculatedValue(), 1.0e-8, 'arguments supplied as ranges'); |
214 | 214 | } |
215 | 215 | |
216 | - private function convertToString(null|bool|float|int|string|Stringable $arg): string |
|
216 | + private function convertToString(null | bool | float | int | string | Stringable $arg): string |
|
217 | 217 | { |
218 | 218 | if (is_string($arg)) { |
219 | 219 | return '"' . $arg . '"'; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
30 | 30 | * with the same dimensions |
31 | 31 | */ |
32 | - public static function DELTA(array|float|bool|string|int $a, array|float|bool|string|int $b = 0.0): array|string|int |
|
32 | + public static function DELTA(array | float | bool | string | int $a, array | float | bool | string | int $b = 0.0): array | string | int |
|
33 | 33 | { |
34 | 34 | if (is_array($a) || is_array($b)) { |
35 | 35 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $a, $b); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
65 | 65 | * with the same dimensions |
66 | 66 | */ |
67 | - public static function GESTEP(array|float|bool|string|int $number, $step = 0.0): array|string|int |
|
67 | + public static function GESTEP(array | float | bool | string | int $number, $step = 0.0): array | string | int |
|
68 | 68 | { |
69 | 69 | if (is_array($number) || is_array($step)) { |
70 | 70 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $step); |