@@ -11,7 +11,7 @@ |
||
11 | 11 | /** |
12 | 12 | * @dataProvider providerDelimiterDetection |
13 | 13 | */ |
14 | - public function testDelimiterDetection(string $filename, string $expectedDelimiter, string $cell, string|float|int|null $expectedValue): void |
|
14 | + public function testDelimiterDetection(string $filename, string $expectedDelimiter, string $cell, string | float | int | null $expectedValue): void |
|
15 | 15 | { |
16 | 16 | $reader = new Csv(); |
17 | 17 | $delim1 = $reader->getDelimiter(); |
@@ -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(); |
@@ -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); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
46 | 46 | * with the same dimensions |
47 | 47 | */ |
48 | - public static function toBinary($value, $places = null): array|string |
|
48 | + public static function toBinary($value, $places = null): array | string |
|
49 | 49 | { |
50 | 50 | if (is_array($value) || is_array($places)) { |
51 | 51 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
103 | 103 | * with the same dimensions |
104 | 104 | */ |
105 | - public static function toHex($value, $places = null): array|string |
|
105 | + public static function toHex($value, $places = null): array | string |
|
106 | 106 | { |
107 | 107 | if (is_array($value) || is_array($places)) { |
108 | 108 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
179 | 179 | * with the same dimensions |
180 | 180 | */ |
181 | - public static function toOctal($value, $places = null): array|string |
|
181 | + public static function toOctal($value, $places = null): array | string |
|
182 | 182 | { |
183 | 183 | if (is_array($value) || is_array($places)) { |
184 | 184 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $this->aNamespace = $aNamespace; |
35 | 35 | } |
36 | 36 | |
37 | - private static function getAttributeString(SimpleXMLElement $component, string $name): string|null |
|
37 | + private static function getAttributeString(SimpleXMLElement $component, string $name): string | null |
|
38 | 38 | { |
39 | 39 | $attributes = $component->attributes(); |
40 | 40 | if (@isset($attributes[$name])) { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return null; |
45 | 45 | } |
46 | 46 | |
47 | - private static function getAttributeInteger(SimpleXMLElement $component, string $name): int|null |
|
47 | + private static function getAttributeInteger(SimpleXMLElement $component, string $name): int | null |
|
48 | 48 | { |
49 | 49 | $attributes = $component->attributes(); |
50 | 50 | if (@isset($attributes[$name])) { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | return null; |
55 | 55 | } |
56 | 56 | |
57 | - private static function getAttributeBoolean(SimpleXMLElement $component, string $name): bool|null |
|
57 | + private static function getAttributeBoolean(SimpleXMLElement $component, string $name): bool | null |
|
58 | 58 | { |
59 | 59 | $attributes = $component->attributes(); |
60 | 60 | if (@isset($attributes[$name])) { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return null; |
67 | 67 | } |
68 | 68 | |
69 | - private static function getAttributeFloat(SimpleXMLElement $component, string $name): float|null |
|
69 | + private static function getAttributeFloat(SimpleXMLElement $component, string $name): float | null |
|
70 | 70 | { |
71 | 71 | $attributes = $component->attributes(); |
72 | 72 | if (@isset($attributes[$name])) { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
78 | 78 | * with the same dimensions |
79 | 79 | */ |
80 | - public static function toHex($value, $places = null): array|string |
|
80 | + public static function toHex($value, $places = null): array | string |
|
81 | 81 | { |
82 | 82 | if (is_array($value) || is_array($places)) { |
83 | 83 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
131 | 131 | * with the same dimensions |
132 | 132 | */ |
133 | - public static function toOctal($value, $places = null): array|string |
|
133 | + public static function toOctal($value, $places = null): array | string |
|
134 | 134 | { |
135 | 135 | if (is_array($value) || is_array($places)) { |
136 | 136 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |