Passed
Pull Request — master (#4466)
by Owen
15:22
created
tests/PhpSpreadsheetTests/Calculation/Engine/RangeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     }
35 35
 
36 36
     #[\PHPUnit\Framework\Attributes\DataProvider('providerRangeEvaluation')]
37
-    public function testRangeEvaluation(string $formula, int|string $expectedResult): void
37
+    public function testRangeEvaluation(string $formula, int | string $expectedResult): void
38 38
     {
39 39
         $this->spreadSheet = $this->getSpreadsheet();
40 40
         $workSheet = $this->spreadSheet->getActiveSheet();
Please login to merge, or discard this patch.
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.