@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * @return array<mixed>|float|string If an array of numbers is passed as an argument, then the returned result will also be an array |
35 | 35 | * with the same dimensions |
36 | 36 | */ |
37 | - public static function ERF(mixed $lower, mixed $upper = null): array|float|string |
|
37 | + public static function ERF(mixed $lower, mixed $upper = null): array | float | string |
|
38 | 38 | { |
39 | 39 | if (is_array($lower) || is_array($upper)) { |
40 | 40 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $lower, $upper); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Method to calculate the erf value. |
85 | 85 | */ |
86 | - public static function erfValue(float|int|string $value): float |
|
86 | + public static function erfValue(float | int | string $value): float |
|
87 | 87 | { |
88 | 88 | $value = (float) $value; |
89 | 89 | if (abs($value) > 2.2) { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array |
29 | 29 | * with the same dimensions |
30 | 30 | */ |
31 | - public static function IMDIV(array|string $complexDividend, array|string $complexDivisor): array|string |
|
31 | + public static function IMDIV(array | string $complexDividend, array | string $complexDivisor): array | string |
|
32 | 32 | { |
33 | 33 | if (is_array($complexDividend) || is_array($complexDivisor)) { |
34 | 34 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexDividend, $complexDivisor); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array |
58 | 58 | * with the same dimensions |
59 | 59 | */ |
60 | - public static function IMSUB(array|string $complexNumber1, array|string $complexNumber2): array|string |
|
60 | + public static function IMSUB(array | string $complexNumber1, array | string $complexNumber2): array | string |
|
61 | 61 | { |
62 | 62 | if (is_array($complexNumber1) || is_array($complexNumber2)) { |
63 | 63 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexNumber1, $complexNumber2); |
@@ -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(); |