@@ -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); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @return array|string If an array of numbers is passed as an argument, then the returned result will also be an array |
29 | 29 | * with the same dimensions |
30 | 30 | */ |
31 | - public static function IMDIV(array|string $complexDividend, array|string $complexDivisor): array|string |
|
31 | + public static function IMDIV(array | string $complexDividend, array | string $complexDivisor): array | string |
|
32 | 32 | { |
33 | 33 | if (is_array($complexDividend) || is_array($complexDivisor)) { |
34 | 34 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexDividend, $complexDivisor); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * @return array|string If an array of numbers is passed as an argument, then the returned result will also be an array |
58 | 58 | * with the same dimensions |
59 | 59 | */ |
60 | - public static function IMSUB(array|string $complexNumber1, array|string $complexNumber2): array|string |
|
60 | + public static function IMSUB(array | string $complexNumber1, array | string $complexNumber2): array | string |
|
61 | 61 | { |
62 | 62 | if (is_array($complexNumber1) || is_array($complexNumber2)) { |
63 | 63 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexNumber1, $complexNumber2); |
@@ -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 @@ discard block |
||
31 | 31 | * @return array|string If an array of numbers is passed as an argument, then the returned result will also be an array |
32 | 32 | * with the same dimensions |
33 | 33 | */ |
34 | - public static function COMPLEX(mixed $realNumber = 0.0, mixed $imaginary = 0.0, mixed $suffix = 'i'): array|string |
|
34 | + public static function COMPLEX(mixed $realNumber = 0.0, mixed $imaginary = 0.0, mixed $suffix = 'i'): array | string |
|
35 | 35 | { |
36 | 36 | if (is_array($realNumber) || is_array($imaginary) || is_array($suffix)) { |
37 | 37 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $realNumber, $imaginary, $suffix); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
74 | 74 | * with the same dimensions |
75 | 75 | */ |
76 | - public static function IMAGINARY($complexNumber): array|string|float |
|
76 | + public static function IMAGINARY($complexNumber): array | string | float |
|
77 | 77 | { |
78 | 78 | if (is_array($complexNumber)) { |
79 | 79 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
104 | 104 | * with the same dimensions |
105 | 105 | */ |
106 | - public static function IMREAL($complexNumber): array|string|float |
|
106 | + public static function IMREAL($complexNumber): array | string | float |
|
107 | 107 | { |
108 | 108 | if (is_array($complexNumber)) { |
109 | 109 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * @return array|float|string If an array of numbers is passed as an argument, then the returned result will also be an array |
35 | 35 | * with the same dimensions |
36 | 36 | */ |
37 | - public static function ERF(mixed $lower, mixed $upper = null): array|float|string |
|
37 | + public static function ERF(mixed $lower, mixed $upper = null): array | float | string |
|
38 | 38 | { |
39 | 39 | if (is_array($lower) || is_array($upper)) { |
40 | 40 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $lower, $upper); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Method to calculate the erf value. |
85 | 85 | */ |
86 | - public static function erfValue(float|int|string $value): float |
|
86 | + public static function erfValue(float | int | string $value): float |
|
87 | 87 | { |
88 | 88 | $value = (float) $value; |
89 | 89 | if (abs($value) > 2.2) { |