@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | /** |
129 | 129 | * Avoid Scrutinizer problems concerning complexity. |
130 | 130 | */ |
131 | - private static function argumentsOkPrecise(float $number, float $significance): string|float |
|
131 | + private static function argumentsOkPrecise(float $number, float $significance): string | float |
|
132 | 132 | { |
133 | 133 | if ($significance == 0.0) { |
134 | 134 | return ExcelError::DIV0(); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * |
146 | 146 | * @return float|string Rounded Number, or a string containing an error |
147 | 147 | */ |
148 | - private static function argsOk(float $number, float $significance, int $mode): string|float |
|
148 | + private static function argsOk(float $number, float $significance, int $mode): string | float |
|
149 | 149 | { |
150 | 150 | if (!$significance) { |
151 | 151 | return ExcelError::DIV0(); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | /** |
172 | 172 | * Avoid Scrutinizer problems concerning complexity. |
173 | 173 | */ |
174 | - private static function argumentsOk(float $number, float $significance): string|float |
|
174 | + private static function argumentsOk(float $number, float $significance): string | float |
|
175 | 175 | { |
176 | 176 | if ($significance == 0.0) { |
177 | 177 | return ExcelError::DIV0(); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @return int|string Result, or a string containing an error |
26 | 26 | */ |
27 | - public static function daysPerYear($year, $basis = 0): string|int |
|
27 | + public static function daysPerYear($year, $basis = 0): string | int |
|
28 | 28 | { |
29 | 29 | if (!is_numeric($basis)) { |
30 | 30 | return ExcelError::NAN(); |
@@ -26,7 +26,7 @@ |
||
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 execute($value, $mean, $stdDev): array|string|float |
|
29 | + public static function execute($value, $mean, $stdDev): array | string | float |
|
30 | 30 | { |
31 | 31 | if (is_array($value) || is_array($mean) || is_array($stdDev)) { |
32 | 32 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $mean, $stdDev); |
@@ -705,7 +705,7 @@ |
||
705 | 705 | } |
706 | 706 | } |
707 | 707 | |
708 | - private function processDrawing(WorksheetDrawing $drawing): string|null|false |
|
708 | + private function processDrawing(WorksheetDrawing $drawing): string | null | false |
|
709 | 709 | { |
710 | 710 | $data = null; |
711 | 711 | $filename = $drawing->getPath(); |
@@ -110,7 +110,7 @@ |
||
110 | 110 | * |
111 | 111 | * @return false|SimpleXMLElement |
112 | 112 | */ |
113 | - public function trySimpleXMLLoadString(string $filename): SimpleXMLElement|bool |
|
113 | + public function trySimpleXMLLoadString(string $filename): SimpleXMLElement | bool |
|
114 | 114 | { |
115 | 115 | try { |
116 | 116 | $xml = simplexml_load_string( |
@@ -52,7 +52,7 @@ |
||
52 | 52 | 'be189a7e2711cdf2a7f6275c60cbc7e2', |
53 | 53 | ]; |
54 | 54 | |
55 | - private float|int|null $paddingAmountExact; |
|
55 | + private float | int | null $paddingAmountExact; |
|
56 | 56 | |
57 | 57 | protected function setUp(): void |
58 | 58 | { |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * |
50 | 50 | * @return int|string Lowest Common Multiplier, or a string containing an error |
51 | 51 | */ |
52 | - public static function evaluate(mixed ...$args): int|string |
|
52 | + public static function evaluate(mixed ...$args): int | string |
|
53 | 53 | { |
54 | 54 | try { |
55 | 55 | $arrayArgs = []; |
@@ -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|int|float |
|
23 | + public static function evaluate(mixed $number): array | string | int | float |
|
24 | 24 | { |
25 | 25 | if (is_array($number)) { |
26 | 26 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
71 | 71 | * with the same dimensions |
72 | 72 | */ |
73 | - public static function math(mixed $number, mixed $significance = null, $mode = 0): array|string|float |
|
73 | + public static function math(mixed $number, mixed $significance = null, $mode = 0): array | string | float |
|
74 | 74 | { |
75 | 75 | if (is_array($number) || is_array($significance) || is_array($mode)) { |
76 | 76 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $significance, $mode); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
112 | 112 | * with the same dimensions |
113 | 113 | */ |
114 | - public static function precise(mixed $number, $significance = 1): array|string|float |
|
114 | + public static function precise(mixed $number, $significance = 1): array | string | float |
|
115 | 115 | { |
116 | 116 | if (is_array($number) || is_array($significance)) { |
117 | 117 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $significance); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | /** |
144 | 144 | * Avoid Scrutinizer problems concerning complexity. |
145 | 145 | */ |
146 | - private static function argumentsOk(float $number, float $significance): float|string |
|
146 | + private static function argumentsOk(float $number, float $significance): float | string |
|
147 | 147 | { |
148 | 148 | if (empty($number * $significance)) { |
149 | 149 | return 0.0; |