@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * |
213 | 213 | * @return array|string The result, or a string containing an error |
214 | 214 | */ |
215 | - public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array |
|
215 | + public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array |
|
216 | 216 | { |
217 | 217 | $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const); |
218 | 218 | $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats); |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | * |
274 | 274 | * @return array|string The result, or a string containing an error |
275 | 275 | */ |
276 | - public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array |
|
276 | + public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array |
|
277 | 277 | { |
278 | 278 | $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const); |
279 | 279 | $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats); |
@@ -114,7 +114,7 @@ |
||
114 | 114 | * accuracy if I can get my head round the mathematics |
115 | 115 | * (as described at) http://home.online.no/~pjacklam/notes/invnorm/ |
116 | 116 | */ |
117 | - public static function inverse($probability, $mean, $stdDev): array|string|float |
|
117 | + public static function inverse($probability, $mean, $stdDev): array | string | float |
|
118 | 118 | { |
119 | 119 | if (is_array($probability) || is_array($mean) || is_array($stdDev)) { |
120 | 120 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $probability, $mean, $stdDev); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
23 | 23 | * with the same dimensions |
24 | 24 | */ |
25 | - public static function gamma($value): array|string|float |
|
25 | + public static function gamma($value): array | string | float |
|
26 | 26 | { |
27 | 27 | if (is_array($value)) { |
28 | 28 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
131 | 131 | * with the same dimensions |
132 | 132 | */ |
133 | - public static function ln($value): array|string|float |
|
133 | + public static function ln($value): array | string | float |
|
134 | 134 | { |
135 | 135 | if (is_array($value)) { |
136 | 136 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * the column label in which you specify a condition for the |
31 | 31 | * column. |
32 | 32 | */ |
33 | - public static function evaluate($database, $field, $criteria): string|int |
|
33 | + public static function evaluate($database, $field, $criteria): string | int |
|
34 | 34 | { |
35 | 35 | $field = self::fieldExtract($database, $field); |
36 | 36 | 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($database, $field, $criteria, bool $returnError = true): string|int |
|
34 | + public static function evaluate($database, $field, $criteria, bool $returnError = true): string | int |
|
35 | 35 | { |
36 | 36 | $field = self::fieldExtract($database, $field); |
37 | 37 | if ($returnError && $field === null) { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
46 | 46 | * with the same dimensions |
47 | 47 | */ |
48 | - public static function toBinary($value, $places = null): array|string |
|
48 | + public static function toBinary($value, $places = null): array | string |
|
49 | 49 | { |
50 | 50 | if (is_array($value) || is_array($places)) { |
51 | 51 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
103 | 103 | * with the same dimensions |
104 | 104 | */ |
105 | - public static function toHex($value, $places = null): array|string |
|
105 | + public static function toHex($value, $places = null): array | string |
|
106 | 106 | { |
107 | 107 | if (is_array($value) || is_array($places)) { |
108 | 108 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
179 | 179 | * with the same dimensions |
180 | 180 | */ |
181 | - public static function toOctal($value, $places = null): array|string |
|
181 | + public static function toOctal($value, $places = null): array | string |
|
182 | 182 | { |
183 | 183 | if (is_array($value) || is_array($places)) { |
184 | 184 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |
@@ -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($row, $column, $relativity = 1, $referenceStyle = true, $sheetName = ''): array|string |
|
51 | + public static function cell($row, $column, $relativity = 1, $referenceStyle = true, $sheetName = ''): array | string |
|
52 | 52 | { |
53 | 53 | if ( |
54 | 54 | is_array($row) || is_array($column) || |
@@ -289,7 +289,7 @@ |
||
289 | 289 | * |
290 | 290 | * @return int|string The extracted colour component |
291 | 291 | */ |
292 | - private static function getColourComponent($rgbValue, $offset, $hex = true): string|int |
|
292 | + private static function getColourComponent($rgbValue, $offset, $hex = true): string | int |
|
293 | 293 | { |
294 | 294 | $colour = substr($rgbValue, $offset, 2) ?: ''; |
295 | 295 | if (preg_match('/^[0-9a-f]{2}$/i', $colour) !== 1) { |
@@ -73,7 +73,7 @@ |
||
73 | 73 | * |
74 | 74 | * @return int |
75 | 75 | */ |
76 | - public function getPlotSeriesCount(): int|float |
|
76 | + public function getPlotSeriesCount(): int | float |
|
77 | 77 | { |
78 | 78 | $seriesCount = 0; |
79 | 79 | foreach ($this->plotSeries as $plot) { |