@@ -39,7 +39,7 @@ |
||
39 | 39 | /** |
40 | 40 | * @dataProvider providerDATE |
41 | 41 | */ |
42 | - public function testDirectCallToDATE(float|string $expectedResult, int|string $year, float|int|string $month, float|int|string $day): void |
|
42 | + public function testDirectCallToDATE(float | string $expectedResult, int | string $year, float | int | string $month, float | int | string $day): void |
|
43 | 43 | { |
44 | 44 | $result = Date::fromYMD($year, $month, $day); |
45 | 45 | self::assertSame($expectedResult, $result); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | /** |
33 | 33 | * @dataProvider providerWEEKDAY |
34 | 34 | */ |
35 | - public function testDirectCallToWEEKDAY(int|string $expectedResult, bool|int|string $dateValue, null|int|string $style = null): void |
|
35 | + public function testDirectCallToWEEKDAY(int | string $expectedResult, bool | int | string $dateValue, null | int | string $style = null): void |
|
36 | 36 | { |
37 | 37 | $result = ($style === null) ? Week::day($dateValue) : Week::day($dateValue, $style); |
38 | 38 | self::assertSame($expectedResult, $result); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | /** |
34 | 34 | * @dataProvider providerTIMEVALUE |
35 | 35 | */ |
36 | - public function testDirectCallToTIMEVALUE(int|float|string $expectedResult, bool|int|string $value): void |
|
36 | + public function testDirectCallToTIMEVALUE(int | float | string $expectedResult, bool | int | string $value): void |
|
37 | 37 | { |
38 | 38 | $result = TimeValue::fromString($value); |
39 | 39 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-8); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * @dataProvider providerDAYS |
20 | 20 | */ |
21 | - public function testDirectCallToDAYS(int|string $expectedResult, int|string $date1, int|string $date2): void |
|
21 | + public function testDirectCallToDAYS(int | string $expectedResult, int | string $date1, int | string $date2): void |
|
22 | 22 | { |
23 | 23 | $result = Days::between($date1, $date2); |
24 | 24 | self::assertSame($expectedResult, $result); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | /** |
40 | 40 | * @dataProvider providerTIME |
41 | 41 | */ |
42 | - public function testDirectCallToTIME(float|string $expectedResult, int|string $hour, bool|int $minute, int $second): void |
|
42 | + public function testDirectCallToTIME(float | string $expectedResult, int | string $hour, bool | int $minute, int $second): void |
|
43 | 43 | { |
44 | 44 | $result = Time::fromHMS($hour, $minute, $second); |
45 | 45 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | /** |
13 | 13 | * @dataProvider providerVALUE |
14 | 14 | */ |
15 | - public function testVALUETOTEXT(mixed $expectedResult, mixed $value, int|string $format): void |
|
15 | + public function testVALUETOTEXT(mixed $expectedResult, mixed $value, int | string $format): void |
|
16 | 16 | { |
17 | 17 | $sheet = $this->getSheet(); |
18 | 18 | $this->setCell('A1', $value); |
@@ -213,7 +213,7 @@ |
||
213 | 213 | self::assertEqualsWithDelta($expectedResult, $sheet->getCell('Z99')->getCalculatedValue(), 1.0e-8, 'arguments supplied as ranges'); |
214 | 214 | } |
215 | 215 | |
216 | - private function convertToString(null|bool|float|int|string|Stringable $arg): string |
|
216 | + private function convertToString(null | bool | float | int | string | Stringable $arg): string |
|
217 | 217 | { |
218 | 218 | if (is_string($arg)) { |
219 | 219 | return '"' . $arg . '"'; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * @dataProvider providerORLiteral |
24 | 24 | */ |
25 | - public function testORLiteral(bool|string $expectedResult, float|int|string $formula): void |
|
25 | + public function testORLiteral(bool | string $expectedResult, float | int | string $formula): void |
|
26 | 26 | { |
27 | 27 | $sheet = $this->getSheet(); |
28 | 28 | $sheet->getCell('A1')->setValue("=OR($formula)"); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * @dataProvider providerANDLiteral |
24 | 24 | */ |
25 | - public function testANDLiteral(bool|string $expectedResult, float|int|string $formula): void |
|
25 | + public function testANDLiteral(bool | string $expectedResult, float | int | string $formula): void |
|
26 | 26 | { |
27 | 27 | $sheet = $this->getSheet(); |
28 | 28 | $sheet->getCell('A1')->setValue("=AND($formula)"); |