@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | */ |
| 182 | 182 | public function setAutoSkip($autoSkip) |
| 183 | 183 | { |
| 184 | - $this->autoSkip = ! ! $autoSkip; |
|
| 184 | + $this->autoSkip = !!$autoSkip; |
|
| 185 | 185 | |
| 186 | 186 | return $this; |
| 187 | 187 | } |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | */ |
| 242 | 242 | public function setDisplay($display) |
| 243 | 243 | { |
| 244 | - $this->display = ! ! $display; |
|
| 244 | + $this->display = !!$display; |
|
| 245 | 245 | |
| 246 | 246 | return $this; |
| 247 | 247 | } |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | */ |
| 402 | 402 | public function setMirror($mirror) |
| 403 | 403 | { |
| 404 | - $this->mirror = ! ! $mirror; |
|
| 404 | + $this->mirror = !!$mirror; |
|
| 405 | 405 | |
| 406 | 406 | return $this; |
| 407 | 407 | } |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | */ |
| 442 | 442 | public function setReverse($reverse) |
| 443 | 443 | { |
| 444 | - $this->reverse = ! ! $reverse; |
|
| 444 | + $this->reverse = !!$reverse; |
|
| 445 | 445 | |
| 446 | 446 | return $this; |
| 447 | 447 | } |
@@ -471,6 +471,6 @@ discard block |
||
| 471 | 471 | */ |
| 472 | 472 | public function jsonSerialize() |
| 473 | 473 | { |
| 474 | - return Json::encode($this->getArrayCopy(), false, ['enableJsonExprFinder' => true]); |
|
| 474 | + return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 475 | 475 | } |
| 476 | 476 | } |
@@ -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; |