@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | return is_string($expectedResult) && str_starts_with($expectedResult, 'Y-'); |
44 | 44 | } |
45 | 45 | |
46 | - private function parseTemplatedExpectation(float|int|string $expectedResult): string |
|
46 | + private function parseTemplatedExpectation(float | int | string $expectedResult): string |
|
47 | 47 | { |
48 | 48 | /** @var float */ |
49 | 49 | $x = DateValue::fromString( |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | #[DataProvider('providerDATEVALUE')] |
59 | - public function testDirectCallToDATEVALUE(int|string $expectedResult, bool|int|string $value): void |
|
59 | + public function testDirectCallToDATEVALUE(int | string $expectedResult, bool | int | string $value): void |
|
60 | 60 | { |
61 | 61 | if ($this->expectationIsTemplate($expectedResult)) { |
62 | 62 | $expectedResult = $this->parseTemplatedExpectation((string) $expectedResult); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | #[DataProvider('providerDATEVALUE')] |
70 | - public function testDATEVALUEAsFormula(float|int|string $expectedResult, mixed ...$args): void |
|
70 | + public function testDATEVALUEAsFormula(float | int | string $expectedResult, mixed ...$args): void |
|
71 | 71 | { |
72 | 72 | if ($this->expectationIsTemplate($expectedResult)) { |
73 | 73 | $expectedResult = $this->parseTemplatedExpectation($expectedResult); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | #[DataProvider('providerDATEVALUE')] |
86 | - public function testDATEVALUEInWorksheet(float|int|string $expectedResult, mixed ...$args): void |
|
86 | + public function testDATEVALUEInWorksheet(float | int | string $expectedResult, mixed ...$args): void |
|
87 | 87 | { |
88 | 88 | if ($this->expectationIsTemplate($expectedResult)) { |
89 | 89 | $expectedResult = $this->parseTemplatedExpectation($expectedResult); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | #[DataProvider('providerTIME')] |
41 | - public function testDirectCallToTIME(float|string $expectedResult, int|string $hour, bool|int $minute, int $second): void |
|
41 | + public function testDirectCallToTIME(float | string $expectedResult, int | string $hour, bool | int $minute, int $second): void |
|
42 | 42 | { |
43 | 43 | $result = Time::fromHMS($hour, $minute, $second); |
44 | 44 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | #[DataProvider('providerTIMEVALUE')] |
35 | - public function testDirectCallToTIMEVALUE(int|float|string $expectedResult, bool|int|string $value): void |
|
35 | + public function testDirectCallToTIMEVALUE(int | float | string $expectedResult, bool | int | string $value): void |
|
36 | 36 | { |
37 | 37 | $result = TimeValue::fromString($value); |
38 | 38 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-8); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | #[DataProvider('providerWEEKDAY')] |
34 | - public function testDirectCallToWEEKDAY(int|string $expectedResult, bool|int|string $dateValue, null|int|string $style = null): void |
|
34 | + public function testDirectCallToWEEKDAY(int | string $expectedResult, bool | int | string $dateValue, null | int | string $style = null): void |
|
35 | 35 | { |
36 | 36 | $result = ($style === null) ? Week::day($dateValue) : Week::day($dateValue, $style); |
37 | 37 | self::assertSame($expectedResult, $result); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | class DaysTest extends TestCase |
18 | 18 | { |
19 | 19 | #[DataProvider('providerDAYS')] |
20 | - public function testDirectCallToDAYS(int|string $expectedResult, int|string $date1, int|string $date2): void |
|
20 | + public function testDirectCallToDAYS(int | string $expectedResult, int | string $date1, int | string $date2): void |
|
21 | 21 | { |
22 | 22 | $result = Days::between($date1, $date2); |
23 | 23 | self::assertSame($expectedResult, $result); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | /** @param array<mixed>|int|string $expectedResult */ |
21 | 21 | #[DataProvider('providerDATEDIF')] |
22 | - public function testDirectCallToDATEDIF(array|int|string $expectedResult, string ...$args): void |
|
22 | + public function testDirectCallToDATEDIF(array | int | string $expectedResult, string ...$args): void |
|
23 | 23 | { |
24 | 24 | $result = Difference::interval(...$args); |
25 | 25 | self::assertSame($expectedResult, $result); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** @param array<mixed>|string $functionCall */ |
29 | 29 | #[DataProvider('providerGetFunctions')] |
30 | - public function testGetFunctions(array|string $functionCall): void |
|
30 | + public function testGetFunctions(array | string $functionCall): void |
|
31 | 31 | { |
32 | 32 | self::assertIsCallable($functionCall); |
33 | 33 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** @return array<mixed>|string */ |
43 | - public static function anchorArray(string $cellReference, Cell $cell): array|string |
|
43 | + public static function anchorArray(string $cellReference, Cell $cell): array | string |
|
44 | 44 | { |
45 | 45 | //$coordinate = $cell->getCoordinate(); |
46 | 46 | $worksheet = $cell->getWorksheet(); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @param mixed $yValues array of mixed Data Series Y |
77 | 77 | * @param null|mixed $xValues array of mixed Data Series X |
78 | 78 | */ |
79 | - public static function CORREL(mixed $yValues, $xValues = null): float|string |
|
79 | + public static function CORREL(mixed $yValues, $xValues = null): float | string |
|
80 | 80 | { |
81 | 81 | if (($xValues === null) || (!is_array($yValues)) || (!is_array($xValues))) { |
82 | 82 | return ExcelError::VALUE(); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @param mixed[] $yValues array of mixed Data Series Y |
103 | 103 | * @param mixed[] $xValues array of mixed Data Series X |
104 | 104 | */ |
105 | - public static function COVAR(array $yValues, array $xValues): float|string |
|
105 | + public static function COVAR(array $yValues, array $xValues): float | string |
|
106 | 106 | { |
107 | 107 | try { |
108 | 108 | self::checkTrendArrays($yValues, $xValues); |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | * @param mixed[] $yValues Data Series Y |
191 | 191 | * @param mixed[] $xValues Data Series X |
192 | 192 | */ |
193 | - public static function INTERCEPT(array $yValues, array $xValues): float|string |
|
193 | + public static function INTERCEPT(array $yValues, array $xValues): float | string |
|
194 | 194 | { |
195 | 195 | try { |
196 | 196 | self::checkTrendArrays($yValues, $xValues); |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | * |
218 | 218 | * @return array<mixed>|string The result, or a string containing an error |
219 | 219 | */ |
220 | - public static function LINEST(array $yValues, ?array $xValues = null, mixed $const = true, mixed $stats = false): string|array |
|
220 | + public static function LINEST(array $yValues, ?array $xValues = null, mixed $const = true, mixed $stats = false): string | array |
|
221 | 221 | { |
222 | 222 | $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const); |
223 | 223 | $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats); |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | * |
279 | 279 | * @return array<mixed>|string The result, or a string containing an error |
280 | 280 | */ |
281 | - public static function LOGEST(array $yValues, ?array $xValues = null, mixed $const = true, mixed $stats = false): string|array |
|
281 | + public static function LOGEST(array $yValues, ?array $xValues = null, mixed $const = true, mixed $stats = false): string | array |
|
282 | 282 | { |
283 | 283 | $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const); |
284 | 284 | $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats); |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | * @param mixed[] $yValues Data Series Y |
390 | 390 | * @param mixed[] $xValues Data Series X |
391 | 391 | */ |
392 | - public static function STEYX(array $yValues, array $xValues): float|string |
|
392 | + public static function STEYX(array $yValues, array $xValues): float | string |
|
393 | 393 | { |
394 | 394 | try { |
395 | 395 | self::checkTrendArrays($yValues, $xValues); |