@@ -21,7 +21,7 @@ |
||
21 | 21 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
22 | 22 | * with the same dimensions |
23 | 23 | */ |
24 | - public static function evaluate($number): array|string|int |
|
24 | + public static function evaluate($number): array | string | int |
|
25 | 25 | { |
26 | 26 | if (is_array($number)) { |
27 | 27 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
47 | 47 | * with the same dimensions |
48 | 48 | */ |
49 | - public static function pi($number): array|string|float |
|
49 | + public static function pi($number): array | string | float |
|
50 | 50 | { |
51 | 51 | if (is_array($number)) { |
52 | 52 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * If an array of values is passed for the $startDate or $endDays,arguments, then the returned result |
45 | 45 | * will also be an array with matching dimensions |
46 | 46 | */ |
47 | - public static function between($startDate = 0, $endDate = 0, $method = false): array|string|int |
|
47 | + public static function between($startDate = 0, $endDate = 0, $method = false): array | string | int |
|
48 | 48 | { |
49 | 49 | if (is_array($startDate) || is_array($endDate) || is_array($method)) { |
50 | 50 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $startDate, $endDate, $method); |
@@ -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); |
@@ -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) { |
@@ -316,7 +316,7 @@ |
||
316 | 316 | * |
317 | 317 | * @return string|string[] HEX color or array with HEX colors |
318 | 318 | */ |
319 | - public function getFillColor(): string|array |
|
319 | + public function getFillColor(): string | array |
|
320 | 320 | { |
321 | 321 | if ($this->fillColor === null) { |
322 | 322 | return ''; |