@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | declare(strict_types=1); |
4 | 4 | |
5 | 5 | return [ |
6 | - [ // Office reference example #1 |
|
6 | + [// Office reference example #1 |
|
7 | 7 | 'orange', |
8 | 8 | 4.19, |
9 | 9 | [ |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | ['blue'], |
22 | 22 | ], |
23 | 23 | ], |
24 | - [ // Office reference example #2 |
|
24 | + [// Office reference example #2 |
|
25 | 25 | 'yellow', |
26 | 26 | 5.75, |
27 | 27 | [ |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | ['blue'], |
40 | 40 | ], |
41 | 41 | ], |
42 | - [ // Office reference example #3 |
|
42 | + [// Office reference example #3 |
|
43 | 43 | 'blue', |
44 | 44 | 7.66, |
45 | 45 | [ |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | ['blue'], |
58 | 58 | ], |
59 | 59 | ], |
60 | - [ // Office reference example #4 |
|
60 | + [// Office reference example #4 |
|
61 | 61 | '#N/A', |
62 | 62 | 0, |
63 | 63 | [ |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | ['blue'], |
76 | 76 | ], |
77 | 77 | ], |
78 | - [ // Array form test |
|
78 | + [// Array form test |
|
79 | 79 | 'orange', |
80 | 80 | 4.2, |
81 | 81 | [ |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * |
65 | 65 | * @return string the url encoded output |
66 | 66 | */ |
67 | - public static function urlEncode($text): string|array |
|
67 | + public static function urlEncode($text): string | array |
|
68 | 68 | { |
69 | 69 | if (!is_string($text)) { |
70 | 70 | return ExcelError::VALUE(); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * If an array of values is passed as the argument, then the returned result will also be an array |
40 | 40 | * with the same dimensions |
41 | 41 | */ |
42 | - public static function spaces($stringValue = ''): array|string |
|
42 | + public static function spaces($stringValue = ''): array | string |
|
43 | 43 | { |
44 | 44 | if (is_array($stringValue)) { |
45 | 45 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $stringValue); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * If an array of values 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 lower($mixedCaseValue): array|string |
|
24 | + public static function lower($mixedCaseValue): array | string |
|
25 | 25 | { |
26 | 26 | if (is_array($mixedCaseValue)) { |
27 | 27 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * If an array of values is passed as the argument, then the returned result will also be an array |
45 | 45 | * with the same dimensions |
46 | 46 | */ |
47 | - public static function upper($mixedCaseValue): array|string |
|
47 | + public static function upper($mixedCaseValue): array | string |
|
48 | 48 | { |
49 | 49 | if (is_array($mixedCaseValue)) { |
50 | 50 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * If an array of values is passed as the argument, then the returned result will also be an array |
68 | 68 | * with the same dimensions |
69 | 69 | */ |
70 | - public static function proper($mixedCaseValue): array|string |
|
70 | + public static function proper($mixedCaseValue): array | string |
|
71 | 71 | { |
72 | 72 | if (is_array($mixedCaseValue)) { |
73 | 73 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue); |
@@ -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($number, $base = 10): array|string|float |
|
29 | + public static function withBase($number, $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($number): array|string|float |
|
59 | + public static function base10($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($number): array|string|float |
|
87 | + public static function natural($number): array | string | float |
|
88 | 88 | { |
89 | 89 | if (is_array($number)) { |
90 | 90 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -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); |
@@ -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($rows = 1, $columns = 1, $start = 1, $step = 1): string|array |
|
60 | + public static function sequence($rows = 1, $columns = 1, $start = 1, $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($matrixValues): array|string |
|
123 | + public static function inverse($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($matrixData1, $matrixData2): array|string |
|
146 | + public static function multiply($matrixData1, $matrixData2): array | string |
|
147 | 147 | { |
148 | 148 | try { |
149 | 149 | $matrixA = self::getMatrix($matrixData1); |
@@ -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($angle): array|string|float |
|
51 | + public static function tanh($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($xCoordinate, $yCoordinate): array|string|float |
|
142 | + public static function atan2($xCoordinate, $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 sin($angle): array|string|float |
|
24 | + public static function sin($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($angle): array|string|float |
|
50 | + public static function sinh($angle): array | string | float |
|
51 | 51 | { |
52 | 52 | if (is_array($angle)) { |
53 | 53 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle); |