@@ -28,7 +28,7 @@ |
||
28 | 28 | $className = ucfirst($type); |
29 | 29 | $namespace = "\\Halfpastfour\\PHPChartJS\\Chart"; |
30 | 30 | $path = "{$namespace}\\{$className}"; |
31 | - if (! class_exists($path)) { |
|
31 | + if (!class_exists($path)) { |
|
32 | 32 | throw new \InvalidArgumentException("Invalid chart type. {$path} does not exist."); |
33 | 33 | } |
34 | 34 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | public function getAnimation() |
33 | 33 | { |
34 | 34 | if (is_null($this->animation)) { |
35 | - $this->animation = new PieAnimation(); |
|
35 | + $this->animation = new PieAnimation(); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | return $this->animation; |
@@ -210,7 +210,7 @@ |
||
210 | 210 | */ |
211 | 211 | public function setUsePointStyle($usePointStyle) |
212 | 212 | { |
213 | - $this->usePointStyle = ! ! $usePointStyle; |
|
213 | + $this->usePointStyle = !!$usePointStyle; |
|
214 | 214 | |
215 | 215 | return $this; |
216 | 216 | } |
@@ -16,10 +16,10 @@ |
||
16 | 16 | */ |
17 | 17 | public function getArrayCopy() |
18 | 18 | { |
19 | - $rows = []; |
|
19 | + $rows = [ ]; |
|
20 | 20 | foreach ($this->data as $row) { |
21 | 21 | /** @var YAxis $row */ |
22 | - $rows[] = $row->getArrayCopy(); |
|
22 | + $rows[ ] = $row->getArrayCopy(); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | return $rows; |
@@ -16,10 +16,10 @@ |
||
16 | 16 | */ |
17 | 17 | public function getArrayCopy() |
18 | 18 | { |
19 | - $rows = []; |
|
19 | + $rows = [ ]; |
|
20 | 20 | foreach ($this->data as $row) { |
21 | 21 | /** @var XAxis $row */ |
22 | - $rows[] = $row->getArrayCopy(); |
|
22 | + $rows[ ] = $row->getArrayCopy(); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | return $rows; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | public function setDisplay($display) |
61 | 61 | { |
62 | - $this->display = ! ! $display; |
|
62 | + $this->display = !!$display; |
|
63 | 63 | |
64 | 64 | return $this; |
65 | 65 | } |
@@ -70,7 +70,7 @@ |
||
70 | 70 | */ |
71 | 71 | public function setIntersect($intersect) |
72 | 72 | { |
73 | - $this->intersect = ! ! $intersect; |
|
73 | + $this->intersect = !!$intersect; |
|
74 | 74 | |
75 | 75 | return $this; |
76 | 76 | } |
@@ -207,7 +207,7 @@ |
||
207 | 207 | */ |
208 | 208 | public function setStacked($stacked) |
209 | 209 | { |
210 | - $this->stacked = ! ! $stacked; |
|
210 | + $this->stacked = !!$stacked; |
|
211 | 211 | |
212 | 212 | return $this; |
213 | 213 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | if (is_array($backgroundColor)) { |
187 | 187 | $backgroundColor = array_map('strval', $backgroundColor); |
188 | 188 | } |
189 | - if (! is_array($backgroundColor)) { |
|
189 | + if (!is_array($backgroundColor)) { |
|
190 | 190 | $backgroundColor = strval($backgroundColor); |
191 | 191 | } |
192 | 192 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | if (is_array($borderColor)) { |
214 | 214 | $borderColor = array_map('strval', $borderColor); |
215 | 215 | } |
216 | - if (! is_array($borderColor)) { |
|
216 | + if (!is_array($borderColor)) { |
|
217 | 217 | $borderColor = strval($borderColor); |
218 | 218 | } |
219 | 219 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | if (is_array($borderWidth)) { |
241 | 241 | $borderWidth = array_map('intval', $borderWidth); |
242 | 242 | } |
243 | - if (! is_array($borderWidth)) { |
|
243 | + if (!is_array($borderWidth)) { |
|
244 | 244 | $borderWidth = intval($borderWidth); |
245 | 245 | } |
246 | 246 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | if (is_array($hoverBackgroundColor)) { |
288 | 288 | $hoverBackgroundColor = array_map('strval', $hoverBackgroundColor); |
289 | 289 | } |
290 | - if (! is_array($hoverBackgroundColor)) { |
|
290 | + if (!is_array($hoverBackgroundColor)) { |
|
291 | 291 | $hoverBackgroundColor = strval($hoverBackgroundColor); |
292 | 292 | } |
293 | 293 | |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | if (is_array($hoverBorderColor)) { |
315 | 315 | $hoverBorderColor = array_map('strval', $hoverBorderColor); |
316 | 316 | } |
317 | - if (! is_array($hoverBorderColor)) { |
|
317 | + if (!is_array($hoverBorderColor)) { |
|
318 | 318 | $hoverBorderColor = strval($hoverBorderColor); |
319 | 319 | } |
320 | 320 | |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | if (is_array($hoverBorderWidth)) { |
342 | 342 | $hoverBorderWidth = array_map('intval', $hoverBorderWidth); |
343 | 343 | } |
344 | - if (! is_array($hoverBorderWidth)) { |
|
344 | + if (!is_array($hoverBorderWidth)) { |
|
345 | 345 | $hoverBorderWidth = intval($hoverBorderWidth); |
346 | 346 | } |
347 | 347 |