@@ -2180,7 +2180,7 @@ discard block |
||
2180 | 2180 | * @param float $scale_x The horizontal scale |
2181 | 2181 | * @param float $scale_y The vertical scale |
2182 | 2182 | */ |
2183 | - public function insertBitmap($row, $col, GdImage|string $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1): void |
|
2183 | + public function insertBitmap($row, $col, GdImage | string $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1): void |
|
2184 | 2184 | { |
2185 | 2185 | $bitmap_array = $bitmap instanceof GdImage |
2186 | 2186 | ? $this->processBitmapGd($bitmap) |
@@ -2322,7 +2322,7 @@ discard block |
||
2322 | 2322 | * @param int $rwB Row containing bottom right corner of object |
2323 | 2323 | * @param int $dyB Distance from bottom of cell |
2324 | 2324 | */ |
2325 | - private function writeObjPicture(int $colL, int $dxL, int $rwT, int|float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void |
|
2325 | + private function writeObjPicture(int $colL, int $dxL, int $rwT, int | float $dyT, int $colR, int $dxR, int $rwB, int $dyB): void |
|
2326 | 2326 | { |
2327 | 2327 | $record = 0x005d; // Record identifier |
2328 | 2328 | $length = 0x003c; // Bytes to follow |
@@ -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 | [ |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * |
65 | 65 | * @return string the url encoded output |
66 | 66 | */ |
67 | - public static function urlEncode($text): string|array |
|
67 | + public static function urlEncode($text): string | array |
|
68 | 68 | { |
69 | 69 | if (!is_string($text)) { |
70 | 70 | return ExcelError::VALUE(); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * If an array of values is passed as the argument, then the returned result will also be an array |
40 | 40 | * with the same dimensions |
41 | 41 | */ |
42 | - public static function spaces($stringValue = ''): array|string |
|
42 | + public static function spaces($stringValue = ''): array | string |
|
43 | 43 | { |
44 | 44 | if (is_array($stringValue)) { |
45 | 45 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $stringValue); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * If an array of values 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 lower($mixedCaseValue): array|string |
|
24 | + public static function lower($mixedCaseValue): array | string |
|
25 | 25 | { |
26 | 26 | if (is_array($mixedCaseValue)) { |
27 | 27 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * If an array of values is passed as the argument, then the returned result will also be an array |
45 | 45 | * with the same dimensions |
46 | 46 | */ |
47 | - public static function upper($mixedCaseValue): array|string |
|
47 | + public static function upper($mixedCaseValue): array | string |
|
48 | 48 | { |
49 | 49 | if (is_array($mixedCaseValue)) { |
50 | 50 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * If an array of values is passed as the argument, then the returned result will also be an array |
68 | 68 | * with the same dimensions |
69 | 69 | */ |
70 | - public static function proper($mixedCaseValue): array|string |
|
70 | + public static function proper($mixedCaseValue): array | string |
|
71 | 71 | { |
72 | 72 | if (is_array($mixedCaseValue)) { |
73 | 73 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
27 | 27 | * with the same dimensions |
28 | 28 | */ |
29 | - public static function withBase($number, $base = 10): array|string|float |
|
29 | + public static function withBase($number, $base = 10): array | string | float |
|
30 | 30 | { |
31 | 31 | if (is_array($number) || is_array($base)) { |
32 | 32 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $base); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
57 | 57 | * with the same dimensions |
58 | 58 | */ |
59 | - public static function base10($number): array|string|float |
|
59 | + public static function base10($number): array | string | float |
|
60 | 60 | { |
61 | 61 | if (is_array($number)) { |
62 | 62 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
85 | 85 | * with the same dimensions |
86 | 86 | */ |
87 | - public static function natural($number): array|string|float |
|
87 | + public static function natural($number): array | string | float |
|
88 | 88 | { |
89 | 89 | if (is_array($number)) { |
90 | 90 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -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); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @return array|string The resulting array, or a string containing an error |
59 | 59 | */ |
60 | - public static function sequence($rows = 1, $columns = 1, $start = 1, $step = 1): string|array |
|
60 | + public static function sequence($rows = 1, $columns = 1, $start = 1, $step = 1): string | array |
|
61 | 61 | { |
62 | 62 | try { |
63 | 63 | $rows = (int) Helpers::validateNumericNullSubstitution($rows, 1); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * |
121 | 121 | * @return array|string The result, or a string containing an error |
122 | 122 | */ |
123 | - public static function inverse($matrixValues): array|string |
|
123 | + public static function inverse($matrixValues): array | string |
|
124 | 124 | { |
125 | 125 | try { |
126 | 126 | $matrix = self::getMatrix($matrixValues); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * |
144 | 144 | * @return array|string The result, or a string containing an error |
145 | 145 | */ |
146 | - public static function multiply($matrixData1, $matrixData2): array|string |
|
146 | + public static function multiply($matrixData1, $matrixData2): array | string |
|
147 | 147 | { |
148 | 148 | try { |
149 | 149 | $matrixA = self::getMatrix($matrixData1); |