@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * or passing in an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 8]), |
54 | 54 | * or an AddressRange object. |
55 | 55 | */ |
56 | - public function __construct(AddressRange|string|array $range = '', ?Worksheet $worksheet = null) |
|
56 | + public function __construct(AddressRange | string | array $range = '', ?Worksheet $worksheet = null) |
|
57 | 57 | { |
58 | 58 | if ($range !== '') { |
59 | 59 | [, $range] = Worksheet::extractSheetTitle(Validations::validateCellRange($range), true); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * Get AutoFilter Parent Worksheet. |
73 | 73 | */ |
74 | - public function getParent(): null|Worksheet |
|
74 | + public function getParent(): null | Worksheet |
|
75 | 75 | { |
76 | 76 | return $this->workSheet; |
77 | 77 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * or passing in an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 8]), |
106 | 106 | * or an AddressRange object. |
107 | 107 | */ |
108 | - public function setRange(AddressRange|string|array $range = ''): self |
|
108 | + public function setRange(AddressRange | string | array $range = ''): self |
|
109 | 109 | { |
110 | 110 | $this->evaluated = false; |
111 | 111 | // extract coordinate |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | * |
234 | 234 | * @return $this |
235 | 235 | */ |
236 | - public function setColumn(AutoFilter\Column|string $columnObjectOrString): static |
|
236 | + public function setColumn(AutoFilter\Column | string $columnObjectOrString): static |
|
237 | 237 | { |
238 | 238 | $this->evaluated = false; |
239 | 239 | if ((is_string($columnObjectOrString)) && (!empty($columnObjectOrString))) { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * or an AddressRange object. |
70 | 70 | * @param string $name (e.g. Table1) |
71 | 71 | */ |
72 | - public function __construct(AddressRange|string|array $range = '', string $name = '') |
|
72 | + public function __construct(AddressRange | string | array $range = '', string $name = '') |
|
73 | 73 | { |
74 | 74 | $this->style = new TableStyle(); |
75 | 75 | $this->autoFilter = new AutoFilter($range); |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | * or passing in an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 8]), |
273 | 273 | * or an AddressRange object. |
274 | 274 | */ |
275 | - public function setRange(AddressRange|string|array $range = ''): self |
|
275 | + public function setRange(AddressRange | string | array $range = ''): self |
|
276 | 276 | { |
277 | 277 | // extract coordinate |
278 | 278 | if ($range !== '') { |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | * @param string|Table\Column $columnObjectOrString |
438 | 438 | * A simple string containing a Column ID like 'A' is permitted |
439 | 439 | */ |
440 | - public function setColumn(string|Table\Column $columnObjectOrString): self |
|
440 | + public function setColumn(string | Table\Column $columnObjectOrString): self |
|
441 | 441 | { |
442 | 442 | if ((is_string($columnObjectOrString)) && (!empty($columnObjectOrString))) { |
443 | 443 | $column = $columnObjectOrString; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * @param array{0: int, 1: int}|CellAddress|string $coordinate |
19 | 19 | */ |
20 | - public function __construct(int $breakType, CellAddress|string|array $coordinate, int $maxColOrRow = -1) |
|
20 | + public function __construct(int $breakType, CellAddress | string | array $coordinate, int $maxColOrRow = -1) |
|
21 | 21 | { |
22 | 22 | $coordinate = Functions::trimSheetFromCellReference(Validations::validateCellAddress($coordinate)); |
23 | 23 | $this->breakType = $breakType; |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @param null|array{0: int, 1: int}|CellAddress|string $cellAddress Coordinate of the cell as a string, eg: 'C5'; |
16 | 16 | * or as an array of [$columnIndex, $row] (e.g. [3, 5]), or a CellAddress object. |
17 | 17 | */ |
18 | - public static function validateCellAddress(null|CellAddress|string|array $cellAddress): string |
|
18 | + public static function validateCellAddress(null | CellAddress | string | array $cellAddress): string |
|
19 | 19 | { |
20 | 20 | if (is_string($cellAddress)) { |
21 | 21 | [$worksheet, $address] = Worksheet::extractSheetTitle($cellAddress, true); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * or as an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 12]), |
41 | 41 | * or as a CellAddress or AddressRange object. |
42 | 42 | */ |
43 | - public static function validateCellOrCellRange(AddressRange|CellAddress|int|string|array $cellRange): string |
|
43 | + public static function validateCellOrCellRange(AddressRange | CellAddress | int | string | array $cellRange): string |
|
44 | 44 | { |
45 | 45 | if (is_string($cellRange) || is_numeric($cellRange)) { |
46 | 46 | // Convert a single column reference like 'A' to 'A:A', |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * or as an array of [$fromColumnIndex, $fromRow, $toColumnIndex, $toRow] (e.g. [3, 5, 6, 12]), |
64 | 64 | * or as an AddressRange object. |
65 | 65 | */ |
66 | - public static function validateCellRange(AddressRange|string|array $cellRange): string |
|
66 | + public static function validateCellRange(AddressRange | string | array $cellRange): string |
|
67 | 67 | { |
68 | 68 | if (is_string($cellRange)) { |
69 | 69 | [$worksheet, $addressRange] = Worksheet::extractSheetTitle($cellRange, true); |
@@ -282,7 +282,7 @@ |
||
282 | 282 | return $dataBar; |
283 | 283 | } |
284 | 284 | |
285 | - private function readColorScale(SimpleXMLElement|stdClass $cfRule): ConditionalColorScale |
|
285 | + private function readColorScale(SimpleXMLElement | stdClass $cfRule): ConditionalColorScale |
|
286 | 286 | { |
287 | 287 | $colorScale = new ConditionalColorScale(); |
288 | 288 | $types = []; |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | true, // plotVisibleOnly |
182 | 182 | DataSeries::EMPTY_AS_GAP, // displayBlanksAs |
183 | 183 | null, // xAxisLabel |
184 | - $yAxisLabel, // yAxisLabel |
|
184 | + $yAxisLabel, // yAxisLabel |
|
185 | 185 | // added xAxis for correct date display |
186 | 186 | $xAxis, // xAxis |
187 | 187 | $yAxis, // yAxis |
@@ -291,13 +291,13 @@ discard block |
||
291 | 291 | null, // minor_tick_mark |
292 | 292 | $dateMinMax['min'], // minimum calculate this from the earliest data: 'Data!$A$2' |
293 | 293 | $dateMinMax['max'], // maximum calculate this from the last data: 'Data!$A$'.($nrows+1) |
294 | - $tickMarkInterval, // majorUnit determines tickmarks & Gridlines ? |
|
294 | + $tickMarkInterval, // majorUnit determines tickmarks & Gridlines ? |
|
295 | 295 | null, // minorUnit |
296 | 296 | null, // textRotation |
297 | 297 | null, // hidden |
298 | 298 | 'days', // baseTimeUnit |
299 | 299 | 'months', // majorTimeUnit, |
300 | - 'months', // minorTimeUnit |
|
300 | + 'months', // minorTimeUnit |
|
301 | 301 | ); |
302 | 302 | |
303 | 303 | $yAxisLabel = new Title('Value ($k)'); |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | true, // plotVisibleOnly |
318 | 318 | DataSeries::EMPTY_AS_GAP, // displayBlanksAs |
319 | 319 | null, // xAxisLabel |
320 | - $yAxisLabel, // yAxisLabel |
|
320 | + $yAxisLabel, // yAxisLabel |
|
321 | 321 | // added xAxis for correct date display |
322 | 322 | $xAxis, // xAxis |
323 | 323 | $yAxis, // yAxis |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | true, // plotVisibleOnly |
156 | 156 | DataSeries::EMPTY_AS_GAP, // displayBlanksAs |
157 | 157 | null, // xAxisLabel |
158 | - $yAxisLabel, // yAxisLabel |
|
158 | + $yAxisLabel, // yAxisLabel |
|
159 | 159 | // added xAxis for correct date display |
160 | 160 | $xAxis, // xAxis |
161 | 161 | // $yAxis, // yAxis |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | true, // plotVisibleOnly |
252 | 252 | DataSeries::EMPTY_AS_GAP, // displayBlanksAs |
253 | 253 | null, // xAxisLabel |
254 | - $yAxisLabel, // yAxisLabel |
|
254 | + $yAxisLabel, // yAxisLabel |
|
255 | 255 | // added xAxis for correct date display |
256 | 256 | $xAxis, // xAxis |
257 | 257 | // $yAxis, // yAxis |
@@ -129,7 +129,7 @@ |
||
129 | 129 | |
130 | 130 | $yAxis = new ChartAxis(); |
131 | 131 | $yAxis->setLineStyleProperties( |
132 | - 2.5, // width in points |
|
132 | + 2.5, // width in points |
|
133 | 133 | Properties::LINE_STYLE_COMPOUND_SIMPLE, |
134 | 134 | Properties::LINE_STYLE_DASH_DASH_DOT, |
135 | 135 | Properties::LINE_STYLE_CAP_FLAT, |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | $yAxis = new ChartAxis(); |
130 | 130 | $yAxis->setLineStyleProperties( |
131 | - 2.5, // width in points |
|
131 | + 2.5, // width in points |
|
132 | 132 | Properties::LINE_STYLE_COMPOUND_SIMPLE, |
133 | 133 | Properties::LINE_STYLE_DASH_DASH_DOT, |
134 | 134 | Properties::LINE_STYLE_CAP_FLAT, |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | true, // plotVisibleOnly |
167 | 167 | DataSeries::EMPTY_AS_GAP, // displayBlanksAs |
168 | 168 | null, // xAxisLabel |
169 | - $yAxisLabel, // yAxisLabel |
|
169 | + $yAxisLabel, // yAxisLabel |
|
170 | 170 | // added xAxis for correct date display |
171 | 171 | $xAxis, // xAxis |
172 | 172 | $yAxis, // yAxis |