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 ( 890c9c...35b399 )
by
unknown
02:03
created
src/Containers/Modules/DataStructures/Module.php 1 patch
Spacing   +4 added lines, -4 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
 
Please login to merge, or discard this patch.
src/Containers/Modules.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -184,13 +184,13 @@  discard block
 block discarded – undo
184 184
 
185 185
         if (isset($config) AND is_array($config)) {
186 186
             // Set default timezone
187
-            if (isset($config[ 'datetime' ][ 'timezone' ])) {
188
-                date_default_timezone_set($config[ 'datetime' ][ 'timezone' ]);
187
+            if (isset($config['datetime']['timezone'])) {
188
+                date_default_timezone_set($config['datetime']['timezone']);
189 189
             }
190 190
 
191 191
             // Setup Language Ideom and Locale
192
-            if (isset($config[ 'language' ])) {
193
-                language()->setDefault($config[ 'language' ]);
192
+            if (isset($config['language'])) {
193
+                language()->setDefault($config['language']);
194 194
             }
195 195
 
196 196
             config()->merge($config);
@@ -420,8 +420,8 @@  discard block
 block discarded – undo
420 420
                 $packageJsonFile = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $packageJsonFile);
421 421
                 $packageJsonFileInfo = pathinfo($packageJsonFile);
422 422
 
423
-                if ($packageJsonFileInfo[ 'filename' ] === 'widget' or
424
-                    $packageJsonFileInfo[ 'filename' ] === 'language' or
423
+                if ($packageJsonFileInfo['filename'] === 'widget' or
424
+                    $packageJsonFileInfo['filename'] === 'language' or
425 425
                     strpos($packageJsonFile, '.svn') !== false // subversion properties file conflict.
426 426
                 ) {
427 427
                     continue;
@@ -451,8 +451,8 @@  discard block
 block discarded – undo
451 451
                 }
452 452
 
453 453
                 if (strpos($packageJsonFile,
454
-                        $modularType = ucfirst(plural($packageJsonFileInfo[ 'filename' ])) . DIRECTORY_SEPARATOR) === false) {
455
-                    $modularType = ucfirst($packageJsonFileInfo[ 'filename' ]) . DIRECTORY_SEPARATOR;
454
+                        $modularType = ucfirst(plural($packageJsonFileInfo['filename'])) . DIRECTORY_SEPARATOR) === false) {
455
+                    $modularType = ucfirst($packageJsonFileInfo['filename']) . DIRECTORY_SEPARATOR;
456 456
                 }
457 457
 
458 458
                 $modularType = strtolower(rtrim($modularType, DIRECTORY_SEPARATOR));
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
                                 PATH_PUBLIC,
468 468
                                 PATH_RESOURCES,
469 469
                                 PATH_APP,
470
-                                $packageJsonFileInfo[ 'basename' ],
470
+                                $packageJsonFileInfo['basename'],
471 471
                                 ucfirst($modularType) . DIRECTORY_SEPARATOR,
472 472
                             ],
473 473
                             '',
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
                     )
478 478
                 );
479 479
 
480
-                $moduleSegments = array_map(function ($string) {
480
+                $moduleSegments = array_map(function($string) {
481 481
                     return dash(snakecase($string));
482 482
                 }, $moduleSegments);
483 483
 
@@ -485,14 +485,14 @@  discard block
 block discarded – undo
485 485
                     str_replace(
486 486
                         PATH_ROOT,
487 487
                         '',
488
-                        $packageJsonFileInfo[ 'dirname' ]
488
+                        $packageJsonFileInfo['dirname']
489 489
                     ),
490 490
                     false
491 491
                 );
492 492
 
493
-                if (isset($packageJsonMetadata[ 'namespace' ])) {
494
-                    $moduleNamespace = $packageJsonMetadata[ 'namespace' ];
495
-                    unset($packageJsonMetadata[ 'namespace' ]);
493
+                if (isset($packageJsonMetadata['namespace'])) {
494
+                    $moduleNamespace = $packageJsonMetadata['namespace'];
495
+                    unset($packageJsonMetadata['namespace']);
496 496
                 }
497 497
 
498 498
                 $moduleParentSegments = [];
@@ -506,16 +506,16 @@  discard block
 block discarded – undo
506 506
                 $registryKey = implode('/', $moduleSegments);
507 507
 
508 508
                 if ($registryKey === '') {
509
-                    if ($packageJsonFileInfo[ 'dirname' ] . DIRECTORY_SEPARATOR !== PATH_APP and $modularType === 'app') {
509
+                    if ($packageJsonFileInfo['dirname'] . DIRECTORY_SEPARATOR !== PATH_APP and $modularType === 'app') {
510 510
                         $registryKey = dash(snakecase(
511
-                            pathinfo($packageJsonFileInfo[ 'dirname' ], PATHINFO_FILENAME)));
511
+                            pathinfo($packageJsonFileInfo['dirname'], PATHINFO_FILENAME)));
512 512
                     }
513 513
                 }
514 514
 
515
-                $registry[ $registryKey ] = (new DataStructures\Module(
516
-                    $packageJsonFileInfo[ 'dirname' ]
515
+                $registry[$registryKey] = (new DataStructures\Module(
516
+                    $packageJsonFileInfo['dirname']
517 517
                 ))
518
-                    ->setType($packageJsonFileInfo[ 'filename' ])
518
+                    ->setType($packageJsonFileInfo['filename'])
519 519
                     ->setNamespace($moduleNamespace)
520 520
                     ->setSegments($moduleSegments)
521 521
                     ->setParentSegments($moduleParentSegments)
@@ -677,8 +677,8 @@  discard block
 block discarded – undo
677 677
         $segment = dash($segment);
678 678
 
679 679
         if ($this->exists($segment)) {
680
-            if ($this->registry[ $segment ] instanceof DataStructures\Module) {
681
-                return $this->registry[ $segment ];
680
+            if ($this->registry[$segment] instanceof DataStructures\Module) {
681
+                return $this->registry[$segment];
682 682
             }
683 683
         }
684 684
 
@@ -714,8 +714,8 @@  discard block
 block discarded – undo
714 714
      */
715 715
     public function first()
716 716
     {
717
-        if (isset($this->registry[ '' ])) {
718
-            return $this->registry[ '' ];
717
+        if (isset($this->registry[''])) {
718
+            return $this->registry[''];
719 719
         } elseif (reset($this->registry)->type === 'APP') {
720 720
             return reset($this->registry);
721 721
         }
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
         $segments = (is_array($segments) ? implode('/', array_map('dash', $segments)) : $segments);
738 738
 
739 739
         if ($this->exists($segments)) {
740
-            return $this->registry[ $segments ];
740
+            return $this->registry[$segments];
741 741
         }
742 742
 
743 743
         return false;
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
 
759 759
         foreach ($this as $key => $module) {
760 760
             if ($module instanceof DataStructures\Module) {
761
-                $namespaces[ $key ] = new SplNamespaceInfo($module->getNamespace(), $module->getRealPath());
761
+                $namespaces[$key] = new SplNamespaceInfo($module->getNamespace(), $module->getRealPath());
762 762
             }
763 763
         }
764 764
 
Please login to merge, or discard this patch.