@@ -240,7 +240,7 @@ |
||
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 | } |
@@ -49,7 +49,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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))) { |
@@ -13,7 +13,7 @@ |
||
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; |
@@ -15,7 +15,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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) |