Failed Conditions
Pull Request — master (#3876)
by Abdul Malik
22:45 queued 13:31
created
src/PhpSpreadsheet/Worksheet/AutoFilter/Column.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
      *
241 241
      * @param string $name Attribute Name
242 242
      */
243
-    public function getAttribute(string $name): null|int|string
243
+    public function getAttribute(string $name): null | int | string
244 244
     {
245 245
         return $this->attributes[$name] ?? null;
246 246
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/AutoFilter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      *              or an AddressRange object.
50 50
      */
51 51
     public function __construct(
52
-        AddressRange|string|array $range = '', /**
52
+        AddressRange | string | array $range = '', /**
53 53
          * Autofilter Worksheet.
54 54
          */
55 55
         private ?Worksheet $workSheet = null
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * Get AutoFilter Parent Worksheet.
71 71
      */
72
-    public function getParent(): null|Worksheet
72
+    public function getParent(): null | Worksheet
73 73
     {
74 74
         return $this->workSheet;
75 75
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      *              or passing in an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 8]),
104 104
      *              or an AddressRange object.
105 105
      */
106
-    public function setRange(AddressRange|string|array $range = ''): self
106
+    public function setRange(AddressRange | string | array $range = ''): self
107 107
     {
108 108
         $this->evaluated = false;
109 109
         // extract coordinate
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      *
232 232
      * @return $this
233 233
      */
234
-    public function setColumn(AutoFilter\Column|string $columnObjectOrString): static
234
+    public function setColumn(AutoFilter\Column | string $columnObjectOrString): static
235 235
     {
236 236
         $this->evaluated = false;
237 237
         if ((is_string($columnObjectOrString)) && (!empty($columnObjectOrString))) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/PageBreak.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * @param array{0: int, 1: int}|CellAddress|string $coordinate
15 15
      */
16
-    public function __construct(private int $breakType, CellAddress|string|array $coordinate, private int $maxColOrRow = -1)
16
+    public function __construct(private int $breakType, CellAddress | string | array $coordinate, private int $maxColOrRow = -1)
17 17
     {
18 18
         $coordinate = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate));
19 19
         $this->coordinate = $coordinate;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Random.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      *
16 16
      * @return float|int Random number
17 17
      */
18
-    public static function rand(): int|float
18
+    public static function rand(): int | float
19 19
     {
20 20
         return mt_rand(0, 10_000_000) / 10_000_000;
21 21
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
33 33
      *            with the same dimensions
34 34
      */
35
-    public static function randBetween(mixed $min, mixed $max): array|string|int
35
+    public static function randBetween(mixed $min, mixed $max): array | string | int
36 36
     {
37 37
         if (is_array($min) || is_array($max)) {
38 38
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $min, $max);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @return array|string The resulting array, or a string containing an error
69 69
      */
70
-    public static function randArray(mixed $rows = 1, mixed $columns = 1, mixed $min = 0, mixed $max = 1, bool $wholeNumber = false): string|array
70
+    public static function randArray(mixed $rows = 1, mixed $columns = 1, mixed $min = 0, mixed $max = 1, bool $wholeNumber = false): string | array
71 71
     {
72 72
         try {
73 73
             $rows = (int) Helpers::validateNumericNullSubstitution($rows, 1);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         return array_chunk(
88 88
             array_map(
89
-                fn (): int|float => $wholeNumber
89
+                fn (): int | float => $wholeNumber
90 90
                     ? mt_rand((int) $min, (int) $max)
91 91
                     : (mt_rand() / mt_getrandmax()) * ($max - $min) + $min,
92 92
                 array_fill(0, $rows * $columns, $min)
Please login to merge, or discard this patch.