@@ -10,7 +10,7 @@ |
||
10 | 10 | class ValueToTextTest extends AllSetupTeardown |
11 | 11 | { |
12 | 12 | #[\PHPUnit\Framework\Attributes\DataProvider('providerVALUE')] |
13 | - public function testVALUETOTEXT(mixed $expectedResult, mixed $value, int|string $format): void |
|
13 | + public function testVALUETOTEXT(mixed $expectedResult, mixed $value, int | string $format): void |
|
14 | 14 | { |
15 | 15 | $sheet = $this->getSheet(); |
16 | 16 | $this->setCell('A1', $value); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | #[\PHPUnit\Framework\Attributes\DataProvider('providerORLiteral')] |
21 | - public function testORLiteral(bool|string $expectedResult, float|int|string $formula): void |
|
21 | + public function testORLiteral(bool | string $expectedResult, float | int | string $formula): void |
|
22 | 22 | { |
23 | 23 | $sheet = $this->getSheet(); |
24 | 24 | $sheet->getCell('A1')->setValue("=OR($formula)"); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | class HelpersTest extends TestCase |
11 | 11 | { |
12 | 12 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDaysPerYear')] |
13 | - public function testDaysPerYear(mixed $expectedResult, int $year, int|string $basis): void |
|
13 | + public function testDaysPerYear(mixed $expectedResult, int $year, int | string $basis): void |
|
14 | 14 | { |
15 | 15 | $result = Helpers::daysPerYear($year, $basis); |
16 | 16 | self::assertSame($expectedResult, $result); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | class DaysTest extends TestCase |
17 | 17 | { |
18 | 18 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDAYS')] |
19 | - public function testDirectCallToDAYS(int|string $expectedResult, int|string $date1, int|string $date2): void |
|
19 | + public function testDirectCallToDAYS(int | string $expectedResult, int | string $date1, int | string $date2): void |
|
20 | 20 | { |
21 | 21 | $result = Days::between($date1, $date2); |
22 | 22 | self::assertSame($expectedResult, $result); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | #[\PHPUnit\Framework\Attributes\DataProvider('providerWEEKDAY')] |
33 | - public function testDirectCallToWEEKDAY(int|string $expectedResult, bool|int|string $dateValue, null|int|string $style = null): void |
|
33 | + public function testDirectCallToWEEKDAY(int | string $expectedResult, bool | int | string $dateValue, null | int | string $style = null): void |
|
34 | 34 | { |
35 | 35 | $result = ($style === null) ? Week::day($dateValue) : Week::day($dateValue, $style); |
36 | 36 | self::assertSame($expectedResult, $result); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | #[\PHPUnit\Framework\Attributes\DataProvider('providerTIMEVALUE')] |
34 | - public function testDirectCallToTIMEVALUE(int|float|string $expectedResult, bool|int|string $value): void |
|
34 | + public function testDirectCallToTIMEVALUE(int | float | string $expectedResult, bool | int | string $value): void |
|
35 | 35 | { |
36 | 36 | $result = TimeValue::fromString($value); |
37 | 37 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-8); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | #[\PHPUnit\Framework\Attributes\DataProvider('providerTIME')] |
40 | - public function testDirectCallToTIME(float|string $expectedResult, int|string $hour, bool|int $minute, int $second): void |
|
40 | + public function testDirectCallToTIME(float | string $expectedResult, int | string $hour, bool | int $minute, int $second): void |
|
41 | 41 | { |
42 | 42 | $result = Time::fromHMS($hour, $minute, $second); |
43 | 43 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | class DateDifTest extends TestCase |
18 | 18 | { |
19 | 19 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDATEDIF')] |
20 | - public function testDirectCallToDATEDIF(array|int|string $expectedResult, string ...$args): void |
|
20 | + public function testDirectCallToDATEDIF(array | int | string $expectedResult, string ...$args): void |
|
21 | 21 | { |
22 | 22 | $result = Difference::interval(...$args); |
23 | 23 | self::assertSame($expectedResult, $result); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | return is_string($expectedResult) && str_starts_with($expectedResult, 'Y-'); |
43 | 43 | } |
44 | 44 | |
45 | - private function parseTemplatedExpectation(float|int|string $expectedResult): string |
|
45 | + private function parseTemplatedExpectation(float | int | string $expectedResult): string |
|
46 | 46 | { |
47 | 47 | /** @var float */ |
48 | 48 | $x = DateValue::fromString( |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDATEVALUE')] |
58 | - public function testDirectCallToDATEVALUE(int|string $expectedResult, bool|int|string $value): void |
|
58 | + public function testDirectCallToDATEVALUE(int | string $expectedResult, bool | int | string $value): void |
|
59 | 59 | { |
60 | 60 | if ($this->expectationIsTemplate($expectedResult)) { |
61 | 61 | $expectedResult = $this->parseTemplatedExpectation((string) $expectedResult); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDATEVALUE')] |
69 | - public function testDATEVALUEAsFormula(float|int|string $expectedResult, mixed ...$args): void |
|
69 | + public function testDATEVALUEAsFormula(float | int | string $expectedResult, mixed ...$args): void |
|
70 | 70 | { |
71 | 71 | if ($this->expectationIsTemplate($expectedResult)) { |
72 | 72 | $expectedResult = $this->parseTemplatedExpectation($expectedResult); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | } |
83 | 83 | |
84 | 84 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDATEVALUE')] |
85 | - public function testDATEVALUEInWorksheet(float|int|string $expectedResult, mixed ...$args): void |
|
85 | + public function testDATEVALUEInWorksheet(float | int | string $expectedResult, mixed ...$args): void |
|
86 | 86 | { |
87 | 87 | if ($this->expectationIsTemplate($expectedResult)) { |
88 | 88 | $expectedResult = $this->parseTemplatedExpectation($expectedResult); |