@@ -86,8 +86,8 @@ discard block |
||
86 | 86 | int $pointCount = 0, |
87 | 87 | ?array $dataValues = [], |
88 | 88 | ?string $marker = null, |
89 | - null|ChartColor|array|string $fillColor = null, |
|
90 | - int|string $pointSize = 3 |
|
89 | + null | ChartColor | array | string $fillColor = null, |
|
90 | + int | string $pointSize = 3 |
|
91 | 91 | ) { |
92 | 92 | parent::__construct(); |
93 | 93 | $this->markerFillColor = new ChartColor(); |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | * |
285 | 285 | * @return string|string[] HEX color or array with HEX colors |
286 | 286 | */ |
287 | - public function getFillColor(): string|array |
|
287 | + public function getFillColor(): string | array |
|
288 | 288 | { |
289 | 289 | if ($this->fillColor === null) { |
290 | 290 | return ''; |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | /** |
348 | 348 | * Get line width for series. |
349 | 349 | */ |
350 | - public function getLineWidth(): null|float|int |
|
350 | + public function getLineWidth(): null | float | int |
|
351 | 351 | { |
352 | 352 | return $this->lineStyleProperties['width']; |
353 | 353 | } |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | * |
358 | 358 | * @return $this |
359 | 359 | */ |
360 | - public function setLineWidth(null|float|int $width): static |
|
360 | + public function setLineWidth(null | float | int $width): static |
|
361 | 361 | { |
362 | 362 | $this->lineStyleProperties['width'] = $width; |
363 | 363 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | return $this; |
82 | 82 | } |
83 | 83 | |
84 | - public function setColorProperties(?string $color, null|float|int|string $alpha = null, ?string $type = null, null|float|int|string $brightness = null): self |
|
84 | + public function setColorProperties(?string $color, null | float | int | string $alpha = null, ?string $type = null, null | float | int | string $brightness = null): self |
|
85 | 85 | { |
86 | 86 | if (empty($type) && !empty($color)) { |
87 | 87 | if (str_starts_with($color, '*')) { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | /** |
133 | 133 | * Get Color Property. |
134 | 134 | */ |
135 | - public function getColorProperty(string $propertyName): null|int|string |
|
135 | + public function getColorProperty(string $propertyName): null | int | string |
|
136 | 136 | { |
137 | 137 | $retVal = null; |
138 | 138 | if ($propertyName === 'value') { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | return (string) (100 - $alpha) . '000'; |
154 | 154 | } |
155 | 155 | |
156 | - public static function alphaFromXml(float|int|string $alpha): int |
|
156 | + public static function alphaFromXml(float | int | string $alpha): int |
|
157 | 157 | { |
158 | 158 | return 100 - ((int) $alpha / 1000); |
159 | 159 | } |
@@ -232,7 +232,7 @@ |
||
232 | 232 | /** |
233 | 233 | * Get X-Position. |
234 | 234 | */ |
235 | - public function getXPosition(): null|float|int |
|
235 | + public function getXPosition(): null | float | int |
|
236 | 236 | { |
237 | 237 | return $this->xPos; |
238 | 238 | } |
@@ -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 |
@@ -95,7 +95,7 @@ |
||
95 | 95 | return $this->loadSheetsOnly; |
96 | 96 | } |
97 | 97 | |
98 | - public function setLoadSheetsOnly(string|array|null $sheetList): self |
|
98 | + public function setLoadSheetsOnly(string | array | null $sheetList): self |
|
99 | 99 | { |
100 | 100 | if ($sheetList === null) { |
101 | 101 | return $this->setLoadAllSheets(); |
@@ -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); |