Passed
Pull Request — master (#4468)
by Owen
21:21 queued 14:00
created
src/PhpSpreadsheet/Reader/Xls/ConditionalFormatting.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     {
299 299
     }*/
300 300
 
301
-    private function readCFFormula(string $recordData, int $offset, int $size, Xls $xls): float|int|string|null
301
+    private function readCFFormula(string $recordData, int $offset, int $size, Xls $xls): float | int | string | null
302 302
     {
303 303
         try {
304 304
             $formula = substr($recordData, $offset, $size);
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     }
317 317
 
318 318
     /** @param string[] $cellRanges */
319
-    private function setCFRules(array $cellRanges, string $type, string $operator, null|float|int|string $formula1, null|float|int|string $formula2, Style $style, bool $noFormatSet, Xls $xls): void
319
+    private function setCFRules(array $cellRanges, string $type, string $operator, null | float | int | string $formula1, null | float | int | string $formula2, Style $style, bool $noFormatSet, Xls $xls): void
320 320
     {
321 321
         foreach ($cellRanges as $cellRange) {
322 322
             $conditional = new Conditional();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx/ConditionalStyles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@
 block discarded – undo
309 309
         return $dataBar;
310 310
     }
311 311
 
312
-    private function readColorScale(SimpleXMLElement|stdClass $cfRule): ConditionalColorScale
312
+    private function readColorScale(SimpleXMLElement | stdClass $cfRule): ConditionalColorScale
313 313
     {
314 314
         $colorScale = new ConditionalColorScale();
315 315
         /** @var SimpleXMLElement $cfRule */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx/Properties.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     }
92 92
 
93 93
     /** @param null|false|scalar[] $array */
94
-    private function getArrayItem(null|array|false $array): string
94
+    private function getArrayItem(null | array | false $array): string
95 95
     {
96 96
         return is_array($array) ? (string) ($array[0] ?? '') : '';
97 97
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/Style.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      *
70 70
      * @var null|array<string, mixed[]>
71 71
      */
72
-    private static ?array $cachedStyles = null;
72
+    private static ? array $cachedStyles = null;
73 73
 
74 74
     /**
75 75
      * Create a new Style.
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/ConditionalFormatting/CellMatcher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         };
117 117
     }
118 118
 
119
-    protected function wrapValue(mixed $value): float|int|string
119
+    protected function wrapValue(mixed $value): float | int | string
120 120
     {
121 121
         if (!is_numeric($value)) {
122 122
             if (is_bool($value)) {
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         return $value;
132 132
     }
133 133
 
134
-    protected function wrapCellValue(): float|int|string
134
+    protected function wrapCellValue(): float | int | string
135 135
     {
136 136
         $this->cell = $this->worksheet->getCell([$this->cellColumn, $this->cellRow]);
137 137
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     }
140 140
 
141 141
     /** @param string[] $matches */
142
-    protected function conditionCellAdjustment(array $matches): float|int|string
142
+    protected function conditionCellAdjustment(array $matches): float | int | string
143 143
     {
144 144
         $column = $matches[6];
145 145
         $row = $matches[7];
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/NumberFormat/NumberFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@
 block discarded – undo
265 265
     }
266 266
 
267 267
     /** @param mixed[]|string $value */
268
-    private static function makeString(array|string $value): string
268
+    private static function makeString(array | string $value): string
269 269
     {
270 270
         return is_array($value) ? '' : "$value";
271 271
     }
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
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         parent::__construct('complexAssert'); //* @phpstan-ignore-line
20 20
     }
21 21
 
22
-    private function testExpectedExceptions(string|float $expected, string|float $actual): bool
22
+    private function testExpectedExceptions(string | float $expected, string | float $actual): bool
23 23
     {
24 24
         //    Expecting an error, so we do a straight string comparison
25 25
         if ($expected === $actual) {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     }
93 93
 
94 94
     /** @param array<mixed>|float|string $actual */
95
-    public function runAssertComplexEquals(string $expected, array|float|string $actual, ?float $delta = null): void
95
+    public function runAssertComplexEquals(string $expected, array | float | string $actual, ?float $delta = null): void
96 96
     {
97 97
         self::assertTrue($this->assertComplexEquals($expected, $actual, $delta), $this->getErrorMessage());
98 98
     }
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
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     }
78 78
 
79 79
     #[DataProvider('providerCreateFromColumnRowException')]
80
-    public function testCreateFromColumnRowException(int|string $columnId, int|string $rowId): void
80
+    public function testCreateFromColumnRowException(int | string $columnId, int | string $rowId): void
81 81
     {
82 82
         $this->expectException(Exception::class);
83 83
         $this->expectExceptionMessage('Row and Column Ids must be positive integer values');
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
      * @param string|string[] $expectedResult
16 16
      */
17 17
     #[DataProvider('providerCodePage')]
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.