Passed
Push — master ( 20aac0...5868f8 )
by
unknown
20:33 queued 08:57
created
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/DateTest.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('providerDATE')]
40
-    public function testDirectCallToDATE(float|string $expectedResult, int|string $year, float|int|string $month, float|int|string $day): void
40
+    public function testDirectCallToDATE(float | string $expectedResult, int | string $year, float | int | string $month, float | int | string $day): void
41 41
     {
42 42
         $result = Date::fromYMD($year, $month, $day);
43 43
         self::assertSame($expectedResult, $result);
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.
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Bin2HexTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     }
29 29
 
30 30
     #[\PHPUnit\Framework\Attributes\DataProvider('providerBIN2HEX')]
31
-    public function testDirectCallToBIN2HEX(mixed $expectedResult, bool|float|int|string $value, null|float|int|string $digits = null): void
31
+    public function testDirectCallToBIN2HEX(mixed $expectedResult, bool | float | int | string $value, null | float | int | string $digits = null): void
32 32
     {
33 33
         $result = ($digits === null) ? ConvertBinary::toHex($value) : ConvertBinary::toHex($value, $digits);
34 34
         self::assertSame($expectedResult, $result);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
     #[\PHPUnit\Framework\Attributes\DataProvider('providerBIN2HEXOds')]
105
-    public function testBIN2HEXOds(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void
105
+    public function testBIN2HEXOds(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void
106 106
     {
107 107
         Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE);
108 108
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/GeStepTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 class GeStepTest extends TestCase
15 15
 {
16 16
     #[\PHPUnit\Framework\Attributes\DataProvider('providerGESTEP')]
17
-    public function testDirectCallToGESTEP(int|string $expectedResult, bool|float|int|string $arg1, null|bool|float|int|string $arg2 = null): void
17
+    public function testDirectCallToGESTEP(int | string $expectedResult, bool | float | int | string $arg1, null | bool | float | int | string $arg2 = null): void
18 18
     {
19 19
         $result = ($arg2 === null) ? Compare::geStep($arg1) : Compare::geStep($arg1, $arg2);
20 20
         self::assertSame($expectedResult, $result);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCotTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     }
27 27
 
28 28
     #[\PHPUnit\Framework\Attributes\DataProvider('providerIMCOT')]
29
-    public function testDirectCallToIMCOT(float|string $expectedResult, string $arg): void
29
+    public function testDirectCallToIMCOT(float | string $expectedResult, string $arg): void
30 30
     {
31 31
         $result = ComplexFunctions::IMCOT($arg);
32 32
         self::assertTrue(
Please login to merge, or discard this patch.