@@ -110,7 +110,7 @@ |
||
110 | 110 | /** |
111 | 111 | * Get index for hash code. |
112 | 112 | */ |
113 | - public function getIndexForHashCode(string $hashCode): false|int |
|
113 | + public function getIndexForHashCode(string $hashCode): false | int |
|
114 | 114 | { |
115 | 115 | // Scrutinizer thinks the following could return string. It is wrong. |
116 | 116 | return array_search($hashCode, $this->keyMap, true); |
@@ -107,7 +107,7 @@ |
||
107 | 107 | /** |
108 | 108 | * Get legend position as an Excel internal numeric value. |
109 | 109 | */ |
110 | - public function getPositionXL(): false|int |
|
110 | + public function getPositionXL(): false | int |
|
111 | 111 | { |
112 | 112 | // Scrutinizer thinks the following could return string. It is wrong. |
113 | 113 | return array_search($this->position, self::POSITION_XLREF); |
@@ -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 | [ |