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
Push — master ( c28c6c...173d59 )
by Steeven
02:19
created
src/Cli/Commander.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function &__get($property)
32 32
     {
33
-        $get[ $property ] = false;
33
+        $get[$property] = false;
34 34
 
35 35
         // CodeIgniter property aliasing
36 36
         if ($property === 'load') {
@@ -45,6 +45,6 @@  discard block
 block discarded – undo
45 45
             return models('controller');
46 46
         }
47 47
 
48
-        return $get[ $property ];
48
+        return $get[$property];
49 49
     }
50 50
 }
51 51
\ No newline at end of file
Please login to merge, or discard this patch.
src/Cli/Commanders/Make/Widget.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             exit(EXIT_ERROR);
74 74
         }
75 75
 
76
-        $jsonProperties[ 'name' ] = readable(
76
+        $jsonProperties['name'] = readable(
77 77
             pathinfo($widgetPath, PATHINFO_FILENAME),
78 78
             true
79 79
         );
@@ -86,10 +86,10 @@  discard block
 block discarded – undo
86 86
                 ) . '\\';
87 87
         } else {
88 88
             $namespace = prepare_class_name($this->namespace);
89
-            $jsonProperties[ 'namespace' ] = rtrim($namespace, '\\') . '\\';
89
+            $jsonProperties['namespace'] = rtrim($namespace, '\\') . '\\';
90 90
         }
91 91
 
92
-        $jsonProperties[ 'created' ] = date('d M Y');
92
+        $jsonProperties['created'] = date('d M Y');
93 93
 
94 94
         loader()->addNamespace($namespace, $widgetPath);
95 95
 
Please login to merge, or discard this patch.
src/Cli/Commanders/Make/Commander.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,11 +85,11 @@
 block discarded – undo
85 85
                     $subNamespace
86 86
                 )) . '\\';
87 87
 
88
-        $vars[ 'CREATE_DATETIME' ] = date('d/m/Y H:m');
89
-        $vars[ 'NAMESPACE' ] = trim($classNamespace, '\\');
90
-        $vars[ 'PACKAGE' ] = '\\' . trim($classNamespace, '\\');
91
-        $vars[ 'CLASS' ] = $className;
92
-        $vars[ 'FILEPATH' ] = $filePath;
88
+        $vars['CREATE_DATETIME'] = date('d/m/Y H:m');
89
+        $vars['NAMESPACE'] = trim($classNamespace, '\\');
90
+        $vars['PACKAGE'] = '\\' . trim($classNamespace, '\\');
91
+        $vars['CLASS'] = $className;
92
+        $vars['FILEPATH'] = $filePath;
93 93
 
94 94
         $phpTemplate = <<<PHPTEMPLATE
95 95
 <?php
Please login to merge, or discard this patch.
src/Cli/Commanders/Make/Plugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             exit(EXIT_ERROR);
101 101
         }
102 102
 
103
-        $jsonProperties[ 'name' ] = readable(
103
+        $jsonProperties['name'] = readable(
104 104
             pathinfo($modulePath, PATHINFO_FILENAME),
105 105
             true
106 106
         );
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
                 ) . '\\';
114 114
         } else {
115 115
             $namespace = $this->namespace;
116
-            $jsonProperties[ 'namespace' ] = rtrim($namespace, '\\') . '\\';
116
+            $jsonProperties['namespace'] = rtrim($namespace, '\\') . '\\';
117 117
         }
118 118
 
119
-        $jsonProperties[ 'created' ] = date('d M Y');
119
+        $jsonProperties['created'] = date('d M Y');
120 120
 
121 121
         loader()->addNamespace($namespace, $modulePath);
122 122
 
Please login to merge, or discard this patch.
src/Cli/Commanders/Make/Theme.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,12 +101,12 @@
 block discarded – undo
101 101
 
102 102
         mkdir($themePath . 'partials' . DIRECTORY_SEPARATOR, 0777, true);
103 103
 
104
-        $jsonProperties[ 'name' ] = readable(
104
+        $jsonProperties['name'] = readable(
105 105
             $this->optionName,
106 106
             true
107 107
         );
108 108
 
109
-        $jsonProperties[ 'created' ] = date('d M Y');
109
+        $jsonProperties['created'] = date('d M Y');
110 110
 
111 111
         file_put_contents($themePath . 'theme.json', json_encode($jsonProperties, JSON_PRETTY_PRINT));
112 112
 
Please login to merge, or discard this patch.
src/Containers/Modules/DataStructures/Module/Widget.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
             $properties = json_decode(file_get_contents($propFilePath), true);
54 54
 
55 55
             if (json_last_error() === JSON_ERROR_NONE) {
56
-                if (isset($properties[ 'config' ])) {
57
-                    $this->presets = $properties[ 'presets' ];
58
-                    unset($properties[ 'presets' ]);
56
+                if (isset($properties['config'])) {
57
+                    $this->presets = $properties['presets'];
58
+                    unset($properties['presets']);
59 59
                 }
60 60
 
61 61
                 $this->properties = $properties;
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
      */
137 137
     public function getNamespace()
138 138
     {
139
-        if (isset($this->properties[ 'namespace' ])) {
140
-            return $this->properties[ 'namespace' ];
139
+        if (isset($this->properties['namespace'])) {
140
+            return $this->properties['namespace'];
141 141
         }
142 142
 
143 143
         $dir = $this->getRealPath();
Please login to merge, or discard this patch.
src/Containers/Models.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     public function __construct()
42 42
     {
43 43
         if ($config = config()->loadFile('database', true)) {
44
-            if ( ! empty($config[ 'default' ][ 'hostname' ]) AND ! empty($config[ 'default' ][ 'username' ])) {
44
+            if ( ! empty($config['default']['hostname']) AND ! empty($config['default']['username'])) {
45 45
 
46 46
                 if (profiler() !== false) {
47 47
                     profiler()->watch('Starting Database Service');
Please login to merge, or discard this patch.
src/Containers/Globals.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function offsetExists($offset)
105 105
     {
106
-        return isset($GLOBALS[ $offset ]);
106
+        return isset($GLOBALS[$offset]);
107 107
     }
108 108
 
109 109
     // ------------------------------------------------------------------------
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function &__get($offset)
122 122
     {
123
-        return $GLOBALS[ $offset ];
123
+        return $GLOBALS[$offset];
124 124
     }
125 125
 
126 126
     // ------------------------------------------------------------------------
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     public function offsetSet($offset, $value)
180 180
     {
181
-        $GLOBALS[ $offset ] = $value;
181
+        $GLOBALS[$offset] = $value;
182 182
     }
183 183
 
184 184
     // ------------------------------------------------------------------------
@@ -233,8 +233,8 @@  discard block
 block discarded – undo
233 233
      */
234 234
     public function offsetUnset($offset)
235 235
     {
236
-        if (isset($GLOBALS[ $offset ])) {
237
-            unset($GLOBALS[ $offset ]);
236
+        if (isset($GLOBALS[$offset])) {
237
+            unset($GLOBALS[$offset]);
238 238
         }
239 239
     }
240 240
 
@@ -435,6 +435,6 @@  discard block
 block discarded – undo
435 435
      */
436 436
     public function offsetGet($offset)
437 437
     {
438
-        return (isset($GLOBALS[ $offset ])) ? $GLOBALS[ $offset ] : false;
438
+        return (isset($GLOBALS[$offset])) ? $GLOBALS[$offset] : false;
439 439
     }
440 440
 }
441 441
\ No newline at end of file
Please login to merge, or discard this patch.
src/Containers/Environment.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function offsetExists($offset)
105 105
     {
106
-        return isset($_ENV[ $offset ]);
106
+        return isset($_ENV[$offset]);
107 107
     }
108 108
 
109 109
     // ------------------------------------------------------------------------
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function &__get($offset)
122 122
     {
123
-        return $_ENV[ $offset ];
123
+        return $_ENV[$offset];
124 124
     }
125 125
 
126 126
     // ------------------------------------------------------------------------
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     public function offsetSet($offset, $value)
180 180
     {
181
-        $_ENV[ $offset ] = $value;
181
+        $_ENV[$offset] = $value;
182 182
     }
183 183
 
184 184
     // ------------------------------------------------------------------------
@@ -233,8 +233,8 @@  discard block
 block discarded – undo
233 233
      */
234 234
     public function offsetUnset($offset)
235 235
     {
236
-        if (isset($_ENV[ $offset ])) {
237
-            unset($_ENV[ $offset ]);
236
+        if (isset($_ENV[$offset])) {
237
+            unset($_ENV[$offset]);
238 238
         }
239 239
     }
240 240
 
@@ -435,6 +435,6 @@  discard block
 block discarded – undo
435 435
      */
436 436
     public function offsetGet($offset)
437 437
     {
438
-        return (isset($_ENV[ $offset ])) ? $_ENV[ $offset ] : false;
438
+        return (isset($_ENV[$offset])) ? $_ENV[$offset] : false;
439 439
     }
440 440
 }
441 441
\ No newline at end of file
Please login to merge, or discard this patch.