Failed Conditions
Pull Request — master (#4452)
by Owen
12:40
created
tests/PhpSpreadsheetTests/Cell/CoordinateTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
     }
171 171
 
172 172
     #[DataProvider('providerAbsoluteReferences')]
173
-    public function testAbsoluteReferenceFromString(mixed $expectedResult, int|string $rangeSet): void
173
+    public function testAbsoluteReferenceFromString(mixed $expectedResult, int | string $rangeSet): void
174 174
     {
175 175
         $result = Coordinate::absoluteReference((string) $rangeSet);
176 176
         self::assertEquals($expectedResult, $result);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Title.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      *
19 19
      * @var array<RichText|string>|RichText|string
20 20
      */
21
-    private array|RichText|string $caption;
21
+    private array | RichText | string $caption;
22 22
 
23 23
     /**
24 24
      * Allow overlay of other elements?
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * Create a new Title.
39 39
      */
40
-    public function __construct(array|RichText|string $caption = '', ?Layout $layout = null, bool $overlay = false)
40
+    public function __construct(array | RichText | string $caption = '', ?Layout $layout = null, bool $overlay = false)
41 41
     {
42 42
         $this->caption = $caption;
43 43
         $this->layout = $layout;
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      *
50 50
      * @return array<RichText|string>|RichText|string
51 51
      */
52
-    public function getCaption(): array|RichText|string
52
+    public function getCaption(): array | RichText | string
53 53
     {
54 54
         return $this->caption;
55 55
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      *
89 89
      * @return $this
90 90
      */
91
-    public function setCaption(array|RichText|string $caption): static
91
+    public function setCaption(array | RichText | string $caption): static
92 92
     {
93 93
         $this->caption = $caption;
94 94
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Cell/Coordinate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @return string Absolute coordinate        e.g. '$A' or '$1' or '$A$1'
86 86
      */
87
-    public static function absoluteReference(int|string $cellAddress): string
87
+    public static function absoluteReference(int | string $cellAddress): string
88 88
     {
89 89
         $cellAddress = (string) $cellAddress;
90 90
         if (self::coordinateIsRange($cellAddress)) {
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
      *
421 421
      * @param int|numeric-string $columnIndex Column index (A = 1)
422 422
      */
423
-    public static function stringFromColumnIndex(int|string $columnIndex): string
423
+    public static function stringFromColumnIndex(int | string $columnIndex): string
424 424
     {
425 425
         /** @var string[] */
426 426
         static $indexCache = [];
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Html.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1428,7 +1428,7 @@  discard block
 block discarded – undo
1428 1428
     }
1429 1429
 
1430 1430
     /** @param string|string[] $cssClass */
1431
-    private function generateRowCellData(Worksheet $worksheet, null|Cell|string $cell, array|string &$cssClass): string
1431
+    private function generateRowCellData(Worksheet $worksheet, null | Cell | string $cell, array | string &$cssClass): string
1432 1432
     {
1433 1433
         $cellData = '&nbsp;';
1434 1434
         if ($cell instanceof Cell) {
@@ -1513,7 +1513,7 @@  discard block
 block discarded – undo
1513 1513
         string $cellData,
1514 1514
         int $colSpan,
1515 1515
         int $rowSpan,
1516
-        array|string $cssClass,
1516
+        array | string $cssClass,
1517 1517
         int $colNum,
1518 1518
         int $sheetIndex,
1519 1519
         int $row,
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
         }
384 384
     }
385 385
 
386
-    private function processMemoryDrawing(BstoreContainer &$bstoreContainer, MemoryDrawing $drawing, string $renderingFunctionx): void
386
+    private function processMemoryDrawing(BstoreContainer & $bstoreContainer, MemoryDrawing $drawing, string $renderingFunctionx): void
387 387
     {
388 388
         switch ($renderingFunctionx) {
389 389
             case MemoryDrawing::RENDERING_JPEG:
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 
416 416
     private static int $two = 2; // phpstan silliness
417 417
 
418
-    private function processDrawing(BstoreContainer &$bstoreContainer, Drawing $drawing): void
418
+    private function processDrawing(BstoreContainer & $bstoreContainer, Drawing $drawing): void
419 419
     {
420 420
         $blipType = 0;
421 421
         $blipData = '';
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
         }
473 473
     }
474 474
 
475
-    private function processBaseDrawing(BstoreContainer &$bstoreContainer, BaseDrawing $drawing): void
475
+    private function processBaseDrawing(BstoreContainer & $bstoreContainer, BaseDrawing $drawing): void
476 476
     {
477 477
         if ($drawing instanceof Drawing && $drawing->getPath() !== '') {
478 478
             $this->processDrawing($bstoreContainer, $drawing);
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
     }
761 761
 
762 762
     /** @param array<int, array{summary: array{pack: string, data: mixed}, offset: array{pack: string}, type: array{pack: string, data: int}, data: array{data: mixed}}> $dataSection */
763
-    private function writeSummaryPropOle(float|int $dataProp, int &$dataSection_NumProps, array &$dataSection, int $sumdata, int $typdata): void
763
+    private function writeSummaryPropOle(float | int $dataProp, int &$dataSection_NumProps, array &$dataSection, int $sumdata, int $typdata): void
764 764
     {
765 765
         if ($dataProp) {
766 766
             $dataSection[] = [
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls/Parser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      *
95 95
      * @var mixed[]|string
96 96
      */
97
-    public array|string $parseTree;
97
+    public array | string $parseTree;
98 98
 
99 99
     /**
100 100
      * Array of external sheets.
Please login to merge, or discard this patch.