Passed
Pull Request — master (#3857)
by Adrien
13:29
created
src/PhpSpreadsheet/Writer/Xls/Parser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     /**
71 71
      * The parse tree to be generated.
72 72
      */
73
-    public array|string $parseTree;
73
+    public array | string $parseTree;
74 74
 
75 75
     /**
76 76
      * Array of external sheets.
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Font.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -329,12 +329,12 @@  discard block
 block discarded – undo
329 329
     /**
330 330
      * Pad amount for exact in pixels; use best guess if null.
331 331
      */
332
-    private static null|float|int $paddingAmountExact = null;
332
+    private static null | float | int $paddingAmountExact = null;
333 333
 
334 334
     /**
335 335
      * Set pad amount for exact in pixels; use best guess if null.
336 336
      */
337
-    public static function setPaddingAmountExact(null|float|int $paddingAmountExact): void
337
+    public static function setPaddingAmountExact(null | float | int $paddingAmountExact): void
338 338
     {
339 339
         self::$paddingAmountExact = $paddingAmountExact;
340 340
     }
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
     /**
343 343
      * Get pad amount for exact in pixels; or null if using best guess.
344 344
      */
345
-    public static function getPaddingAmountExact(): null|float|int
345
+    public static function getPaddingAmountExact(): null | float | int
346 346
     {
347 347
         return self::$paddingAmountExact;
348 348
     }
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
      *
516 516
      * @return float|int Size (in pixels)
517 517
      */
518
-    public static function inchSizeToPixels(int|float $sizeInInch): int|float
518
+    public static function inchSizeToPixels(int | float $sizeInInch): int | float
519 519
     {
520 520
         return $sizeInInch * 96;
521 521
     }
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
      *
528 528
      * @return float Size (in pixels)
529 529
      */
530
-    public static function centimeterSizeToPixels(int|float $sizeInCm): float
530
+    public static function centimeterSizeToPixels(int | float $sizeInCm): float
531 531
     {
532 532
         return $sizeInCm * 37.795275591;
533 533
     }
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
      *
629 629
      * @return ($returnAsPixels is true ? int : float) Column width
630 630
      */
631
-    public static function getDefaultColumnWidthByFont(FontStyle $font, bool $returnAsPixels = false): float|int
631
+    public static function getDefaultColumnWidthByFont(FontStyle $font, bool $returnAsPixels = false): float | int
632 632
     {
633 633
         if (isset(self::DEFAULT_COLUMN_WIDTHS[$font->getName()][$font->getSize()])) {
634 634
             // Exact width can be determined
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Collection/Memory/SimpleCache3.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,14 +62,14 @@
 block discarded – undo
62 62
         return array_key_exists($key, $this->cache);
63 63
     }
64 64
 
65
-    public function set(string $key, mixed $value, null|int|DateInterval $ttl = null): bool
65
+    public function set(string $key, mixed $value, null | int | DateInterval $ttl = null): bool
66 66
     {
67 67
         $this->cache[$key] = $value;
68 68
 
69 69
         return true;
70 70
     }
71 71
 
72
-    public function setMultiple(iterable $values, null|int|DateInterval $ttl = null): bool
72
+    public function setMultiple(iterable $values, null | int | DateInterval $ttl = null): bool
73 73
     {
74 74
         foreach ($values as $key => $value) {
75 75
             $this->set($key, $value);
Please login to merge, or discard this patch.