Failed Conditions
Pull Request — master (#4452)
by Owen
12:39
created
PhpSpreadsheetTests/Calculation/Functions/TextData/ValueToTextTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Logical/OrTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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)");
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Financial/HelpersTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DaysTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/WeekDayTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/TimeValueTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/TimeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DateDifTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DateValueTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.