@@ -282,7 +282,7 @@ |
||
282 | 282 | return $dataBar; |
283 | 283 | } |
284 | 284 | |
285 | - private function readColorScale(SimpleXMLElement|stdClass $cfRule): ConditionalColorScale |
|
285 | + private function readColorScale(SimpleXMLElement | stdClass $cfRule): ConditionalColorScale |
|
286 | 286 | { |
287 | 287 | $colorScale = new ConditionalColorScale(); |
288 | 288 | $count = count($cfRule->colorScale->cfvo); |
@@ -158,7 +158,7 @@ |
||
158 | 158 | /** |
159 | 159 | * @param AddressRange<CellAddress>|array{0: int, 1: int, 2: int, 3: int}|array{0: int, 1: int}|string $fullRange |
160 | 160 | */ |
161 | - public function xtestSetRangeValidRange(string|array|AddressRange $fullRange, string $actualRange): void |
|
161 | + public function xtestSetRangeValidRange(string | array | AddressRange $fullRange, string $actualRange): void |
|
162 | 162 | { |
163 | 163 | $table = new Table(self::INITIAL_RANGE); |
164 | 164 |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | return ((float) $value) / self::PERCENTAGE_MULTIPLIER; |
179 | 179 | } |
180 | 180 | |
181 | - protected function setColorProperties(?string $color, null|float|int|string $alpha, ?string $colorType): array |
|
181 | + protected function setColorProperties(?string $color, null | float | int | string $alpha, ?string $colorType): array |
|
182 | 182 | { |
183 | 183 | return [ |
184 | 184 | 'type' => $colorType, |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | /** |
404 | 404 | * Get value of array element. |
405 | 405 | */ |
406 | - protected function getArrayElementsValue(array $properties, array|int|string $elements): mixed |
|
406 | + protected function getArrayElementsValue(array $properties, array | int | string $elements): mixed |
|
407 | 407 | { |
408 | 408 | $reference = &$properties; |
409 | 409 | if (!is_array($elements)) { |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | /** |
438 | 438 | * Get Glow Property. |
439 | 439 | */ |
440 | - public function getGlowProperty(array|string $property): null|array|float|int|string |
|
440 | + public function getGlowProperty(array | string $property): null | array | float | int | string |
|
441 | 441 | { |
442 | 442 | $retVal = null; |
443 | 443 | if ($property === 'size') { |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | /** |
459 | 459 | * Get Glow Color Property. |
460 | 460 | */ |
461 | - public function getGlowColor(string $propertyName): null|int|string |
|
461 | + public function getGlowColor(string $propertyName): null | int | string |
|
462 | 462 | { |
463 | 463 | return $this->glowColor->getColorProperty($propertyName); |
464 | 464 | } |
@@ -522,7 +522,7 @@ discard block |
||
522 | 522 | /** |
523 | 523 | * Set Shadow Properties. |
524 | 524 | */ |
525 | - public function setShadowProperties(int $presets, ?string $colorValue = null, ?string $colorType = null, null|float|int|string $colorAlpha = null, ?float $blur = null, ?int $angle = null, ?float $distance = null): void |
|
525 | + public function setShadowProperties(int $presets, ?string $colorValue = null, ?string $colorType = null, null | float | int | string $colorAlpha = null, ?float $blur = null, ?int $angle = null, ?float $distance = null): void |
|
526 | 526 | { |
527 | 527 | $this->activateObject()->setShadowPresetsProperties((int) $presets); |
528 | 528 | if ($presets === 0) { |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | * |
606 | 606 | * @return $this |
607 | 607 | */ |
608 | - protected function setShadowAngle(null|float|int|string $angle) |
|
608 | + protected function setShadowAngle(null | float | int | string $angle) |
|
609 | 609 | { |
610 | 610 | if (is_numeric($angle)) { |
611 | 611 | $this->shadowProperties['direction'] = $angle; |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | * |
639 | 639 | * @param string|string[] $elements |
640 | 640 | */ |
641 | - public function getShadowProperty($elements): array|string|null |
|
641 | + public function getShadowProperty($elements): array | string | null |
|
642 | 642 | { |
643 | 643 | if ($elements === 'color') { |
644 | 644 | return [ |
@@ -726,7 +726,7 @@ discard block |
||
726 | 726 | /** |
727 | 727 | * Get Line Color Property. |
728 | 728 | */ |
729 | - public function getLineColorProperty(string $propertyName): null|int|string |
|
729 | + public function getLineColorProperty(string $propertyName): null | int | string |
|
730 | 730 | { |
731 | 731 | return $this->lineColor->getColorProperty($propertyName); |
732 | 732 | } |
@@ -735,7 +735,7 @@ discard block |
||
735 | 735 | * Set Line Style Properties. |
736 | 736 | */ |
737 | 737 | public function setLineStyleProperties( |
738 | - null|float|int|string $lineWidth = null, |
|
738 | + null | float | int | string $lineWidth = null, |
|
739 | 739 | ?string $compoundType = '', |
740 | 740 | ?string $dashType = '', |
741 | 741 | ?string $capType = '', |
@@ -831,7 +831,7 @@ discard block |
||
831 | 831 | /** |
832 | 832 | * Get Line Style Property. |
833 | 833 | */ |
834 | - public function getLineStyleProperty(array|string $elements): ?string |
|
834 | + public function getLineStyleProperty(array | string $elements): ?string |
|
835 | 835 | { |
836 | 836 | $retVal = $this->getArrayElementsValue($this->lineStyleProperties, $elements); |
837 | 837 | if (is_scalar($retVal)) { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | }; |
115 | 115 | } |
116 | 116 | |
117 | - protected function wrapValue(mixed $value): float|int|string |
|
117 | + protected function wrapValue(mixed $value): float | int | string |
|
118 | 118 | { |
119 | 119 | if (!is_numeric($value)) { |
120 | 120 | if (is_bool($value)) { |
@@ -129,14 +129,14 @@ discard block |
||
129 | 129 | return $value; |
130 | 130 | } |
131 | 131 | |
132 | - protected function wrapCellValue(): float|int|string |
|
132 | + protected function wrapCellValue(): float | int | string |
|
133 | 133 | { |
134 | 134 | $this->cell = $this->worksheet->getCell([$this->cellColumn, $this->cellRow]); |
135 | 135 | |
136 | 136 | return $this->wrapValue($this->cell->getCalculatedValue()); |
137 | 137 | } |
138 | 138 | |
139 | - protected function conditionCellAdjustment(array $matches): float|int|string |
|
139 | + protected function conditionCellAdjustment(array $matches): float | int | string |
|
140 | 140 | { |
141 | 141 | $column = $matches[6]; |
142 | 142 | $row = $matches[7]; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @param array $args data to be concatenated |
51 | 51 | */ |
52 | - public static function actualCONCATENATE(...$args): array|string |
|
52 | + public static function actualCONCATENATE(...$args): array | string |
|
53 | 53 | { |
54 | 54 | if (Functions::getCompatibilityMode() === Functions::COMPATIBILITY_GNUMERIC) { |
55 | 55 | return self::CONCATENATE(...$args); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | return $result; |
66 | 66 | } |
67 | 67 | |
68 | - private static function concatenate2Args(array|string $operand1, null|array|bool|float|int|string $operand2): array|string |
|
68 | + private static function concatenate2Args(array | string $operand1, null | array | bool | float | int | string $operand2): array | string |
|
69 | 69 | { |
70 | 70 | if (is_array($operand1) || is_array($operand2)) { |
71 | 71 | $operand1 = Calculation::boolToString($operand1); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * If an array of values is passed for the $delimiter or $ignoreEmpty arguments, then the returned result |
112 | 112 | * will also be an array with matching dimensions |
113 | 113 | */ |
114 | - public static function TEXTJOIN(mixed $delimiter = '', mixed $ignoreEmpty = true, mixed ...$args): array|string |
|
114 | + public static function TEXTJOIN(mixed $delimiter = '', mixed $ignoreEmpty = true, mixed ...$args): array | string |
|
115 | 115 | { |
116 | 116 | if (is_array($delimiter) || is_array($ignoreEmpty)) { |
117 | 117 | return self::evaluateArrayArgumentsSubset( |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | * If an array of values is passed for the $stringValue or $repeatCount arguments, then the returned result |
169 | 169 | * will also be an array with matching dimensions |
170 | 170 | */ |
171 | - public static function builtinREPT(mixed $stringValue, mixed $repeatCount): array|string |
|
171 | + public static function builtinREPT(mixed $stringValue, mixed $repeatCount): array | string |
|
172 | 172 | { |
173 | 173 | if (is_array($stringValue) || is_array($repeatCount)) { |
174 | 174 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $stringValue, $repeatCount); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | return $result; |
40 | 40 | } |
41 | 41 | |
42 | - public static function anchorArray(string $cellReference, Cell $cell): array|string |
|
42 | + public static function anchorArray(string $cellReference, Cell $cell): array | string |
|
43 | 43 | { |
44 | 44 | //$coordinate = $cell->getCoordinate(); |
45 | 45 | $worksheet = $cell->getWorksheet(); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | string $cellAddress, |
29 | 29 | string $expectedRange, |
30 | 30 | string $expectedFormula, |
31 | - array|float $expectedValue |
|
31 | + array | float $expectedValue |
|
32 | 32 | ): void { |
33 | 33 | $filename = 'tests/data/Reader/Gnumeric/ArrayFormulaTest.gnumeric'; |
34 | 34 | $reader = new Gnumeric(); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | string $cellAddress, |
29 | 29 | string $expectedRange, |
30 | 30 | string $expectedFormula, |
31 | - array|float $expectedValue |
|
31 | + array | float $expectedValue |
|
32 | 32 | ): void { |
33 | 33 | $filename = 'tests/data/Reader/Ods/ArrayFormulaTest.ods'; |
34 | 34 | $reader = new Ods(); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @return array|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
19 | 19 | * with the same dimensions |
20 | 20 | */ |
21 | - public static function isErr(mixed $value = ''): array|bool |
|
21 | + public static function isErr(mixed $value = ''): array | bool |
|
22 | 22 | { |
23 | 23 | if (is_array($value)) { |
24 | 24 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @return array|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
37 | 37 | * with the same dimensions |
38 | 38 | */ |
39 | - public static function isError(mixed $value = '', bool $tryNotImplemented = false): array|bool |
|
39 | + public static function isError(mixed $value = '', bool $tryNotImplemented = false): array | bool |
|
40 | 40 | { |
41 | 41 | if (is_array($value)) { |
42 | 42 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * @return array|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
62 | 62 | * with the same dimensions |
63 | 63 | */ |
64 | - public static function isNa(mixed $value = ''): array|bool |
|
64 | + public static function isNa(mixed $value = ''): array | bool |
|
65 | 65 | { |
66 | 66 | if (is_array($value)) { |
67 | 67 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |