@@ -17,7 +17,7 @@ |
||
17 | 17 | $this->callback = $callback; |
18 | 18 | } |
19 | 19 | |
20 | - public function execute(float $probability): string|int|float |
|
20 | + public function execute(float $probability): string | int | float |
|
21 | 21 | { |
22 | 22 | $xLo = 100; |
23 | 23 | $xHi = 0; |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @return array|float|string If an array of numbers is passed as an argument, then the returned result will also be an array |
24 | 24 | * with the same dimensions |
25 | 25 | */ |
26 | - public static function distribution(mixed $value): array|string|float |
|
26 | + public static function distribution(mixed $value): array | string | float |
|
27 | 27 | { |
28 | 28 | if (is_array($value)) { |
29 | 29 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * @return array|float|string If an array of numbers is passed as an argument, then the returned result will also be an array |
56 | 56 | * with the same dimensions |
57 | 57 | */ |
58 | - public static function inverse(mixed $probability): array|string|float |
|
58 | + public static function inverse(mixed $probability): array | string | float |
|
59 | 59 | { |
60 | 60 | if (is_array($probability)) { |
61 | 61 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $probability); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * If an array of values is passed as an argument, then the returned result will also be an array |
111 | 111 | * with the same dimensions |
112 | 112 | */ |
113 | - public static function NOT(mixed $logical = false): array|bool|string |
|
113 | + public static function NOT(mixed $logical = false): array | bool | string |
|
114 | 114 | { |
115 | 115 | if (is_array($logical)) { |
116 | 116 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $logical); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | return !$logical; |
131 | 131 | } |
132 | 132 | |
133 | - private static function countTrueValues(array $args, callable $func): bool|string |
|
133 | + private static function countTrueValues(array $args, callable $func): bool | string |
|
134 | 134 | { |
135 | 135 | $trueValueCount = 0; |
136 | 136 | $count = 0; |
@@ -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(array $database, array|null|int|string $field, array $criteria): string|float |
|
33 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria): string | float |
|
34 | 34 | { |
35 | 35 | $field = self::fieldExtract($database, $field); |
36 | 36 | if ($field === null) { |
@@ -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(array $database, array|null|int|string $field, array $criteria): string|int|float |
|
33 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria): string | int | float |
|
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(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) { |
@@ -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(array $database, array|null|int|string $field, array $criteria, bool $returnNull = false): null|float|string |
|
33 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria, bool $returnNull = false): null | float | string |
|
34 | 34 | { |
35 | 35 | $field = self::fieldExtract($database, $field); |
36 | 36 | if ($field === null) { |
@@ -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(array $database, array|null|int|string $field, array $criteria): string|int |
|
33 | + public static function evaluate(array $database, array | null | int | string $field, array $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(array $database, array|null|int|string $field, array $criteria, bool $returnError = true): float|string|null |
|
34 | + public static function evaluate(array $database, array | null | int | string $field, array $criteria, bool $returnError = true): float | string | null |
|
35 | 35 | { |
36 | 36 | $field = self::fieldExtract($database, $field); |
37 | 37 | if ($field === null) { |