GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#61)
by halfpastfour
02:46
created
src/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Options/PieOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Options/Legend/Labels.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Options/Scales/YAxisCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Options/Scales/XAxisCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Options/Scales/ScaleLabel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Options/Hover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Options/Scale.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/DataSet.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.