Failed Conditions
Pull Request — master (#4024)
by Adrien
11:02
created
tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/RoundDownTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /**
12 12
      * @dataProvider providerRoundDown
13 13
      */
14
-    public function testRoundDown(float|int|string $expectedResult, float|int|string $formula): void
14
+    public function testRoundDown(float | int | string $expectedResult, float | int | string $formula): void
15 15
     {
16 16
         $this->mightHaveException($expectedResult);
17 17
         $sheet = $this->getSheet();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/CscTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /**
12 12
      * @dataProvider providerCSC
13 13
      */
14
-    public function testCSC(float|int|string $expectedResult, float|int|string $angle): void
14
+    public function testCSC(float | int | string $expectedResult, float | int | string $angle): void
15 15
     {
16 16
         $this->mightHaveException($expectedResult);
17 17
         $sheet = $this->getSheet();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/CotTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /**
12 12
      * @dataProvider providerCOT
13 13
      */
14
-    public function testCOT(float|int|string $expectedResult, float|int|string $angle): void
14
+    public function testCOT(float | int | string $expectedResult, float | int | string $angle): void
15 15
     {
16 16
         $this->mightHaveException($expectedResult);
17 17
         $sheet = $this->getSheet();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/CschTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /**
12 12
      * @dataProvider providerCSCH
13 13
      */
14
-    public function testCSCH(float|int|string $expectedResult, float|int|string $angle): void
14
+    public function testCSCH(float | int | string $expectedResult, float | int | string $angle): void
15 15
     {
16 16
         $this->mightHaveException($expectedResult);
17 17
         $sheet = $this->getSheet();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/SecTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /**
12 12
      * @dataProvider providerSEC
13 13
      */
14
-    public function testSEC(float|int|string $expectedResult, float|int|string $angle): void
14
+    public function testSEC(float | int | string $expectedResult, float | int | string $angle): void
15 15
     {
16 16
         $this->mightHaveException($expectedResult);
17 17
         $sheet = $this->getSheet();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/AcothTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     /**
12 12
      * @dataProvider providerACOTH
13 13
      */
14
-    public function testACOTH(float|int|string $expectedResult, float|int|string $number): void
14
+    public function testACOTH(float | int | string $expectedResult, float | int | string $number): void
15 15
     {
16 16
         $this->mightHaveException($expectedResult);
17 17
         $sheet = $this->getSheet();
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
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     /**
13 13
      * @dataProvider providerDaysPerYear
14 14
      */
15
-    public function testDaysPerYear(mixed $expectedResult, int $year, int|string $basis): void
15
+    public function testDaysPerYear(mixed $expectedResult, int $year, int | string $basis): void
16 16
     {
17 17
         $result = Helpers::daysPerYear($year, $basis);
18 18
         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(
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * @dataProvider providerDATEVALUE
59 59
      */
60
-    public function testDirectCallToDATEVALUE(int|string $expectedResult, bool|int|string $value): void
60
+    public function testDirectCallToDATEVALUE(int | string $expectedResult, bool | int | string $value): void
61 61
     {
62 62
         if ($this->expectationIsTemplate($expectedResult)) {
63 63
             $expectedResult = $this->parseTemplatedExpectation((string) $expectedResult);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * @dataProvider providerDATEVALUE
72 72
      */
73
-    public function testDATEVALUEAsFormula(float|int|string $expectedResult, mixed ...$args): void
73
+    public function testDATEVALUEAsFormula(float | int | string $expectedResult, mixed ...$args): void
74 74
     {
75 75
         if ($this->expectationIsTemplate($expectedResult)) {
76 76
             $expectedResult = $this->parseTemplatedExpectation($expectedResult);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     /**
89 89
      * @dataProvider providerDATEVALUE
90 90
      */
91
-    public function testDATEVALUEInWorksheet(float|int|string $expectedResult, mixed ...$args): void
91
+    public function testDATEVALUEInWorksheet(float | int | string $expectedResult, mixed ...$args): void
92 92
     {
93 93
         if ($this->expectationIsTemplate($expectedResult)) {
94 94
             $expectedResult = $this->parseTemplatedExpectation($expectedResult);
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
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     /**
40 40
      * @dataProvider providerDATE
41 41
      */
42
-    public function testDirectCallToDATE(float|string $expectedResult, int|string $year, float|int|string $month, float|int|string $day): void
42
+    public function testDirectCallToDATE(float | string $expectedResult, int | string $year, float | int | string $month, float | int | string $day): void
43 43
     {
44 44
         $result = Date::fromYMD($year, $month, $day);
45 45
         self::assertSame($expectedResult, $result);
Please login to merge, or discard this patch.