@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @return array|string The resulting array, or a string containing an error |
59 | 59 | */ |
60 | - public static function sequence(mixed $rows = 1, mixed $columns = 1, mixed $start = 1, mixed $step = 1): string|array |
|
60 | + public static function sequence(mixed $rows = 1, mixed $columns = 1, mixed $start = 1, mixed $step = 1): string | array |
|
61 | 61 | { |
62 | 62 | try { |
63 | 63 | $rows = (int) Helpers::validateNumericNullSubstitution($rows, 1); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * |
121 | 121 | * @return array|string The result, or a string containing an error |
122 | 122 | */ |
123 | - public static function inverse(mixed $matrixValues): array|string |
|
123 | + public static function inverse(mixed $matrixValues): array | string |
|
124 | 124 | { |
125 | 125 | try { |
126 | 126 | $matrix = self::getMatrix($matrixValues); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * |
144 | 144 | * @return array|string The result, or a string containing an error |
145 | 145 | */ |
146 | - public static function multiply(mixed $matrixData1, mixed $matrixData2): array|string |
|
146 | + public static function multiply(mixed $matrixData1, mixed $matrixData2): array | string |
|
147 | 147 | { |
148 | 148 | try { |
149 | 149 | $matrixA = self::getMatrix($matrixData1); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
26 | 26 | * with the same dimensions |
27 | 27 | */ |
28 | - public static function withoutRepetition(mixed $numObjs, mixed $numInSet): array|string|float |
|
28 | + public static function withoutRepetition(mixed $numObjs, mixed $numInSet): array | string | float |
|
29 | 29 | { |
30 | 30 | if (is_array($numObjs) || is_array($numInSet)) { |
31 | 31 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $numObjs, $numInSet); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
60 | 60 | * with the same dimensions |
61 | 61 | */ |
62 | - public static function withRepetition(mixed $numObjs, mixed $numInSet): array|int|string|float |
|
62 | + public static function withRepetition(mixed $numObjs, mixed $numInSet): array | int | string | float |
|
63 | 63 | { |
64 | 64 | if (is_array($numObjs) || is_array($numInSet)) { |
65 | 65 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $numObjs, $numInSet); |
@@ -825,7 +825,7 @@ |
||
825 | 825 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
826 | 826 | * with the same dimensions |
827 | 827 | */ |
828 | - public static function evaluate(mixed $aValue, mixed $style = 0): array|string |
|
828 | + public static function evaluate(mixed $aValue, mixed $style = 0): array | string |
|
829 | 829 | { |
830 | 830 | if (is_array($aValue) || is_array($style)) { |
831 | 831 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $aValue, $style); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
49 | 49 | * with the same dimensions |
50 | 50 | */ |
51 | - public static function tanh(mixed $angle): array|string|float |
|
51 | + public static function tanh(mixed $angle): array | string | float |
|
52 | 52 | { |
53 | 53 | if (is_array($angle)) { |
54 | 54 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle); |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * If an array of numbers is passed as one of the arguments, then the returned result will also be an array |
140 | 140 | * with the same dimensions |
141 | 141 | */ |
142 | - public static function atan2(mixed $xCoordinate, mixed $yCoordinate): array|string|float |
|
142 | + public static function atan2(mixed $xCoordinate, mixed $yCoordinate): array | string | float |
|
143 | 143 | { |
144 | 144 | if (is_array($xCoordinate) || is_array($yCoordinate)) { |
145 | 145 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $xCoordinate, $yCoordinate); |
@@ -21,7 +21,7 @@ discard block |
||
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 cos(mixed $number): array|string|float |
|
24 | + public static function cos(mixed $number): array | string | float |
|
25 | 25 | { |
26 | 26 | if (is_array($number)) { |
27 | 27 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
48 | 48 | * with the same dimensions |
49 | 49 | */ |
50 | - public static function cosh(mixed $number): array|string|float |
|
50 | + public static function cosh(mixed $number): array | string | float |
|
51 | 51 | { |
52 | 52 | if (is_array($number)) { |
53 | 53 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -21,7 +21,7 @@ discard block |
||
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 sin(mixed $angle): array|string|float |
|
24 | + public static function sin(mixed $angle): array | string | float |
|
25 | 25 | { |
26 | 26 | if (is_array($angle)) { |
27 | 27 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
48 | 48 | * with the same dimensions |
49 | 49 | */ |
50 | - public static function sinh(mixed $angle): array|string|float |
|
50 | + public static function sinh(mixed $angle): array | string | float |
|
51 | 51 | { |
52 | 52 | if (is_array($angle)) { |
53 | 53 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
21 | 21 | * with the same dimensions |
22 | 22 | */ |
23 | - public static function evaluate(mixed $number): array|string|float |
|
23 | + public static function evaluate(mixed $number): array | string | float |
|
24 | 24 | { |
25 | 25 | if (is_array($number)) { |
26 | 26 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
23 | 23 | * with the same dimensions |
24 | 24 | */ |
25 | - public static function round(mixed $number, mixed $precision): array|string|float |
|
25 | + public static function round(mixed $number, mixed $precision): array | string | float |
|
26 | 26 | { |
27 | 27 | if (is_array($number) || is_array($precision)) { |
28 | 28 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $precision); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
51 | 51 | * with the same dimensions |
52 | 52 | */ |
53 | - public static function up($number, $digits): array|string|float |
|
53 | + public static function up($number, $digits): array | string | float |
|
54 | 54 | { |
55 | 55 | if (is_array($number) || is_array($digits)) { |
56 | 56 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $digits); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
87 | 87 | * with the same dimensions |
88 | 88 | */ |
89 | - public static function down($number, $digits): array|string|float |
|
89 | + public static function down($number, $digits): array | string | float |
|
90 | 90 | { |
91 | 91 | if (is_array($number) || is_array($digits)) { |
92 | 92 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $digits); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
123 | 123 | * with the same dimensions |
124 | 124 | */ |
125 | - public static function multiple(mixed $number, mixed $multiple): array|string|int|float |
|
125 | + public static function multiple(mixed $number, mixed $multiple): array | string | int | float |
|
126 | 126 | { |
127 | 127 | if (is_array($number) || is_array($multiple)) { |
128 | 128 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $multiple); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
166 | 166 | * with the same dimensions |
167 | 167 | */ |
168 | - public static function even($number): array|string|float |
|
168 | + public static function even($number): array | string | float |
|
169 | 169 | { |
170 | 170 | if (is_array($number)) { |
171 | 171 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
192 | 192 | * with the same dimensions |
193 | 193 | */ |
194 | - public static function odd($number): array|string|int|float |
|
194 | + public static function odd($number): array | string | int | float |
|
195 | 195 | { |
196 | 196 | if (is_array($number)) { |
197 | 197 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
27 | 27 | * with the same dimensions |
28 | 28 | */ |
29 | - public static function withBase(mixed $number, mixed $base = 10): array|string|float |
|
29 | + public static function withBase(mixed $number, mixed $base = 10): array | string | float |
|
30 | 30 | { |
31 | 31 | if (is_array($number) || is_array($base)) { |
32 | 32 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $base); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
57 | 57 | * with the same dimensions |
58 | 58 | */ |
59 | - public static function base10(mixed $number): array|string|float |
|
59 | + public static function base10(mixed $number): array | string | float |
|
60 | 60 | { |
61 | 61 | if (is_array($number)) { |
62 | 62 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
85 | 85 | * with the same dimensions |
86 | 86 | */ |
87 | - public static function natural(mixed $number): array|string|float |
|
87 | + public static function natural(mixed $number): array | string | float |
|
88 | 88 | { |
89 | 89 | if (is_array($number)) { |
90 | 90 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |