@@ -84,7 +84,7 @@ |
||
84 | 84 | /** |
85 | 85 | * @dataProvider providerCreateFromColumnRowException |
86 | 86 | */ |
87 | - public function testCreateFromColumnRowException(int|string $columnId, int|string $rowId): void |
|
87 | + public function testCreateFromColumnRowException(int | string $columnId, int | string $rowId): void |
|
88 | 88 | { |
89 | 89 | $this->expectException(Exception::class); |
90 | 90 | $this->expectExceptionMessage('Row and Column Ids must be positive integer values'); |
@@ -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) { |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
24 | 24 | * with the same dimensions |
25 | 25 | */ |
26 | - public static function mod(mixed $dividend, mixed $divisor): array|string|float |
|
26 | + public static function mod(mixed $dividend, mixed $divisor): array | string | float |
|
27 | 27 | { |
28 | 28 | if (is_array($dividend) || is_array($divisor)) { |
29 | 29 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $dividend, $divisor); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
60 | 60 | * with the same dimensions |
61 | 61 | */ |
62 | - public static function power(null|array|bool|float|int|string $x, null|array|bool|float|int|string $y): array|float|int|string |
|
62 | + public static function power(null | array | bool | float | int | string $x, null | array | bool | float | int | string $y): array | float | int | string |
|
63 | 63 | { |
64 | 64 | if (is_array($x) || is_array($y)) { |
65 | 65 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $x, $y); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * |
97 | 97 | * @param mixed ...$args Data values |
98 | 98 | */ |
99 | - public static function product(mixed ...$args): string|float |
|
99 | + public static function product(mixed ...$args): string | float |
|
100 | 100 | { |
101 | 101 | $args = array_filter( |
102 | 102 | Functions::flattenArray($args), |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * @return array|int|string If an array of numbers is passed as an argument, then the returned result will also be an array |
137 | 137 | * with the same dimensions |
138 | 138 | */ |
139 | - public static function quotient(mixed $numerator, mixed $denominator): array|string|int |
|
139 | + public static function quotient(mixed $numerator, mixed $denominator): array | string | int |
|
140 | 140 | { |
141 | 141 | if (is_array($numerator) || is_array($denominator)) { |
142 | 142 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $numerator, $denominator); |
@@ -167,10 +167,10 @@ discard block |
||
167 | 167 | // should be consistent with Writer\Xls\Style\CellBorder |
168 | 168 | const BORDER_STYLE_MAP = [ |
169 | 169 | Border::BORDER_NONE, // => 0x00, |
170 | - Border::BORDER_THIN, // => 0x01, |
|
170 | + Border::BORDER_THIN, // => 0x01, |
|
171 | 171 | Border::BORDER_MEDIUM, // => 0x02, |
172 | 172 | Border::BORDER_DASHED, // => 0x03, |
173 | - Border::BORDER_DOTTED, // => 0x04, |
|
173 | + Border::BORDER_DOTTED, // => 0x04, |
|
174 | 174 | Border::BORDER_THICK, // => 0x05, |
175 | 175 | Border::BORDER_DOUBLE, // => 0x06, |
176 | 176 | Border::BORDER_HAIR, // => 0x07, |
@@ -6936,7 +6936,7 @@ discard block |
||
6936 | 6936 | * It can also happen that the REF structure uses the -1 (FFFF) code to indicate deleted sheets, |
6937 | 6937 | * in which case an Exception is thrown. |
6938 | 6938 | */ |
6939 | - private function readSheetRangeByRefIndex(int $index): string|false |
|
6939 | + private function readSheetRangeByRefIndex(int $index): string | false |
|
6940 | 6940 | { |
6941 | 6941 | if (isset($this->ref[$index])) { |
6942 | 6942 | $type = $this->externalBooks[$this->ref[$index]['externalBookIndex']]['type']; |
@@ -7210,7 +7210,7 @@ discard block |
||
7210 | 7210 | * |
7211 | 7211 | * @param string $data Binary string that is at least 8 bytes long |
7212 | 7212 | */ |
7213 | - private static function extractNumber(string $data): int|float |
|
7213 | + private static function extractNumber(string $data): int | float |
|
7214 | 7214 | { |
7215 | 7215 | $rknumhigh = self::getInt4d($data, 4); |
7216 | 7216 | $rknumlow = self::getInt4d($data, 0); |
@@ -7235,7 +7235,7 @@ discard block |
||
7235 | 7235 | return $value; |
7236 | 7236 | } |
7237 | 7237 | |
7238 | - private static function getIEEE754(int $rknum): float|int |
|
7238 | + private static function getIEEE754(int $rknum): float | int |
|
7239 | 7239 | { |
7240 | 7240 | if (($rknum & 0x02) != 0) { |
7241 | 7241 | $value = $rknum >> 2; |
@@ -7598,7 +7598,7 @@ discard block |
||
7598 | 7598 | { |
7599 | 7599 | }*/ |
7600 | 7600 | |
7601 | - private function readCFFormula(string $recordData, int $offset, int $size): float|int|string|null |
|
7601 | + private function readCFFormula(string $recordData, int $offset, int $size): float | int | string | null |
|
7602 | 7602 | { |
7603 | 7603 | try { |
7604 | 7604 | $formula = substr($recordData, $offset, $size); |
@@ -7615,7 +7615,7 @@ discard block |
||
7615 | 7615 | } |
7616 | 7616 | } |
7617 | 7617 | |
7618 | - private function setCFRules(array $cellRanges, string $type, string $operator, null|float|int|string $formula1, null|float|int|string $formula2, Style $style, bool $noFormatSet): void |
|
7618 | + private function setCFRules(array $cellRanges, string $type, string $operator, null | float | int | string $formula1, null | float | int | string $formula2, Style $style, bool $noFormatSet): void |
|
7619 | 7619 | { |
7620 | 7620 | foreach ($cellRanges as $cellRange) { |
7621 | 7621 | $conditional = new Conditional(); |
@@ -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); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | /** |
34 | 34 | * @dataProvider providerGetFunctions |
35 | 35 | */ |
36 | - public function testGetFunctions(array|string $functionCall): void |
|
36 | + public function testGetFunctions(array | string $functionCall): void |
|
37 | 37 | { |
38 | 38 | self::assertIsCallable($functionCall); |
39 | 39 | } |
@@ -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 |