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 ( c8f8d9...983747 )
by
unknown
02:41
created
src/Http/View.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         );
73 73
 
74 74
         if ($this->config->offsetExists('extensions')) {
75
-            $this->setFileExtensions($this->config[ 'extensions' ]);
75
+            $this->setFileExtensions($this->config['extensions']);
76 76
         }
77 77
 
78 78
         $this->document = new Html\Document();
@@ -88,13 +88,13 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function &__get($property)
90 90
     {
91
-        $get[ $property ] = false;
91
+        $get[$property] = false;
92 92
 
93 93
         if (property_exists($this, $property)) {
94 94
             return $this->{$property};
95 95
         }
96 96
 
97
-        return $get[ $property ];
97
+        return $get[$property];
98 98
     }
99 99
 
100 100
     // ------------------------------------------------------------------------
@@ -205,8 +205,8 @@  discard block
 block discarded – undo
205 205
             $error = new ErrorException(
206 206
                 'E_VIEW_NOT_FOUND',
207 207
                 0,
208
-                @$backtrace[ 0 ][ 'file' ],
209
-                @$backtrace[ 0 ][ 'line' ],
208
+                @$backtrace[0]['file'],
209
+                @$backtrace[0]['line'],
210 210
                 [trim($filename)]
211 211
             );
212 212
 
@@ -455,12 +455,12 @@  discard block
 block discarded – undo
455 455
         $htmlOutput = $this->document->saveHTML();
456 456
 
457 457
         // Uglify Output
458
-        if ($this->config->output[ 'uglify' ] === true) {
458
+        if ($this->config->output['uglify'] === true) {
459 459
             $htmlOutput = preg_replace(
460 460
                 [
461
-                    '/\>[^\S ]+/s',     // strip whitespaces after tags, except space
462
-                    '/[^\S ]+\</s',     // strip whitespaces before tags, except space
463
-                    '/(\s)+/s',         // shorten multiple whitespace sequences
461
+                    '/\>[^\S ]+/s', // strip whitespaces after tags, except space
462
+                    '/[^\S ]+\</s', // strip whitespaces before tags, except space
463
+                    '/(\s)+/s', // shorten multiple whitespace sequences
464 464
                     '/<!--(.|\s)*?-->/', // Remove HTML comments
465 465
                     '/<!--(.*)-->/Uis',
466 466
                     "/[[:blank:]]+/",
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
         }
478 478
 
479 479
         // Beautify Output
480
-        if ($this->config->output[ 'beautify' ] === true) {
480
+        if ($this->config->output['beautify'] === true) {
481 481
             $beautifier = new Html\Dom\Beautifier();
482 482
             $htmlOutput = $beautifier->format($htmlOutput);
483 483
         }
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
@@ -188,13 +188,13 @@  discard block
 block discarded – undo
188 188
 
189 189
         if (isset($config) AND is_array($config)) {
190 190
             // Set default timezone
191
-            if (isset($config[ 'datetime' ][ 'timezone' ])) {
192
-                date_default_timezone_set($config[ 'datetime' ][ 'timezone' ]);
191
+            if (isset($config['datetime']['timezone'])) {
192
+                date_default_timezone_set($config['datetime']['timezone']);
193 193
             }
194 194
 
195 195
             // Setup Language Ideom and Locale
196
-            if (isset($config[ 'language' ])) {
197
-                language()->setDefault($config[ 'language' ]);
196
+            if (isset($config['language'])) {
197
+                language()->setDefault($config['language']);
198 198
             }
199 199
 
200 200
             config()->merge($config);
@@ -424,8 +424,8 @@  discard block
 block discarded – undo
424 424
                 $packageJsonFile = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $packageJsonFile);
425 425
                 $packageJsonFileInfo = pathinfo($packageJsonFile);
426 426
 
427
-                if ($packageJsonFileInfo[ 'filename' ] === 'widget' or
428
-                    $packageJsonFileInfo[ 'filename' ] === 'language' or
427
+                if ($packageJsonFileInfo['filename'] === 'widget' or
428
+                    $packageJsonFileInfo['filename'] === 'language' or
429 429
                     strpos($packageJsonFile, '.svn') !== false // subversion properties file conflict.
430 430
                 ) {
431 431
                     continue;
@@ -455,8 +455,8 @@  discard block
 block discarded – undo
455 455
                 }
456 456
 
457 457
                 if (strpos($packageJsonFile,
458
-                        $modularType = ucfirst(plural($packageJsonFileInfo[ 'filename' ])) . DIRECTORY_SEPARATOR) === false) {
459
-                    $modularType = ucfirst($packageJsonFileInfo[ 'filename' ]) . DIRECTORY_SEPARATOR;
458
+                        $modularType = ucfirst(plural($packageJsonFileInfo['filename'])) . DIRECTORY_SEPARATOR) === false) {
459
+                    $modularType = ucfirst($packageJsonFileInfo['filename']) . DIRECTORY_SEPARATOR;
460 460
                 }
461 461
 
462 462
                 $modularType = strtolower(rtrim($modularType, DIRECTORY_SEPARATOR));
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
                                 PATH_PUBLIC,
472 472
                                 PATH_RESOURCES,
473 473
                                 PATH_APP,
474
-                                $packageJsonFileInfo[ 'basename' ],
474
+                                $packageJsonFileInfo['basename'],
475 475
                                 ucfirst($modularType) . DIRECTORY_SEPARATOR,
476 476
                                 ucfirst($modularType . 's') . DIRECTORY_SEPARATOR, // manual plural
477 477
                             ],
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
                     )
483 483
                 );
484 484
 
485
-                $moduleSegments = array_map(function ($string) {
485
+                $moduleSegments = array_map(function($string) {
486 486
                     return dash(snakecase($string));
487 487
                 }, $moduleSegments);
488 488
 
@@ -490,14 +490,14 @@  discard block
 block discarded – undo
490 490
                     str_replace(
491 491
                         PATH_ROOT,
492 492
                         '',
493
-                        $packageJsonFileInfo[ 'dirname' ]
493
+                        $packageJsonFileInfo['dirname']
494 494
                     ),
495 495
                     false
496 496
                 );
497 497
 
498
-                if (isset($packageJsonMetadata[ 'namespace' ])) {
499
-                    $moduleNamespace = $packageJsonMetadata[ 'namespace' ];
500
-                    unset($packageJsonMetadata[ 'namespace' ]);
498
+                if (isset($packageJsonMetadata['namespace'])) {
499
+                    $moduleNamespace = $packageJsonMetadata['namespace'];
500
+                    unset($packageJsonMetadata['namespace']);
501 501
                 }
502 502
 
503 503
                 $moduleParentSegments = [];
@@ -511,16 +511,16 @@  discard block
 block discarded – undo
511 511
                 $registryKey = implode('/', $moduleSegments);
512 512
 
513 513
                 if ($registryKey === '') {
514
-                    if ($packageJsonFileInfo[ 'dirname' ] . DIRECTORY_SEPARATOR !== PATH_APP and $modularType === 'app') {
514
+                    if ($packageJsonFileInfo['dirname'] . DIRECTORY_SEPARATOR !== PATH_APP and $modularType === 'app') {
515 515
                         $registryKey = dash(snakecase(
516
-                            pathinfo($packageJsonFileInfo[ 'dirname' ], PATHINFO_FILENAME)));
516
+                            pathinfo($packageJsonFileInfo['dirname'], PATHINFO_FILENAME)));
517 517
                     }
518 518
                 }
519 519
 
520
-                $registry[ $registryKey ] = (new DataStructures\Module(
521
-                    $packageJsonFileInfo[ 'dirname' ]
520
+                $registry[$registryKey] = (new DataStructures\Module(
521
+                    $packageJsonFileInfo['dirname']
522 522
                 ))
523
-                    ->setType($packageJsonFileInfo[ 'filename' ])
523
+                    ->setType($packageJsonFileInfo['filename'])
524 524
                     ->setNamespace($moduleNamespace)
525 525
                     ->setSegments($moduleSegments)
526 526
                     ->setParentSegments($moduleParentSegments)
@@ -682,8 +682,8 @@  discard block
 block discarded – undo
682 682
         $segment = dash($segment);
683 683
 
684 684
         if ($this->exists($segment)) {
685
-            if ($this->registry[ $segment ] instanceof DataStructures\Module) {
686
-                return $this->registry[ $segment ];
685
+            if ($this->registry[$segment] instanceof DataStructures\Module) {
686
+                return $this->registry[$segment];
687 687
             }
688 688
         }
689 689
 
@@ -719,8 +719,8 @@  discard block
 block discarded – undo
719 719
      */
720 720
     public function first()
721 721
     {
722
-        if (isset($this->registry[ '' ])) {
723
-            return $this->registry[ '' ];
722
+        if (isset($this->registry[''])) {
723
+            return $this->registry[''];
724 724
         } elseif (reset($this->registry)->type === 'APP') {
725 725
             return reset($this->registry);
726 726
         }
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
         $segments = (is_array($segments) ? implode('/', array_map('dash', $segments)) : $segments);
743 743
 
744 744
         if ($this->exists($segments)) {
745
-            return $this->registry[ $segments ];
745
+            return $this->registry[$segments];
746 746
         }
747 747
 
748 748
         return false;
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
 
764 764
         foreach ($this as $key => $module) {
765 765
             if ($module instanceof DataStructures\Module) {
766
-                $namespaces[ $key ] = new SplNamespaceInfo($module->getNamespace(), $module->getRealPath());
766
+                $namespaces[$key] = new SplNamespaceInfo($module->getNamespace(), $module->getRealPath());
767 767
             }
768 768
         }
769 769
 
Please login to merge, or discard this patch.