Passed
Pull Request — master (#3860)
by Adrien
19:40 queued 09:20
created
PhpSpreadsheetTests/Calculation/Functions/TextData/ValueToTextTest.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 providerVALUE
14 14
      */
15
-    public function testVALUETOTEXT(mixed $expectedResult, mixed $value, int|string $format): void
15
+    public function testVALUETOTEXT(mixed $expectedResult, mixed $value, int | string $format): void
16 16
     {
17 17
         $sheet = $this->getSheet();
18 18
         $this->setCell('A1', $value);
Please login to merge, or discard this patch.
PhpSpreadsheetTests/Calculation/Functions/Statistical/AllSetupTeardown.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
213 213
         self::assertEqualsWithDelta($expectedResult, $sheet->getCell('Z99')->getCalculatedValue(), 1.0e-8, 'arguments supplied as ranges');
214 214
     }
215 215
 
216
-    private function convertToString(null|bool|float|int|string|Stringable $arg): string
216
+    private function convertToString(null | bool | float | int | string | Stringable $arg): string
217 217
     {
218 218
         if (is_string($arg)) {
219 219
             return '"' . $arg . '"';
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
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * @dataProvider providerORLiteral
24 24
      */
25
-    public function testORLiteral(bool|string $expectedResult, float|int|string $formula): void
25
+    public function testORLiteral(bool | string $expectedResult, float | int | string $formula): void
26 26
     {
27 27
         $sheet = $this->getSheet();
28 28
         $sheet->getCell('A1')->setValue("=OR($formula)");
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Logical/AndTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * @dataProvider providerANDLiteral
24 24
      */
25
-    public function testANDLiteral(bool|string $expectedResult, float|int|string $formula): void
25
+    public function testANDLiteral(bool | string $expectedResult, float | int | string $formula): void
26 26
     {
27 27
         $sheet = $this->getSheet();
28 28
         $sheet->getCell('A1')->setValue("=AND($formula)");
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Custom/ComplexAssert.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         parent::__construct('complexAssert');
19 19
     }
20 20
 
21
-    private function testExpectedExceptions(string|float $expected, string|float $actual): bool
21
+    private function testExpectedExceptions(string | float $expected, string | float $actual): bool
22 22
     {
23 23
         //    Expecting an error, so we do a straight string comparison
24 24
         if ($expected === $actual) {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         return $this->errorMessage;
91 91
     }
92 92
 
93
-    public function runAssertComplexEquals(string $expected, array|float|string $actual, ?float $delta = null): void
93
+    public function runAssertComplexEquals(string $expected, array | float | string $actual, ?float $delta = null): void
94 94
     {
95 95
         self::assertTrue($this->assertComplexEquals($expected, $actual, $delta), $this->getErrorMessage());
96 96
     }
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Document/PropertiesTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * @dataProvider providerCreationTime
49 49
      */
50
-    public function testSetCreated(null|int $expectedCreationTime, null|int|string $created): void
50
+    public function testSetCreated(null | int $expectedCreationTime, null | int | string $created): void
51 51
     {
52 52
         $expectedCreationTime = $expectedCreationTime ?? $this->startTime;
53 53
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * @dataProvider providerModifiedTime
78 78
      */
79
-    public function testSetModified(mixed $expectedModifiedTime, null|int|string $modified): void
79
+    public function testSetModified(mixed $expectedModifiedTime, null | int | string $modified): void
80 80
     {
81 81
         $expectedModifiedTime = $expectedModifiedTime ?? $this->startTime;
82 82
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Cell/CoordinateTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
180 180
     /**
181 181
      * @dataProvider providerAbsoluteReferences
182 182
      */
183
-    public function testAbsoluteReferenceFromString(mixed $expectedResult, int|string $rangeSet): void
183
+    public function testAbsoluteReferenceFromString(mixed $expectedResult, int | string $rangeSet): void
184 184
     {
185 185
         $result = Coordinate::absoluteReference((string) $rangeSet);
186 186
         self::assertEquals($expectedResult, $result);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Cell/CellAddressTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     /**
42 42
      * @dataProvider providerCreateFromCellAddressException
43 43
      */
44
-    public function testCreateFromCellAddressException(int|string $cellAddress): void
44
+    public function testCreateFromCellAddressException(int | string $cellAddress): void
45 45
     {
46 46
         $this->expectException(Exception::class);
47 47
         $this->expectExceptionMessage(
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Shared/CodePageTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      *
16 16
      * @param string|string[] $expectedResult
17 17
      */
18
-    public function testCodePageNumberToName(array|string $expectedResult, int $codePageIndex): void
18
+    public function testCodePageNumberToName(array | string $expectedResult, int $codePageIndex): void
19 19
     {
20 20
         if ($expectedResult === 'exception') {
21 21
             $this->expectException(Exception::class);
Please login to merge, or discard this patch.