Passed
Pull Request — master (#3860)
by Adrien
11:44
created
src/PhpSpreadsheet/Calculation/Database/DMax.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
      *                                        the column label in which you specify a condition for the
32 32
      *                                        column.
33 33
      */
34
-    public static function evaluate(array $database, array|null|int|string $field, array $criteria, bool $returnError = true): null|float|string
34
+    public static function evaluate(array $database, array | null | int | string $field, array $criteria, bool $returnError = true): null | float | string
35 35
     {
36 36
         $field = self::fieldExtract($database, $field);
37 37
         if ($field === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1325,7 +1325,7 @@  discard block
 block discarded – undo
1325 1325
         $objWriter->endElement();
1326 1326
     }
1327 1327
 
1328
-    private function writeCellInlineStr(XMLWriter $objWriter, string $mappedType, RichText|string $cellValue): void
1328
+    private function writeCellInlineStr(XMLWriter $objWriter, string $mappedType, RichText | string $cellValue): void
1329 1329
     {
1330 1330
         $objWriter->writeAttribute('t', $mappedType);
1331 1331
         if (!$cellValue instanceof RichText) {
@@ -1345,7 +1345,7 @@  discard block
 block discarded – undo
1345 1345
     /**
1346 1346
      * @param string[] $flippedStringTable
1347 1347
      */
1348
-    private function writeCellString(XMLWriter $objWriter, string $mappedType, RichText|string $cellValue, array $flippedStringTable): void
1348
+    private function writeCellString(XMLWriter $objWriter, string $mappedType, RichText | string $cellValue, array $flippedStringTable): void
1349 1349
     {
1350 1350
         $objWriter->writeAttribute('t', $mappedType);
1351 1351
         if (!$cellValue instanceof RichText) {
@@ -1355,7 +1355,7 @@  discard block
 block discarded – undo
1355 1355
         }
1356 1356
     }
1357 1357
 
1358
-    private function writeCellNumeric(XMLWriter $objWriter, float|int $cellValue): void
1358
+    private function writeCellNumeric(XMLWriter $objWriter, float | int $cellValue): void
1359 1359
     {
1360 1360
         //force a decimal to be written if the type is float
1361 1361
         if (is_float($cellValue)) {
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
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
         }
377 377
     }
378 378
 
379
-    private function processMemoryDrawing(BstoreContainer &$bstoreContainer, MemoryDrawing $drawing, string $renderingFunctionx): void
379
+    private function processMemoryDrawing(BstoreContainer & $bstoreContainer, MemoryDrawing $drawing, string $renderingFunctionx): void
380 380
     {
381 381
         switch ($renderingFunctionx) {
382 382
             case MemoryDrawing::RENDERING_JPEG:
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 
409 409
     private static int $two = 2; // phpstan silliness
410 410
 
411
-    private function processDrawing(BstoreContainer &$bstoreContainer, Drawing $drawing): void
411
+    private function processDrawing(BstoreContainer & $bstoreContainer, Drawing $drawing): void
412 412
     {
413 413
         $blipType = 0;
414 414
         $blipData = '';
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
         }
466 466
     }
467 467
 
468
-    private function processBaseDrawing(BstoreContainer &$bstoreContainer, BaseDrawing $drawing): void
468
+    private function processBaseDrawing(BstoreContainer & $bstoreContainer, BaseDrawing $drawing): void
469 469
     {
470 470
         if ($drawing instanceof Drawing) {
471 471
             $this->processDrawing($bstoreContainer, $drawing);
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
         return $data;
759 759
     }
760 760
 
761
-    private function writeSummaryPropOle(float|int $dataProp, int &$dataSection_NumProps, array &$dataSection, int $sumdata, int $typdata): void
761
+    private function writeSummaryPropOle(float | int $dataProp, int &$dataSection_NumProps, array &$dataSection, int $sumdata, int $typdata): void
762 762
     {
763 763
         if ($dataProp) {
764 764
             $dataSection[] = [
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls/Worksheet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2116,7 +2116,7 @@  discard block
 block discarded – undo
2116 2116
      * @param float $scale_x The horizontal scale
2117 2117
      * @param float $scale_y The vertical scale
2118 2118
      */
2119
-    public function insertBitmap(int $row, int $col, GdImage|string $bitmap, int $x = 0, int $y = 0, float $scale_x = 1, float $scale_y = 1): void
2119
+    public function insertBitmap(int $row, int $col, GdImage | string $bitmap, int $x = 0, int $y = 0, float $scale_x = 1, float $scale_y = 1): void
2120 2120
     {
2121 2121
         $bitmap_array = $bitmap instanceof GdImage
2122 2122
             ? $this->processBitmapGd($bitmap)
@@ -2258,7 +2258,7 @@  discard block
 block discarded – undo
2258 2258
      * @param int $rwB Row containing bottom right corner of object
2259 2259
      * @param int $dyB Distance from bottom of cell
2260 2260
      */
2261
-    private function writeObjPicture(int $colL, int $dxL, int $rwT, int|float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2261
+    private function writeObjPicture(int $colL, int $dxL, int $rwT, int | float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void
2262 2262
     {
2263 2263
         $record = 0x005D; // Record identifier
2264 2264
         $length = 0x003C; // Bytes to follow
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
@@ -1297,7 +1297,7 @@  discard block
 block discarded – undo
1297 1297
         }
1298 1298
     }
1299 1299
 
1300
-    private function generateRowCellData(Worksheet $worksheet, null|Cell|string $cell, array|string &$cssClass): string
1300
+    private function generateRowCellData(Worksheet $worksheet, null | Cell | string $cell, array | string &$cssClass): string
1301 1301
     {
1302 1302
         $cellData = ' ';
1303 1303
         if ($cell instanceof Cell) {
@@ -1367,7 +1367,7 @@  discard block
 block discarded – undo
1367 1367
         string $cellData,
1368 1368
         int $colSpan,
1369 1369
         int $rowSpan,
1370
-        array|string $cssClass,
1370
+        array | string $cssClass,
1371 1371
         int $colNum,
1372 1372
         int $sheetIndex,
1373 1373
         int $row
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Helper/Dimension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      *                If this is a height, then size is measured in pixels ()
49 49
      *                   or in points () if $unit is null.
50 50
      */
51
-    protected float|int $size;
51
+    protected float | int $size;
52 52
 
53 53
     protected ?string $unit = null;
54 54
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/Worksheet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3100,7 +3100,7 @@
 block discarded – undo
3100 3100
      *
3101 3101
      * @return ($range is non-empty-string ? ($returnRange is true ? array{0: string, 1: string} : string) : ($returnRange is true ? array{0: null, 1: null} : null))
3102 3102
      */
3103
-    public static function extractSheetTitle(?string $range, bool $returnRange = false): array|null|string
3103
+    public static function extractSheetTitle(?string $range, bool $returnRange = false): array | null | string
3104 3104
     {
3105 3105
         if (empty($range)) {
3106 3106
             return $returnRange ? [null, null] : null;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/AutoFilter/Column.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
      *
253 253
      * @param string $name Attribute Name
254 254
      */
255
-    public function getAttribute(string $name): null|int|string
255
+    public function getAttribute(string $name): null | int | string
256 256
     {
257 257
         if (isset($this->attributes[$name])) {
258 258
             return $this->attributes[$name];
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/AutoFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     /**
72 72
      * Get AutoFilter Parent Worksheet.
73 73
      */
74
-    public function getParent(): null|Worksheet
74
+    public function getParent(): null | Worksheet
75 75
     {
76 76
         return $this->workSheet;
77 77
     }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      *
234 234
      * @return $this
235 235
      */
236
-    public function setColumn(AutoFilter\Column|string $columnObjectOrString): static
236
+    public function setColumn(AutoFilter\Column | string $columnObjectOrString): static
237 237
     {
238 238
         $this->evaluated = false;
239 239
         if ((is_string($columnObjectOrString)) && (!empty($columnObjectOrString))) {
Please login to merge, or discard this patch.