@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | /** @param null|mixed[][]|string $cellReference */ |
13 | 13 | #[DataProvider('providerROW')] |
14 | - public function testROW(mixed $expectedResult, null|array|string $cellReference = null): void |
|
14 | + public function testROW(mixed $expectedResult, null | array | string $cellReference = null): void |
|
15 | 15 | { |
16 | 16 | $result = LookupRef\RowColumnInformation::ROW($cellReference); |
17 | 17 | self::assertSame($expectedResult, $result); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | /** @param null|mixed[]|string $arg */ |
15 | 15 | #[DataProvider('providerCOLUMNS')] |
16 | - public function testCOLUMNS(mixed $expectedResult, null|array|string $arg): void |
|
16 | + public function testCOLUMNS(mixed $expectedResult, null | array | string $arg): void |
|
17 | 17 | { |
18 | 18 | $result = LookupRef\RowColumnInformation::COLUMNS($arg); |
19 | 19 | self::assertEquals($expectedResult, $result); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | /** @param null|mixed[]|string $arg */ |
15 | 15 | #[DataProvider('providerROWS')] |
16 | - public function testROWS(mixed $expectedResult, null|array|string $arg): void |
|
16 | + public function testROWS(mixed $expectedResult, null | array | string $arg): void |
|
17 | 17 | { |
18 | 18 | $result = LookupRef\RowColumnInformation::ROWS($arg); |
19 | 19 | self::assertEquals($expectedResult, $result); |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | { |
12 | 12 | /** @param mixed[] $array */ |
13 | 13 | #[DataProvider('providerMATCH')] |
14 | - public function testMATCH(mixed $expectedResult, mixed $input, array $array, null|float|int|string $type = null): void |
|
14 | + public function testMATCH(mixed $expectedResult, mixed $input, array $array, null | float | int | string $type = null): void |
|
15 | 15 | { |
16 | 16 | if (is_array($expectedResult)) { |
17 | 17 | $expectedResult = $expectedResult[0]; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | /** @param mixed[] $array */ |
43 | 43 | #[DataProvider('providerMATCH')] |
44 | - public function testMATCHLibre(mixed $expectedResult, mixed $input, array $array, null|float|int|string $type = null): void |
|
44 | + public function testMATCHLibre(mixed $expectedResult, mixed $input, array $array, null | float | int | string $type = null): void |
|
45 | 45 | { |
46 | 46 | $this->setOpenOffice(); |
47 | 47 | if (is_array($expectedResult)) { |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | /** @param null|mixed[]|string $cellReference */ |
13 | 13 | #[DataProvider('providerCOLUMN')] |
14 | - public function testCOLUMN(mixed $expectedResult, null|array|string $cellReference = null): void |
|
14 | + public function testCOLUMN(mixed $expectedResult, null | array | string $cellReference = null): void |
|
15 | 15 | { |
16 | 16 | $result = LookupRef\RowColumnInformation::COLUMN($cellReference); |
17 | 17 | self::assertSame($expectedResult, $result); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | /** @param mixed[] $matrix */ |
12 | 12 | #[DataProvider('providerINDEXonSpreadsheet')] |
13 | - public function testIndexOnSpreadsheet(mixed $expectedResult, array $matrix, null|int|string $rowNum = null, null|int|string $colNum = null): void |
|
13 | + public function testIndexOnSpreadsheet(mixed $expectedResult, array $matrix, null | int | string $rowNum = null, null | int | string $colNum = null): void |
|
14 | 14 | { |
15 | 15 | $this->mightHaveException($expectedResult); |
16 | 16 | $this->setArrayAsValue(); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | #[DataProvider('providerRangeEvaluation')] |
38 | - public function testRangeEvaluation(string $formula, int|string $expectedResult): void |
|
38 | + public function testRangeEvaluation(string $formula, int | string $expectedResult): void |
|
39 | 39 | { |
40 | 40 | $this->spreadSheet = $this->getSpreadsheet(); |
41 | 41 | $workSheet = $this->spreadSheet->getActiveSheet(); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @return mixed[]|string |
36 | 36 | */ |
37 | - public static function chooseCols(mixed $input, mixed ...$args): array|string |
|
37 | + public static function chooseCols(mixed $input, mixed ...$args): array | string |
|
38 | 38 | { |
39 | 39 | if (!is_array($input)) { |
40 | 40 | $input = [[$input]]; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @return mixed[]|string |
53 | 53 | */ |
54 | - public static function chooseRows(mixed $input, mixed ...$args): array|string |
|
54 | + public static function chooseRows(mixed $input, mixed ...$args): array | string |
|
55 | 55 | { |
56 | 56 | if (!is_array($input)) { |
57 | 57 | $input = [[$input]]; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * |
86 | 86 | * @return mixed[]|string |
87 | 87 | */ |
88 | - private static function dropRows(array $array, mixed $offset): array|string |
|
88 | + private static function dropRows(array $array, mixed $offset): array | string |
|
89 | 89 | { |
90 | 90 | if ($offset === null) { |
91 | 91 | return $array; |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * |
118 | 118 | * @return mixed[]|string |
119 | 119 | */ |
120 | - public static function drop(mixed $input, mixed $rows = null, mixed $columns = null): array|string |
|
120 | + public static function drop(mixed $input, mixed $rows = null, mixed $columns = null): array | string |
|
121 | 121 | { |
122 | 122 | if (!is_array($input)) { |
123 | 123 | $input = [[$input]]; |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | * |
145 | 145 | * @return mixed[]|string |
146 | 146 | */ |
147 | - private static function takeRows(array $array, mixed $offset): array|string |
|
147 | + private static function takeRows(array $array, mixed $offset): array | string |
|
148 | 148 | { |
149 | 149 | if ($offset === null) { |
150 | 150 | return $array; |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | * |
176 | 176 | * @return mixed[]|string |
177 | 177 | */ |
178 | - public static function take(mixed $input, mixed $rows, mixed $columns = null): array|string |
|
178 | + public static function take(mixed $input, mixed $rows, mixed $columns = null): array | string |
|
179 | 179 | { |
180 | 180 | if (!is_array($input)) { |
181 | 181 | $input = [[$input]]; |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * |
208 | 208 | * @return mixed[]|string |
209 | 209 | */ |
210 | - public static function expand(mixed $input, mixed $rows, mixed $columns = null, mixed $pad = '#N/A'): array|string |
|
210 | + public static function expand(mixed $input, mixed $rows, mixed $columns = null, mixed $pad = '#N/A'): array | string |
|
211 | 211 | { |
212 | 212 | if (!is_array($input)) { |
213 | 213 | $input = [[$input]]; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * |
33 | 33 | * @return array<mixed>|float|int|string The relative position of the found item |
34 | 34 | */ |
35 | - public static function MATCH(mixed $lookupValue, mixed $lookupArray, mixed $matchType = self::MATCHTYPE_LARGEST_VALUE): array|string|int|float |
|
35 | + public static function MATCH(mixed $lookupValue, mixed $lookupArray, mixed $matchType = self::MATCHTYPE_LARGEST_VALUE): array | string | int | float |
|
36 | 36 | { |
37 | 37 | if (is_array($lookupValue)) { |
38 | 38 | return self::evaluateArrayArgumentsIgnore([self::class, __FUNCTION__], 1, $lookupValue, $lookupArray, $matchType); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | /** @param mixed[] $lookupArray */ |
81 | - private static function matchFirstValue(array $lookupArray, mixed $lookupValue): int|string|null |
|
81 | + private static function matchFirstValue(array $lookupArray, mixed $lookupValue): int | string | null |
|
82 | 82 | { |
83 | 83 | if (is_string($lookupValue)) { |
84 | 84 | $valueIsString = true; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | } |
154 | 154 | |
155 | 155 | /** @param mixed[] $lookupArray */ |
156 | - private static function matchSmallestValue(array $lookupArray, mixed $lookupValue): int|string|null |
|
156 | + private static function matchSmallestValue(array $lookupArray, mixed $lookupValue): int | string | null |
|
157 | 157 | { |
158 | 158 | $valueKey = null; |
159 | 159 | if (is_string($lookupValue)) { |