@@ -276,7 +276,7 @@ |
||
276 | 276 | /** |
277 | 277 | * Read style. |
278 | 278 | */ |
279 | - public function readStyle(Style $docStyle, SimpleXMLElement|stdClass $style): void |
|
279 | + public function readStyle(Style $docStyle, SimpleXMLElement | stdClass $style): void |
|
280 | 280 | { |
281 | 281 | if ($style instanceof SimpleXMLElement) { |
282 | 282 | $this->readNumberFormat($docStyle->getNumberFormat(), $style->numFmt); |
@@ -11,11 +11,11 @@ |
||
11 | 11 | |
12 | 12 | class AutoFilter |
13 | 13 | { |
14 | - private Table|Worksheet $parent; |
|
14 | + private Table | Worksheet $parent; |
|
15 | 15 | |
16 | 16 | private SimpleXMLElement $worksheetXml; |
17 | 17 | |
18 | - public function __construct(Table|Worksheet $parent, SimpleXMLElement $worksheetXml) |
|
18 | + public function __construct(Table | Worksheet $parent, SimpleXMLElement $worksheetXml) |
|
19 | 19 | { |
20 | 20 | $this->parent = $parent; |
21 | 21 | $this->worksheetXml = $worksheetXml; |
@@ -88,7 +88,7 @@ |
||
88 | 88 | * |
89 | 89 | * @return $this |
90 | 90 | */ |
91 | - public function setLoadSheetsOnly(string|array|null $value): self; |
|
91 | + public function setLoadSheetsOnly(string | array | null $value): self; |
|
92 | 92 | |
93 | 93 | /** |
94 | 94 | * Set all sheets to load |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * Map error code, e.g. '#N/A'. |
19 | 19 | */ |
20 | - public static function lookup(int $code): string|bool |
|
20 | + public static function lookup(int $code): string | bool |
|
21 | 21 | { |
22 | 22 | return self::ERROR_CODE_MAP[$code] ?? false; |
23 | 23 | } |
@@ -615,7 +615,7 @@ |
||
615 | 615 | throw new Exception('UoM Not Found'); |
616 | 616 | } |
617 | 617 | |
618 | - protected static function convertTemperature(string $fromUOM, string $toUOM, float|int $value): float|int |
|
618 | + protected static function convertTemperature(string $fromUOM, string $toUOM, float | int $value): float | int |
|
619 | 619 | { |
620 | 620 | $fromUOM = self::resolveTemperatureSynonyms($fromUOM); |
621 | 621 | $toUOM = self::resolveTemperatureSynonyms($toUOM); |
@@ -47,7 +47,7 @@ |
||
47 | 47 | /** |
48 | 48 | * Method to calculate the erfc value. |
49 | 49 | */ |
50 | - private static function erfcValue(float|int|string $value): float|int |
|
50 | + private static function erfcValue(float | int | string $value): float | int |
|
51 | 51 | { |
52 | 52 | $value = (float) $value; |
53 | 53 | if (abs($value) < 2.2) { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * If an array of values is passed for the $startDate or $endDays,arguments, then the returned result |
32 | 32 | * will also be an array with matching dimensions |
33 | 33 | */ |
34 | - public static function between(array|DateTimeInterface|float|int|string $endDate, array|DateTimeInterface|float|int|string $startDate): array|int|string |
|
34 | + public static function between(array | DateTimeInterface | float | int | string $endDate, array | DateTimeInterface | float | int | string $startDate): array | int | string |
|
35 | 35 | { |
36 | 36 | if (is_array($endDate) || is_array($startDate)) { |
37 | 37 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $endDate, $startDate); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * If an array of values is passed for the $startDate or $endDays,arguments, then the returned result |
45 | 45 | * will also be an array with matching dimensions |
46 | 46 | */ |
47 | - public static function between(mixed $startDate = 0, mixed $endDate = 0, mixed $method = false): array|string|int |
|
47 | + public static function between(mixed $startDate = 0, mixed $endDate = 0, mixed $method = false): array | string | int |
|
48 | 48 | { |
49 | 49 | if (is_array($startDate) || is_array($endDate) || is_array($method)) { |
50 | 50 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $startDate, $endDate, $method); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
44 | 44 | * with the same dimensions |
45 | 45 | */ |
46 | - public static function fromHMS(array|int|float|bool|null|string $hour, array|int|float|bool|null|string $minute, array|int|float|bool|null|string $second): array|string|float|int|DateTime |
|
46 | + public static function fromHMS(array | int | float | bool | null | string $hour, array | int | float | bool | null | string $minute, array | int | float | bool | null | string $second): array | string | float | int | DateTime |
|
47 | 47 | { |
48 | 48 | if (is_array($hour) || is_array($minute) || is_array($second)) { |
49 | 49 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $hour, $minute, $second); |