@@ -289,7 +289,7 @@ |
||
289 | 289 | * |
290 | 290 | * @return int|string The extracted colour component |
291 | 291 | */ |
292 | - private static function getColourComponent($rgbValue, $offset, $hex = true): string|int |
|
292 | + private static function getColourComponent($rgbValue, $offset, $hex = true): string | int |
|
293 | 293 | { |
294 | 294 | $colour = substr($rgbValue, $offset, 2) ?: ''; |
295 | 295 | if (preg_match('/^[0-9a-f]{2}$/i', $colour) !== 1) { |
@@ -73,7 +73,7 @@ |
||
73 | 73 | * |
74 | 74 | * @return int |
75 | 75 | */ |
76 | - public function getPlotSeriesCount(): int|float |
|
76 | + public function getPlotSeriesCount(): int | float |
|
77 | 77 | { |
78 | 78 | $seriesCount = 0; |
79 | 79 | foreach ($this->plotSeries as $plot) { |
@@ -316,7 +316,7 @@ |
||
316 | 316 | * |
317 | 317 | * @return string|string[] HEX color or array with HEX colors |
318 | 318 | */ |
319 | - public function getFillColor(): string|array |
|
319 | + public function getFillColor(): string | array |
|
320 | 320 | { |
321 | 321 | if ($this->fillColor === null) { |
322 | 322 | return ''; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $this->aNamespace = $aNamespace; |
35 | 35 | } |
36 | 36 | |
37 | - private static function getAttributeString(SimpleXMLElement $component, string $name): string|null |
|
37 | + private static function getAttributeString(SimpleXMLElement $component, string $name): string | null |
|
38 | 38 | { |
39 | 39 | $attributes = $component->attributes(); |
40 | 40 | if (@isset($attributes[$name])) { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return null; |
45 | 45 | } |
46 | 46 | |
47 | - private static function getAttributeInteger(SimpleXMLElement $component, string $name): int|null |
|
47 | + private static function getAttributeInteger(SimpleXMLElement $component, string $name): int | null |
|
48 | 48 | { |
49 | 49 | $attributes = $component->attributes(); |
50 | 50 | if (@isset($attributes[$name])) { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | return null; |
55 | 55 | } |
56 | 56 | |
57 | - private static function getAttributeBoolean(SimpleXMLElement $component, string $name): bool|null |
|
57 | + private static function getAttributeBoolean(SimpleXMLElement $component, string $name): bool | null |
|
58 | 58 | { |
59 | 59 | $attributes = $component->attributes(); |
60 | 60 | if (@isset($attributes[$name])) { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return null; |
67 | 67 | } |
68 | 68 | |
69 | - private static function getAttributeFloat(SimpleXMLElement $component, string $name): float|null |
|
69 | + private static function getAttributeFloat(SimpleXMLElement $component, string $name): float | null |
|
70 | 70 | { |
71 | 71 | $attributes = $component->attributes(); |
72 | 72 | if (@isset($attributes[$name])) { |
@@ -7352,7 +7352,7 @@ discard block |
||
7352 | 7352 | * It can also happen that the REF structure uses the -1 (FFFF) code to indicate deleted sheets, |
7353 | 7353 | * in which case an Exception is thrown. |
7354 | 7354 | */ |
7355 | - private function readSheetRangeByRefIndex(int $index): string|false |
|
7355 | + private function readSheetRangeByRefIndex(int $index): string | false |
|
7356 | 7356 | { |
7357 | 7357 | if (isset($this->ref[$index])) { |
7358 | 7358 | $type = $this->externalBooks[$this->ref[$index]['externalBookIndex']]['type']; |
@@ -7649,7 +7649,7 @@ discard block |
||
7649 | 7649 | * |
7650 | 7650 | * @return float |
7651 | 7651 | */ |
7652 | - private static function extractNumber($data): int|float |
|
7652 | + private static function extractNumber($data): int | float |
|
7653 | 7653 | { |
7654 | 7654 | $rknumhigh = self::getInt4d($data, 4); |
7655 | 7655 | $rknumlow = self::getInt4d($data, 0); |
@@ -7677,7 +7677,7 @@ discard block |
||
7677 | 7677 | * |
7678 | 7678 | * @return float |
7679 | 7679 | */ |
7680 | - private static function getIEEE754($rknum): float|int |
|
7680 | + private static function getIEEE754($rknum): float | int |
|
7681 | 7681 | { |
7682 | 7682 | if (($rknum & 0x02) != 0) { |
7683 | 7683 | $value = $rknum >> 2; |
@@ -7988,7 +7988,7 @@ discard block |
||
7988 | 7988 | { |
7989 | 7989 | } |
7990 | 7990 | |
7991 | - private function readCFFormula(string $recordData, int $offset, int $size): float|int|string|null |
|
7991 | + private function readCFFormula(string $recordData, int $offset, int $size): float | int | string | null |
|
7992 | 7992 | { |
7993 | 7993 | try { |
7994 | 7994 | $formula = substr($recordData, $offset, $size); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | * @param int $code |
21 | 21 | */ |
22 | - public static function lookup($code): string|bool |
|
22 | + public static function lookup($code): string | bool |
|
23 | 23 | { |
24 | 24 | return self::ERROR_CODE_MAP[$code] ?? false; |
25 | 25 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * @TODO The field argument is optional. If field is omitted, DCOUNT counts all records in the |
75 | 75 | * database that match the criteria. |
76 | 76 | */ |
77 | - public static function DCOUNT($database, $field, $criteria): string|int |
|
77 | + public static function DCOUNT($database, $field, $criteria): string | int |
|
78 | 78 | { |
79 | 79 | return Database\DCount::evaluate($database, $field, $criteria); |
80 | 80 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * the column label in which you specify a condition for the |
107 | 107 | * column. |
108 | 108 | */ |
109 | - public static function DCOUNTA($database, $field, $criteria): string|int |
|
109 | + public static function DCOUNTA($database, $field, $criteria): string | int |
|
110 | 110 | { |
111 | 111 | return Database\DCountA::evaluate($database, $field, $criteria); |
112 | 112 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
78 | 78 | * with the same dimensions |
79 | 79 | */ |
80 | - public static function toHex($value, $places = null): array|string |
|
80 | + public static function toHex($value, $places = null): array | string |
|
81 | 81 | { |
82 | 82 | if (is_array($value) || is_array($places)) { |
83 | 83 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
131 | 131 | * with the same dimensions |
132 | 132 | */ |
133 | - public static function toOctal($value, $places = null): array|string |
|
133 | + public static function toOctal($value, $places = null): array | string |
|
134 | 134 | { |
135 | 135 | if (is_array($value) || is_array($places)) { |
136 | 136 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
30 | 30 | * with the same dimensions |
31 | 31 | */ |
32 | - public static function DELTA($a, $b = 0.0): array|string|int |
|
32 | + public static function DELTA($a, $b = 0.0): array | string | int |
|
33 | 33 | { |
34 | 34 | if (is_array($a) || is_array($b)) { |
35 | 35 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $a, $b); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
65 | 65 | * with the same dimensions |
66 | 66 | */ |
67 | - public static function GESTEP($number, $step = 0.0): array|string|int |
|
67 | + public static function GESTEP($number, $step = 0.0): array | string | int |
|
68 | 68 | { |
69 | 69 | if (is_array($number) || is_array($step)) { |
70 | 70 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $step); |