@@ -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; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | if (is_array($color)) { |
| 113 | 113 | array_walk_recursive( |
| 114 | 114 | $color, |
| 115 | - function (&$value) { |
|
| 115 | + function(&$value) { |
|
| 116 | 116 | $value = strval($value); |
| 117 | 117 | } |
| 118 | 118 | ); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | if (is_array($borderDash)) { |
| 143 | 143 | array_walk_recursive( |
| 144 | 144 | $borderDash, |
| 145 | - function (&$value) { |
|
| 145 | + function(&$value) { |
|
| 146 | 146 | $value = floatval($value); |
| 147 | 147 | } |
| 148 | 148 | ); |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | if (is_array($lineWidth)) { |
| 191 | 191 | array_walk_recursive( |
| 192 | 192 | $lineWidth, |
| 193 | - function (&$value) { |
|
| 193 | + function(&$value) { |
|
| 194 | 194 | $value = intval($value); |
| 195 | 195 | } |
| 196 | 196 | ); |
@@ -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 | } |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | */ |
| 192 | 192 | public function setEnabled($enabled) |
| 193 | 193 | { |
| 194 | - $this->enabled = ! ! $enabled; |
|
| 194 | + $this->enabled = !!$enabled; |
|
| 195 | 195 | |
| 196 | 196 | return $this; |
| 197 | 197 | } |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | */ |
| 252 | 252 | public function setIntersect($intersect) |
| 253 | 253 | { |
| 254 | - $this->intersect = ! ! $intersect; |
|
| 254 | + $this->intersect = !!$intersect; |
|
| 255 | 255 | |
| 256 | 256 | return $this; |
| 257 | 257 | } |
@@ -791,7 +791,7 @@ discard block |
||
| 791 | 791 | */ |
| 792 | 792 | public function setDisplayColors($displayColors) |
| 793 | 793 | { |
| 794 | - $this->displayColors = ! ! $displayColors; |
|
| 794 | + $this->displayColors = !!$displayColors; |
|
| 795 | 795 | |
| 796 | 796 | return $this; |
| 797 | 797 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function setDisplay($display) |
| 76 | 76 | { |
| 77 | - $this->display = ! ! $display; |
|
| 77 | + $this->display = !!$display; |
|
| 78 | 78 | |
| 79 | 79 | return $this; |
| 80 | 80 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | public function setFullWidth($fullWidth) |
| 116 | 116 | { |
| 117 | - $this->fullWidth = ! ! $fullWidth; |
|
| 117 | + $this->fullWidth = !!$fullWidth; |
|
| 118 | 118 | |
| 119 | 119 | return $this; |
| 120 | 120 | } |
@@ -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 DataSet $row */ |
| 22 | - $rows[] = $row->getArrayCopy(); |
|
| 22 | + $rows[ ] = $row->getArrayCopy(); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | return $rows; |
@@ -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 | |