@@ -36,7 +36,7 @@ |
||
36 | 36 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
37 | 37 | * with the same dimensions |
38 | 38 | */ |
39 | - public static function fromString(null|array|string|int|bool|float $timeValue): array|string|Datetime|int|float |
|
39 | + public static function fromString(null | array | string | int | bool | float $timeValue): array | string | Datetime | int | float |
|
40 | 40 | { |
41 | 41 | if (is_array($timeValue)) { |
42 | 42 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $this->formatBlocks = array_map([$this, 'mapFormatBlocks'], $formatBlocks); |
29 | 29 | } |
30 | 30 | |
31 | - private function mapFormatBlocks(DateTimeWizard|string $value): string |
|
31 | + private function mapFormatBlocks(DateTimeWizard | string $value): string |
|
32 | 32 | { |
33 | 33 | // Any date masking codes are returned as lower case values |
34 | 34 | if ($value instanceof DateTimeWizard) { |
@@ -252,7 +252,7 @@ |
||
252 | 252 | * |
253 | 253 | * @param string $name Attribute Name |
254 | 254 | */ |
255 | - public function getAttribute(string $name): null|float|int|string |
|
255 | + public function getAttribute(string $name): null | float | int | string |
|
256 | 256 | { |
257 | 257 | if (isset($this->attributes[$name])) { |
258 | 258 | return $this->attributes[$name]; |
@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** @param null|bool|float|int|string $value value to be wrapped */ |
73 | - protected function wrapValue(mixed $value, string $operandValueType): float|int|string |
|
73 | + protected function wrapValue(mixed $value, string $operandValueType): float | int | string |
|
74 | 74 | { |
75 | 75 | if (!is_numeric($value) && !is_bool($value) && null !== $value) { |
76 | 76 | if ($operandValueType === Wizard::VALUE_TYPE_LITERAL) { |
@@ -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 |
@@ -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(); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | mixed $presentValue, |
38 | 38 | mixed $futureValue = 0, |
39 | 39 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD |
40 | - ): string|float { |
|
40 | + ): string | float { |
|
41 | 41 | $interestRate = Functions::flattenSingleValue($interestRate); |
42 | 42 | $period = Functions::flattenSingleValue($period); |
43 | 43 | $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @param mixed $numberOfPeriods is the number of payments for the annuity |
88 | 88 | * @param mixed $principleRemaining is the loan amount or present value of the payments |
89 | 89 | */ |
90 | - public static function schedulePayment(mixed $interestRate, mixed $period, mixed $numberOfPeriods, mixed $principleRemaining): string|float |
|
90 | + public static function schedulePayment(mixed $interestRate, mixed $period, mixed $numberOfPeriods, mixed $principleRemaining): string | float |
|
91 | 91 | { |
92 | 92 | $interestRate = Functions::flattenSingleValue($interestRate); |
93 | 93 | $period = Functions::flattenSingleValue($period); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | mixed $futureValue = 0.0, |
157 | 157 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD, |
158 | 158 | mixed $guess = 0.1 |
159 | - ): string|float { |
|
159 | + ): string | float { |
|
160 | 160 | $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods); |
161 | 161 | $payment = Functions::flattenSingleValue($payment); |
162 | 162 | $presentValue = Functions::flattenSingleValue($presentValue); |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | return $close ? $rate : ExcelError::NAN(); |
194 | 194 | } |
195 | 195 | |
196 | - private static function rateNextGuess(float $rate, float $numberOfPeriods, float $payment, float $presentValue, float $futureValue, int $type): string|float |
|
196 | + private static function rateNextGuess(float $rate, float $numberOfPeriods, float $payment, float $presentValue, float $futureValue, int $type): string | float |
|
197 | 197 | { |
198 | 198 | if ($rate == 0.0) { |
199 | 199 | return ExcelError::NAN(); |
@@ -4648,7 +4648,7 @@ |
||
4648 | 4648 | * It can also happen that the REF structure uses the -1 (FFFF) code to indicate deleted sheets, |
4649 | 4649 | * in which case an Exception is thrown. |
4650 | 4650 | */ |
4651 | - protected function readSheetRangeByRefIndex(int $index): string|false |
|
4651 | + protected function readSheetRangeByRefIndex(int $index): string | false |
|
4652 | 4652 | { |
4653 | 4653 | if (isset($this->ref[$index])) { |
4654 | 4654 | $type = $this->externalBooks[$this->ref[$index]['externalBookIndex']]['type']; |