@@ -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']; |
@@ -110,10 +110,10 @@ discard block |
||
110 | 110 | // should be consistent with Writer\Xls\Style\CellBorder |
111 | 111 | final const BORDER_STYLE_MAP = [ |
112 | 112 | Border::BORDER_NONE, // => 0x00, |
113 | - Border::BORDER_THIN, // => 0x01, |
|
113 | + Border::BORDER_THIN, // => 0x01, |
|
114 | 114 | Border::BORDER_MEDIUM, // => 0x02, |
115 | 115 | Border::BORDER_DASHED, // => 0x03, |
116 | - Border::BORDER_DOTTED, // => 0x04, |
|
116 | + Border::BORDER_DOTTED, // => 0x04, |
|
117 | 117 | Border::BORDER_THICK, // => 0x05, |
118 | 118 | Border::BORDER_DOUBLE, // => 0x06, |
119 | 119 | Border::BORDER_HAIR, // => 0x07, |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | * |
276 | 276 | * @param string $data Binary string that is at least 8 bytes long |
277 | 277 | */ |
278 | - protected static function extractNumber(string $data): int|float |
|
278 | + protected static function extractNumber(string $data): int | float |
|
279 | 279 | { |
280 | 280 | $rknumhigh = self::getInt4d($data, 4); |
281 | 281 | $rknumlow = self::getInt4d($data, 0); |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | return $value; |
301 | 301 | } |
302 | 302 | |
303 | - protected static function getIEEE754(int $rknum): float|int |
|
303 | + protected static function getIEEE754(int $rknum): float | int |
|
304 | 304 | { |
305 | 305 | if (($rknum & 0x02) != 0) { |
306 | 306 | $value = $rknum >> 2; |
@@ -108,7 +108,7 @@ |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | /** @return false|SimpleXMLElement */ |
111 | - private function trySimpleXMLLoadStringPrivate(string $filename, string $fileOrString = 'file'): SimpleXMLElement|bool |
|
111 | + private function trySimpleXMLLoadStringPrivate(string $filename, string $fileOrString = 'file'): SimpleXMLElement | bool |
|
112 | 112 | { |
113 | 113 | $this->xmlFailMessage = "Cannot load invalid XML $fileOrString: " . $filename; |
114 | 114 | $xml = false; |
@@ -6,9 +6,9 @@ |
||
6 | 6 | |
7 | 7 | class StringableObject |
8 | 8 | { |
9 | - private int|string $value; |
|
9 | + private int | string $value; |
|
10 | 10 | |
11 | - public function __construct(int|string $value = 'abc') |
|
11 | + public function __construct(int | string $value = 'abc') |
|
12 | 12 | { |
13 | 13 | $this->value = $value; |
14 | 14 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
26 | 26 | * with the same dimensions |
27 | 27 | */ |
28 | - public static function evaluate(array|float|string|null $value = 0, array|float|int|string $digits = 0): array|float|string |
|
28 | + public static function evaluate(array | float | string | null $value = 0, array | float | int | string $digits = 0): array | float | string |
|
29 | 29 | { |
30 | 30 | if (is_array($value) || is_array($digits)) { |
31 | 31 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $digits); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * @param string[] $formatBlocks |
15 | 15 | */ |
16 | 16 | #[\PHPUnit\Framework\Attributes\DataProvider('providerTime')] |
17 | - public function testTime(string $expectedResult, string|array|null $separators = null, array $formatBlocks = []): void |
|
17 | + public function testTime(string $expectedResult, string | array | null $separators = null, array $formatBlocks = []): void |
|
18 | 18 | { |
19 | 19 | $wizard = new Duration($separators, ...$formatBlocks); |
20 | 20 | self::assertSame($expectedResult, (string) $wizard); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * @param string[] $formatBlocks |
15 | 15 | */ |
16 | 16 | #[\PHPUnit\Framework\Attributes\DataProvider('providerTime')] |
17 | - public function testTime(string $expectedResult, string|array|null $separators = null, array $formatBlocks = []): void |
|
17 | + public function testTime(string $expectedResult, string | array | null $separators = null, array $formatBlocks = []): void |
|
18 | 18 | { |
19 | 19 | $wizard = new Time($separators, ...$formatBlocks); |
20 | 20 | self::assertSame($expectedResult, (string) $wizard); |