@@ -13,7 +13,7 @@ |
||
13 | 13 | /** |
14 | 14 | * @dataProvider providerIntyFloatsRetainedByWriter |
15 | 15 | */ |
16 | - public function testIntyFloatsRetainedByWriter(float|int $value): void |
|
16 | + public function testIntyFloatsRetainedByWriter(float | int $value): void |
|
17 | 17 | { |
18 | 18 | $outputFilename = File::temporaryFilename(); |
19 | 19 | $spreadsheet = new Spreadsheet(); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * |
43 | 43 | * @param float|int $value |
44 | 44 | */ |
45 | - public function testTimeOnly(int|float $expectedResult, int|float|string $value, ?string $format = null): void |
|
45 | + public function testTimeOnly(int | float $expectedResult, int | float | string $value, ?string $format = null): void |
|
46 | 46 | { |
47 | 47 | Cell::setCalculateDateTimeType(Cell::CALCULATE_TIME_FLOAT); |
48 | 48 | $this->spreadsheet = new Spreadsheet(); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | /** |
88 | 88 | * @dataProvider providerDateAndTime |
89 | 89 | */ |
90 | - public function testDateAndTime(int|float $expectedResult, int|float|string $value, ?string $format = null): void |
|
90 | + public function testDateAndTime(int | float $expectedResult, int | float | string $value, ?string $format = null): void |
|
91 | 91 | { |
92 | 92 | Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_FLOAT); |
93 | 93 | $this->spreadsheet = new Spreadsheet(); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | /** |
133 | 133 | * @dataProvider providerAsis |
134 | 134 | */ |
135 | - public function testDefault(int|float $expectedResult, int|float|string $value, ?string $format = null): void |
|
135 | + public function testDefault(int | float $expectedResult, int | float | string $value, ?string $format = null): void |
|
136 | 136 | { |
137 | 137 | //Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_ASIS); |
138 | 138 | $this->spreadsheet = new Spreadsheet(); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | /** |
155 | 155 | * @dataProvider providerAsis |
156 | 156 | */ |
157 | - public function testAsis(int|float $expectedResult, int|float|string $value, ?string $format = null): void |
|
157 | + public function testAsis(int | float $expectedResult, int | float | string $value, ?string $format = null): void |
|
158 | 158 | { |
159 | 159 | Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_ASIS); |
160 | 160 | $this->spreadsheet = new Spreadsheet(); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Image resource. |
31 | 31 | */ |
32 | - private null|GdImage $imageResource = null; |
|
32 | + private null | GdImage $imageResource = null; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * Rendering function. |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | declare(strict_types=1); |
4 | 4 | |
5 | 5 | return [ |
6 | - [ // Office reference example #1 |
|
6 | + [// Office reference example #1 |
|
7 | 7 | 'orange', |
8 | 8 | 4.19, |
9 | 9 | [ |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | ['blue'], |
22 | 22 | ], |
23 | 23 | ], |
24 | - [ // Office reference example #2 |
|
24 | + [// Office reference example #2 |
|
25 | 25 | 'yellow', |
26 | 26 | 5.75, |
27 | 27 | [ |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | ['blue'], |
40 | 40 | ], |
41 | 41 | ], |
42 | - [ // Office reference example #3 |
|
42 | + [// Office reference example #3 |
|
43 | 43 | 'blue', |
44 | 44 | 7.66, |
45 | 45 | [ |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | ['blue'], |
58 | 58 | ], |
59 | 59 | ], |
60 | - [ // Office reference example #4 |
|
60 | + [// Office reference example #4 |
|
61 | 61 | '#N/A', |
62 | 62 | 0, |
63 | 63 | [ |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | ['blue'], |
76 | 76 | ], |
77 | 77 | ], |
78 | - [ // Array form test |
|
78 | + [// Array form test |
|
79 | 79 | 'orange', |
80 | 80 | 4.2, |
81 | 81 | [ |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
22 | 22 | * with the same dimensions |
23 | 23 | */ |
24 | - public static function evaluate($number): array|string|int |
|
24 | + public static function evaluate($number): array | string | int |
|
25 | 25 | { |
26 | 26 | if (is_array($number)) { |
27 | 27 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
47 | 47 | * with the same dimensions |
48 | 48 | */ |
49 | - public static function pi($number): array|string|float |
|
49 | + public static function pi($number): array | string | float |
|
50 | 50 | { |
51 | 51 | if (is_array($number)) { |
52 | 52 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * If an array of values is passed for the $startDate or $endDays,arguments, then the returned result |
45 | 45 | * will also be an array with matching dimensions |
46 | 46 | */ |
47 | - public static function between($startDate = 0, $endDate = 0, $method = false): array|string|int |
|
47 | + public static function between($startDate = 0, $endDate = 0, $method = false): array | string | int |
|
48 | 48 | { |
49 | 49 | if (is_array($startDate) || is_array($endDate) || is_array($method)) { |
50 | 50 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $startDate, $endDate, $method); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * the column label in which you specify a condition for the |
31 | 31 | * column. |
32 | 32 | */ |
33 | - public static function evaluate($database, $field, $criteria): string|int |
|
33 | + public static function evaluate($database, $field, $criteria): string | int |
|
34 | 34 | { |
35 | 35 | $field = self::fieldExtract($database, $field); |
36 | 36 | if ($field === null) { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * the column label in which you specify a condition for the |
32 | 32 | * column. |
33 | 33 | */ |
34 | - public static function evaluate($database, $field, $criteria, bool $returnError = true): string|int |
|
34 | + public static function evaluate($database, $field, $criteria, bool $returnError = true): string | int |
|
35 | 35 | { |
36 | 36 | $field = self::fieldExtract($database, $field); |
37 | 37 | if ($returnError && $field === null) { |