Passed
Push — master ( e6aacf...0e570a )
by
unknown
25:35 queued 18:08
created
tests/PhpSpreadsheetTests/Calculation/Functions/Database/DMaxTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      * @param mixed[][] $criteria
16 16
      */
17 17
     #[DataProvider('providerDMax')]
18
-    public function testDirectCallToDMax(int|string $expectedResult, array $database, string|null|int $field, array $criteria): void
18
+    public function testDirectCallToDMax(int | string $expectedResult, array $database, string | null | int $field, array $criteria): void
19 19
     {
20 20
         $result = DMax::evaluate($database, $field, $criteria);
21 21
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12);
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @param mixed[][] $criteria
27 27
      */
28 28
     #[DataProvider('providerDMax')]
29
-    public function testDMaxAsWorksheetFormula(int|string $expectedResult, array $database, string|null|int $field, array $criteria): void
29
+    public function testDMaxAsWorksheetFormula(int | string $expectedResult, array $database, string | null | int $field, array $criteria): void
30 30
     {
31 31
         $this->prepareWorksheetWithFormula('DMAX', $database, $field, $criteria);
32 32
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Database/DVarPTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      * @param mixed[][] $criteria
16 16
      */
17 17
     #[DataProvider('providerDVarP')]
18
-    public function testDirectCallToDVarP(float|string $expectedResult, array $database, ?string $field, array $criteria): void
18
+    public function testDirectCallToDVarP(float | string $expectedResult, array $database, ?string $field, array $criteria): void
19 19
     {
20 20
         $result = DVarP::evaluate($database, $field, $criteria);
21 21
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12);
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @param mixed[][] $criteria
27 27
      */
28 28
     #[DataProvider('providerDVarP')]
29
-    public function testDVarPAsWorksheetFormula(float|string $expectedResult, array $database, ?string $field, array $criteria): void
29
+    public function testDVarPAsWorksheetFormula(float | string $expectedResult, array $database, ?string $field, array $criteria): void
30 30
     {
31 31
         $this->prepareWorksheetWithFormula('DVARP', $database, $field, $criteria);
32 32
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Database/DCountATest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      * @param mixed[][] $criteria
16 16
      */
17 17
     #[DataProvider('providerDCountA')]
18
-    public function testDirectCallToDCountA(int|string $expectedResult, array $database, string $field, array $criteria): void
18
+    public function testDirectCallToDCountA(int | string $expectedResult, array $database, string $field, array $criteria): void
19 19
     {
20 20
         $result = DCountA::evaluate($database, $field, $criteria);
21 21
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12);
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @param mixed[][] $criteria
27 27
      */
28 28
     #[DataProvider('providerDCountA')]
29
-    public function testDCountAAsWorksheetFormula(int|string $expectedResult, array $database, string $field, array $criteria): void
29
+    public function testDCountAAsWorksheetFormula(int | string $expectedResult, array $database, string $field, array $criteria): void
30 30
     {
31 31
         $this->prepareWorksheetWithFormula('DCOUNTA', $database, $field, $criteria);
32 32
 
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
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         return is_string($expectedResult) && str_starts_with($expectedResult, 'Y-');
44 44
     }
45 45
 
46
-    private function parseTemplatedExpectation(float|int|string $expectedResult): string
46
+    private function parseTemplatedExpectation(float | int | string $expectedResult): string
47 47
     {
48 48
         /** @var float */
49 49
         $x = DateValue::fromString(
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     }
57 57
 
58 58
     #[DataProvider('providerDATEVALUE')]
59
-    public function testDirectCallToDATEVALUE(int|string $expectedResult, bool|int|string $value): void
59
+    public function testDirectCallToDATEVALUE(int | string $expectedResult, bool | int | string $value): void
60 60
     {
61 61
         if ($this->expectationIsTemplate($expectedResult)) {
62 62
             $expectedResult = $this->parseTemplatedExpectation((string) $expectedResult);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     }
68 68
 
69 69
     #[DataProvider('providerDATEVALUE')]
70
-    public function testDATEVALUEAsFormula(float|int|string $expectedResult, mixed ...$args): void
70
+    public function testDATEVALUEAsFormula(float | int | string $expectedResult, mixed ...$args): void
71 71
     {
72 72
         if ($this->expectationIsTemplate($expectedResult)) {
73 73
             $expectedResult = $this->parseTemplatedExpectation($expectedResult);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     }
84 84
 
85 85
     #[DataProvider('providerDATEVALUE')]
86
-    public function testDATEVALUEInWorksheet(float|int|string $expectedResult, mixed ...$args): void
86
+    public function testDATEVALUEInWorksheet(float | int | string $expectedResult, mixed ...$args): void
87 87
     {
88 88
         if ($this->expectationIsTemplate($expectedResult)) {
89 89
             $expectedResult = $this->parseTemplatedExpectation($expectedResult);
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
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     }
39 39
 
40 40
     #[DataProvider('providerTIME')]
41
-    public function testDirectCallToTIME(float|string $expectedResult, int|string $hour, bool|int $minute, int $second): void
41
+    public function testDirectCallToTIME(float | string $expectedResult, int | string $hour, bool | int $minute, int $second): void
42 42
     {
43 43
         $result = Time::fromHMS($hour, $minute, $second);
44 44
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12);
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
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     }
33 33
 
34 34
     #[DataProvider('providerTIMEVALUE')]
35
-    public function testDirectCallToTIMEVALUE(int|float|string $expectedResult, bool|int|string $value): void
35
+    public function testDirectCallToTIMEVALUE(int | float | string $expectedResult, bool | int | string $value): void
36 36
     {
37 37
         $result = TimeValue::fromString($value);
38 38
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-8);
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
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     }
32 32
 
33 33
     #[DataProvider('providerWEEKDAY')]
34
-    public function testDirectCallToWEEKDAY(int|string $expectedResult, bool|int|string $dateValue, null|int|string $style = null): void
34
+    public function testDirectCallToWEEKDAY(int | string $expectedResult, bool | int | string $dateValue, null | int | string $style = null): void
35 35
     {
36 36
         $result = ($style === null) ? Week::day($dateValue) : Week::day($dateValue, $style);
37 37
         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
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 class DaysTest extends TestCase
18 18
 {
19 19
     #[DataProvider('providerDAYS')]
20
-    public function testDirectCallToDAYS(int|string $expectedResult, int|string $date1, int|string $date2): void
20
+    public function testDirectCallToDAYS(int | string $expectedResult, int | string $date1, int | string $date2): void
21 21
     {
22 22
         $result = Days::between($date1, $date2);
23 23
         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
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 {
20 20
     /** @param array<mixed>|int|string $expectedResult */
21 21
     #[DataProvider('providerDATEDIF')]
22
-    public function testDirectCallToDATEDIF(array|int|string $expectedResult, string ...$args): void
22
+    public function testDirectCallToDATEDIF(array | int | string $expectedResult, string ...$args): void
23 23
     {
24 24
         $result = Difference::interval(...$args);
25 25
         self::assertSame($expectedResult, $result);
Please login to merge, or discard this patch.