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 ( 659838...c097a6 )
by Steeven
02:11
created
src/Cli/Commanders/Make/Module.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/Libraries/Ui/Admin/Sidebar/Menu.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
     {
39 39
         parent::__construct('div');
40 40
 
41
-        if (isset($attributes[ 'id' ])) {
42
-            $this->entity->setEntityName($attributes[ 'id' ]);
41
+        if (isset($attributes['id'])) {
42
+            $this->entity->setEntityName($attributes['id']);
43 43
         }
44 44
 
45 45
         if (count($attributes)) {
Please login to merge, or discard this patch.
src/Libraries/Ui/Admin/Sidebar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
     {
39 39
         parent::__construct('div');
40 40
 
41
-        if (isset($attributes[ 'id' ])) {
42
-            $this->entity->setEntityName($attributes[ 'id' ]);
41
+        if (isset($attributes['id'])) {
42
+            $this->entity->setEntityName($attributes['id']);
43 43
         }
44 44
 
45 45
         if (count($attributes)) {
Please login to merge, or discard this patch.
src/Services/Loader.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -144,20 +144,20 @@  discard block
 block discarded – undo
144 144
 
145 145
         if (is_dir($baseDirectory)) {
146 146
             // initialize the namespace prefix array
147
-            if (isset($this->namespaceDirs[ $namespace ]) === false) {
148
-                $this->namespaceDirs[ $namespace ] = [];
147
+            if (isset($this->namespaceDirs[$namespace]) === false) {
148
+                $this->namespaceDirs[$namespace] = [];
149 149
             }
150 150
 
151 151
             // retain the base directory for the namespace prefix
152
-            if ( ! in_array($baseDirectory, $this->namespaceDirs[ $namespace ])) {
152
+            if ( ! in_array($baseDirectory, $this->namespaceDirs[$namespace])) {
153 153
                 if ($prepend) {
154
-                    array_unshift($this->namespaceDirs[ $namespace ], $baseDirectory);
154
+                    array_unshift($this->namespaceDirs[$namespace], $baseDirectory);
155 155
                 } else {
156
-                    array_push($this->namespaceDirs[ $namespace ], $baseDirectory);
156
+                    array_push($this->namespaceDirs[$namespace], $baseDirectory);
157 157
                 }
158 158
             }
159 159
 
160
-            $this->namespaceDirsMap[ $baseDirectory ] = $namespace;
160
+            $this->namespaceDirsMap[$baseDirectory] = $namespace;
161 161
 
162 162
             // Register Namespace Language
163 163
             language()->addFilePath($baseDirectory);
@@ -196,9 +196,9 @@  discard block
 block discarded – undo
196 196
 
197 197
         if (is_dir($publicDir) and ! in_array($publicDir, $this->publicDirs)) {
198 198
             if (isset($offset)) {
199
-                $this->publicDirs[ $offset ] = $publicDir;
199
+                $this->publicDirs[$offset] = $publicDir;
200 200
             } else {
201
-                $this->publicDirs[ rtrim(str_replace(PATH_PUBLIC, '', $publicDir), '/') ] = $publicDir;
201
+                $this->publicDirs[rtrim(str_replace(PATH_PUBLIC, '', $publicDir), '/')] = $publicDir;
202 202
             }
203 203
         }
204 204
     }
@@ -222,9 +222,9 @@  discard block
 block discarded – undo
222 222
 
223 223
         if (is_dir($resourcesDir) and ! in_array($resourcesDir, $this->resourcesDirs)) {
224 224
             if (isset($offset)) {
225
-                $this->resourcesDirs[ $offset ] = $resourcesDir;
225
+                $this->resourcesDirs[$offset] = $resourcesDir;
226 226
             } else {
227
-                $this->resourcesDirs[ rtrim(str_replace(PATH_RESOURCES, '', $resourcesDir), '/') ] = $resourcesDir;
227
+                $this->resourcesDirs[rtrim(str_replace(PATH_RESOURCES, '', $resourcesDir), '/')] = $resourcesDir;
228 228
             }
229 229
         }
230 230
     }
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
         $dir = rtrim($dir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
283 283
 
284 284
         if (array_key_exists($dir, $this->namespaceDirsMap)) {
285
-            return $this->namespaceDirsMap[ $dir ];
285
+            return $this->namespaceDirsMap[$dir];
286 286
         }
287 287
 
288 288
         return false;
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
         $namespace = trim($namespace, '\\') . '\\';
328 328
 
329 329
         if (array_key_exists($namespace, $this->namespaceDirs)) {
330
-            return $this->namespaceDirs[ $namespace ];
330
+            return $this->namespaceDirs[$namespace];
331 331
         }
332 332
 
333 333
         return false;
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
             if (false !== ($modules = modules()->getRegistry())) {
349 349
                 foreach ($modules as $module) {
350 350
                     if ($module instanceof Module) {
351
-                        if (empty($this->namespaceDirs[ $module->getNamespace() ])) {
351
+                        if (empty($this->namespaceDirs[$module->getNamespace()])) {
352 352
                             $this->addNamespace($module->getNamespace(), $module->getRealPath());
353 353
                         }
354 354
                     }
@@ -416,12 +416,12 @@  discard block
 block discarded – undo
416 416
     public function loadMappedFile($namespace, $relativeClass)
417 417
     {
418 418
         // are there any base directories for this namespace prefix?
419
-        if (isset($this->namespaceDirs[ $namespace ]) === false) {
419
+        if (isset($this->namespaceDirs[$namespace]) === false) {
420 420
             return false;
421 421
         }
422 422
 
423 423
         // look through base directories for this namespace prefix
424
-        foreach ($this->namespaceDirs[ $namespace ] as $namespaceDirectory) {
424
+        foreach ($this->namespaceDirs[$namespace] as $namespaceDirectory) {
425 425
 
426 426
             // replace the namespace prefix with the base directory,
427 427
             // replace namespace separators with directory separators
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
         }
505 505
 
506 506
         if ($this->requireFile($helper)) {
507
-            $this->loadedHelpers[ pathinfo($helper, PATHINFO_FILENAME) ][] = $helper;
507
+            $this->loadedHelpers[pathinfo($helper, PATHINFO_FILENAME)][] = $helper;
508 508
 
509 509
             return;
510 510
         }
@@ -520,17 +520,17 @@  discard block
 block discarded – undo
520 520
         }
521 521
 
522 522
         if ( ! array_key_exists($helper, $this->loadedHelpers)) {
523
-            $this->loadedHelpers[ $helper ] = [];
523
+            $this->loadedHelpers[$helper] = [];
524 524
         }
525 525
 
526 526
         foreach ($helperDirectories as $helperDirectory) {
527 527
 
528 528
             $helperFilePath = $helperDirectory . studlycase($helper) . '.php';
529 529
 
530
-            if (in_array($helperFilePath, $this->loadedHelpers[ $helper ])) {
530
+            if (in_array($helperFilePath, $this->loadedHelpers[$helper])) {
531 531
                 continue;
532 532
             } elseif ($this->requireFile($helperFilePath)) {
533
-                $this->loadedHelpers[ $helper ][] = $helperFilePath;
533
+                $this->loadedHelpers[$helper][] = $helperFilePath;
534 534
             }
535 535
         }
536 536
     }
Please login to merge, or discard this patch.
src/Http/Controllers/Resources.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
         $download = false;
71 71
         if (false !== ($key = array_search('download', $segments))) {
72 72
             $download = true;
73
-            unset($segments[ $key ]);
73
+            unset($segments[$key]);
74 74
             $segments = array_values($segments);
75 75
         }
76 76
 
Please login to merge, or discard this patch.
src/Http/Controllers/Pages.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
      */
33 33
     public function index()
34 34
     {
35
-        if($this->presenter->page->file instanceof SplFileInfo) {
35
+        if ($this->presenter->page->file instanceof SplFileInfo) {
36 36
             $this->view->page(presenter()->page->file->getRealPath());
37 37
         }
38 38
     }
Please login to merge, or discard this patch.
src/Http/Presenter/Page.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,12 +155,12 @@
 block discarded – undo
155 155
                 $properties = file_get_contents($propertiesFilePath);
156 156
                 $properties = json_decode($properties, true);
157 157
 
158
-                if (isset($properties[ 'vars' ])) {
159
-                    $this->vars = $properties[ 'vars' ];
158
+                if (isset($properties['vars'])) {
159
+                    $this->vars = $properties['vars'];
160 160
                 }
161 161
 
162
-                if (isset($properties[ 'presets' ])) {
163
-                    $this->presets = new SplArrayObject($properties[ 'presets' ]);
162
+                if (isset($properties['presets'])) {
163
+                    $this->presets = new SplArrayObject($properties['presets']);
164 164
                 }
165 165
             }
166 166
         }
Please login to merge, or discard this patch.
src/Framework.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -420,12 +420,12 @@  discard block
 block discarded – undo
420 420
                 $session->set('language', language()->getDefault());
421 421
             }
422 422
 
423
-            if (config('security')->protection[ 'csrf' ] === true) {
423
+            if (config('security')->protection['csrf'] === true) {
424 424
                 $csrfProtection = new Security\Protections\Csrf();
425 425
                 $this->services->add($csrfProtection, 'csrfProtection');
426 426
             }
427 427
 
428
-            if (config('security')->protection[ 'xss' ] === true) {
428
+            if (config('security')->protection['xss'] === true) {
429 429
                 $xssProtection = new Security\Protections\Xss();
430 430
                 $this->services->add($xssProtection, 'xssProtection');
431 431
             }
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
                 $module->loadModel();
485 485
 
486 486
                 // Add View Resource Directory
487
-                if($this->services->has('view')) {
487
+                if ($this->services->has('view')) {
488 488
                     view()->addFilePath($module->getResourcesDir());
489 489
                     presenter()->assets->pushFilePath($module->getResourcesDir());
490 490
                 }
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
                     }
609 609
 
610 610
                     if (presenter()->partials->offsetExists('content')) {
611
-                        if(is_ajax()) {
611
+                        if (is_ajax()) {
612 612
                             echo presenter()->partials->content;
613 613
                         } else {
614 614
                             $htmlOutput = view()->render();
Please login to merge, or discard this patch.
src/Containers/Modules/DataStructures/Module.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -196,10 +196,10 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function setProperties(array $properties)
198 198
     {
199
-        if (isset($properties[ 'presets' ])) {
200
-            $this->setPresets($properties[ 'presets' ]);
199
+        if (isset($properties['presets'])) {
200
+            $this->setPresets($properties['presets']);
201 201
 
202
-            unset($properties[ 'presets' ]);
202
+            unset($properties['presets']);
203 203
         }
204 204
 
205 205
         $this->properties = $properties;
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         $themes = [];
290 290
         foreach ($directory->getTree() as $themeName => $themeTree) {
291 291
             if (($theme = $this->getTheme($themeName)) instanceof Module\Theme) {
292
-                $themes[ $themeName ] = $theme;
292
+                $themes[$themeName] = $theme;
293 293
             }
294 294
         }
295 295
 
@@ -312,9 +312,9 @@  discard block
 block discarded – undo
312 312
         $dirPath = str_replace(PATH_APP, '', $this->getRealPath());
313 313
         $dirPathParts = explode(DIRECTORY_SEPARATOR, $dirPath);
314 314
 
315
-        if(count($dirPathParts)) {
315
+        if (count($dirPathParts)) {
316 316
             $dirPathParts = array_map('dash', $dirPathParts);
317
-            $dirResources.= implode(DIRECTORY_SEPARATOR, $dirPathParts);
317
+            $dirResources .= implode(DIRECTORY_SEPARATOR, $dirPathParts);
318 318
         }
319 319
 
320 320
         if (is_null($subDir)) {
Please login to merge, or discard this patch.