@@ -12,7 +12,7 @@ |
||
12 | 12 | class CsvTest extends TestCase |
13 | 13 | { |
14 | 14 | #[DataProvider('providerDelimiterDetection')] |
15 | - public function testDelimiterDetection(string $filename, string $expectedDelimiter, string $cell, string|float|int|null $expectedValue): void |
|
15 | + public function testDelimiterDetection(string $filename, string $expectedDelimiter, string $cell, string | float | int | null $expectedValue): void |
|
16 | 16 | { |
17 | 17 | $reader = new Csv(); |
18 | 18 | $delim1 = $reader->getDelimiter(); |
@@ -699,7 +699,7 @@ |
||
699 | 699 | string $enclosure = '"', |
700 | 700 | ?string $escape = null, |
701 | 701 | int $version = PHP_VERSION_ID |
702 | - ): array|false { |
|
702 | + ): array | false { |
|
703 | 703 | $escape = $escape ?? self::getDefaultEscapeCharacter(); |
704 | 704 | if ($version >= 80400 && $escape !== '') { |
705 | 705 | return @fgetcsv($stream, $length, $separator, $enclosure, $escape); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | #[DataProvider('providerOCT2DEC')] |
32 | - public function testDirectCallToOCT2DEC(mixed $expectedResult, bool|string $value): void |
|
32 | + public function testDirectCallToOCT2DEC(mixed $expectedResult, bool | string $value): void |
|
33 | 33 | { |
34 | 34 | $result = ConvertOctal::toDecimal($value); |
35 | 35 | self::assertSame($expectedResult, $result); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | #[DataProvider('providerOCT2DECOds')] |
101 | - public function testOCT2DECOds(mixed $expectedResult, bool|string $value): void |
|
101 | + public function testOCT2DECOds(mixed $expectedResult, bool | string $value): void |
|
102 | 102 | { |
103 | 103 | Functions::setCompatibilityMode( |
104 | 104 | Functions::COMPATIBILITY_OPENOFFICE |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | #[DataProvider('providerBIN2DEC')] |
32 | - public function testDirectCallToBIN2DEC(float|int|string $expectedResult, bool|int|string $arg1): void |
|
32 | + public function testDirectCallToBIN2DEC(float | int | string $expectedResult, bool | int | string $arg1): void |
|
33 | 33 | { |
34 | 34 | $result = ConvertBinary::toDecimal($arg1); |
35 | 35 | self::assertSame($expectedResult, $result); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | #[DataProvider('providerBIN2DECOds')] |
101 | - public function testBIN2DECOds(float|int|string $expectedResult, bool $arg1): void |
|
101 | + public function testBIN2DECOds(float | int | string $expectedResult, bool $arg1): void |
|
102 | 102 | { |
103 | 103 | Functions::setCompatibilityMode( |
104 | 104 | Functions::COMPATIBILITY_OPENOFFICE |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | #[DataProvider('providerHEX2DEC')] |
32 | - public function testDirectCallToHEX2DEC(mixed $expectedResult, bool|float|int|string $value): void |
|
32 | + public function testDirectCallToHEX2DEC(mixed $expectedResult, bool | float | int | string $value): void |
|
33 | 33 | { |
34 | 34 | $result = ConvertHex::toDecimal($value); |
35 | 35 | self::assertSame($expectedResult, $result); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | #[DataProvider('providerHEX2DECOds')] |
101 | - public function testHEX2DECOds(mixed $expectedResult, bool|float|int|string $value): void |
|
101 | + public function testHEX2DECOds(mixed $expectedResult, bool | float | int | string $value): void |
|
102 | 102 | { |
103 | 103 | Functions::setCompatibilityMode( |
104 | 104 | Functions::COMPATIBILITY_OPENOFFICE |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | class CustomFunction |
11 | 11 | { |
12 | - public static function fourthPower(mixed $number): float|int|string |
|
12 | + public static function fourthPower(mixed $number): float | int | string |
|
13 | 13 | { |
14 | 14 | try { |
15 | 15 | $number = Helpers::validateNumericNullBool($number); |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | class MySpreadsheet extends Spreadsheet |
10 | 10 | { |
11 | - public function calcSquare(string $cellAddress): float|int|string |
|
11 | + public function calcSquare(string $cellAddress): float | int | string |
|
12 | 12 | { |
13 | 13 | $value = $this->getActiveSheet() |
14 | 14 | ->getCell($cellAddress) |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @return int|string Result, or a string containing an error |
26 | 26 | */ |
27 | - public static function daysPerYear(mixed $year, $basis = 0): string|int |
|
27 | + public static function daysPerYear(mixed $year, $basis = 0): string | int |
|
28 | 28 | { |
29 | 29 | if (!is_int($year) && !is_string($year)) { |
30 | 30 | return ExcelError::VALUE(); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | #[DataProvider('providerDATE')] |
41 | - public function testDirectCallToDATE(float|string $expectedResult, int|string $year, null|bool|float|int|string $month, float|int|string $day): void |
|
41 | + public function testDirectCallToDATE(float | string $expectedResult, int | string $year, null | bool | float | int | string $month, float | int | string $day): void |
|
42 | 42 | { |
43 | 43 | $result = Date::fromYMD($year, $month, $day); |
44 | 44 | self::assertSame($expectedResult, $result); |