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:57
created
src/Renderer/JavaScript.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@
 block discarded – undo
17 17
      */
18 18
     public function render($flags = null)
19 19
     {
20
-        $script = [];
20
+        $script = [ ];
21 21
 
22 22
         // First, setup the canvas context
23
-        $script[] = "var ctx = document.getElementById( \"{$this->chart->getId()}\" ).getContext( \"2d\" );";
23
+        $script[ ] = "var ctx = document.getElementById( \"{$this->chart->getId()}\" ).getContext( \"2d\" );";
24 24
 
25 25
         // Now, setup the chart instance
26 26
         $jsonRenderer = new Json($this->chart);
27 27
         $json         = $jsonRenderer->render($flags);
28
-        $script[]     = "var chart = new Chart( ctx, {$json} );";
28
+        $script[ ]     = "var chart = new Chart( ctx, {$json} );";
29 29
 
30 30
         // Return the script
31 31
         return "\nwindow.onload=(function(oldLoad){return function(){\n"
Please login to merge, or discard this patch.
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.