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.
Completed
Pull Request — master (#688)
by
unknown
18:52
created
src/Console/Generator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $aliases = $this->getValidAliases();
26 26
 
27
-        $aliases = $aliases->filter(function (Alias $item) {
28
-            return ! collect([
27
+        $aliases = $aliases->filter(function(Alias $item) {
28
+            return !collect([
29 29
                 'MessageStack',
30 30
                 'AdminSection',
31 31
                 'AdminTemplate',
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             ])->search($item->getAlias());
41 41
         });
42 42
 
43
-        return $aliases->groupBy(function (Alias $alias) {
43
+        return $aliases->groupBy(function(Alias $alias) {
44 44
             return $alias->getExtendsNamespace();
45 45
         });
46 46
     }
Please login to merge, or discard this patch.
src/Console/Commands/InstallCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
             Installation\CreateRoutesFile::class,
32 32
             Installation\CreateSectionServiceProvider::class,
33 33
             Installation\CreatePublicDirectory::class,
34
-        ])->map(function ($installer) {
34
+        ])->map(function($installer) {
35 35
             return new $installer($this, $this->config);
36
-        })->filter(function (Installator $installer) {
37
-            return $this->option('force') ? true : ! $installer->installed();
38
-        })->each(function (Installator $installer) {
36
+        })->filter(function(Installator $installer) {
37
+            return $this->option('force') ? true : !$installer->installed();
38
+        })->each(function(Installator $installer) {
39 39
             $installer->install();
40 40
             $installer->showInfo();
41 41
         });
Please login to merge, or discard this patch.
src/Providers/SleepingOwlServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     private function createLocalViewFactory()
52 52
     {
53 53
         $resolver = new EngineResolver();
54
-        $resolver->register('php', function () {
54
+        $resolver->register('php', function() {
55 55
             return new PhpEngine();
56 56
         });
57 57
         $finder = new FileViewFinder($this->app['files'], [__DIR__.'/../../resources/views']);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $localViewFactory = $this->createLocalViewFactory();
77 77
             $this->app->singleton(
78 78
                 'command.sleepingowl.ide.generate',
79
-                function ($app) use ($localViewFactory) {
79
+                function($app) use ($localViewFactory) {
80 80
                     return new \SleepingOwl\Admin\Console\Commands\GeneratorCommand($app['config'], $app['files'], $localViewFactory);
81 81
                 }
82 82
             );
Please login to merge, or discard this patch.
src/Providers/BreadcrumbsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function register()
23 23
     {
24
-        $this->app->singleton('sleeping_owl.breadcrumbs', function () {
24
+        $this->app->singleton('sleeping_owl.breadcrumbs', function() {
25 25
             return $this->app->make(Breadcrumbs::class);
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
src/Providers/AdminServiceProvider.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -42,17 +42,17 @@  discard block
 block discarded – undo
42 42
         $this->initializeNavigation();
43 43
         $this->registerAliases();
44 44
 
45
-        $this->app->singleton('sleeping_owl.widgets', function () {
45
+        $this->app->singleton('sleeping_owl.widgets', function() {
46 46
             return new WidgetsRegistry($this->app);
47 47
         });
48 48
 
49
-        $this->app->booted(function () {
49
+        $this->app->booted(function() {
50 50
             $this->app['sleeping_owl.widgets']->placeWidgets(
51 51
                 $this->app[ViewFactory::class]
52 52
             );
53 53
         });
54 54
 
55
-        $this->app->booted(function () {
55
+        $this->app->booted(function() {
56 56
             $this->registerCustomRoutes();
57 57
             $this->registerDefaultRoutes();
58 58
             $this->registerSupportRoutes();
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
 
67 67
     protected function registerTemplate()
68 68
     {
69
-        $this->app->singleton('assets.packages', function ($app) {
69
+        $this->app->singleton('assets.packages', function($app) {
70 70
             return new \KodiCMS\Assets\PackageManager();
71 71
         });
72 72
 
73
-        $this->app->singleton('sleeping_owl.meta', function ($app) {
73
+        $this->app->singleton('sleeping_owl.meta', function($app) {
74 74
             return new Meta(
75 75
                 new Assets(
76 76
                     $app['assets.packages']
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
             );
79 79
         });
80 80
 
81
-        $this->app->singleton('sleeping_owl.template', function (Application $app) {
82
-            if (! class_exists($class = $this->getConfig('template'))) {
81
+        $this->app->singleton('sleeping_owl.template', function(Application $app) {
82
+            if (!class_exists($class = $this->getConfig('template'))) {
83 83
                 throw new TemplateException("Template class [{$class}] not found");
84 84
             }
85 85
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     protected function getBootstrapPath($path = null)
110 110
     {
111
-        if (! is_null($path)) {
111
+        if (!is_null($path)) {
112 112
             $path = DIRECTORY_SEPARATOR.$path;
113 113
         }
114 114
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             $this->app[WidgetsRegistryInterface::class]->registerWidget($messageType);
137 137
         }
138 138
 
139
-        $this->app->singleton('sleeping_owl.message', function () use ($messageTypes) {
139
+        $this->app->singleton('sleeping_owl.message', function() use ($messageTypes) {
140 140
             return new MessageStack($messageTypes);
141 141
         });
142 142
     }
@@ -168,14 +168,14 @@  discard block
 block discarded – undo
168 168
             \SleepingOwl\Admin\Navigation\Badge::class
169 169
         );
170 170
 
171
-        $this->app->singleton('sleeping_owl.navigation', function () {
171
+        $this->app->singleton('sleeping_owl.navigation', function() {
172 172
             return new Navigation();
173 173
         });
174 174
     }
175 175
 
176 176
     protected function registerWysiwyg()
177 177
     {
178
-        $this->app->singleton('sleeping_owl.wysiwyg', function () {
178
+        $this->app->singleton('sleeping_owl.wysiwyg', function() {
179 179
             return new Manager($this->app);
180 180
         });
181 181
     }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     {
188 188
         $directory = $this->getBootstrapPath();
189 189
 
190
-        if (! is_dir($directory)) {
190
+        if (!is_dir($directory)) {
191 191
             return;
192 192
         }
193 193
 
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
             ->notName('routes.php')
198 198
             ->notName('navigation.php')
199 199
             ->in($directory)
200
-            ->sort(function (SplFileInfo $a) {
200
+            ->sort(function(SplFileInfo $a) {
201 201
                 return $a->getFilename() != 'bootstrap.php';
202 202
             });
203 203
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     protected function registerCustomRoutes()
221 221
     {
222 222
         if (file_exists($file = $this->getBootstrapPath('routes.php'))) {
223
-            $this->registerRoutes(function (Router $route) use ($file) {
223
+            $this->registerRoutes(function(Router $route) use ($file) {
224 224
                 require $file;
225 225
             });
226 226
         }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     protected function registerDefaultRoutes()
233 233
     {
234
-        $this->registerRoutes(function (Router $router) {
234
+        $this->registerRoutes(function(Router $router) {
235 235
             (new ModelRouter($this->app, $router))->register($this->app['sleeping_owl']->getModels());
236 236
 
237 237
             if (file_exists($routesFile = __DIR__.'/../Http/routes.php')) {
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
         $this->app['router']->group([
251 251
             'prefix' => $this->getConfig('url_prefix'),
252 252
 
253
-        ], function (Router $route) {
253
+        ], function(Router $route) {
254 254
             $route->get('ckeditor/upload/image', [
255 255
                 'as'   => 'admin.ckeditor.upload',
256 256
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@ckEditorStore',
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
         $this->app['router']->group([
272 272
             'prefix'     => $this->getConfig('url_prefix'),
273 273
             'middleware' => $this->getConfig('middleware'),
274
-        ], function (Router $route) use ($callback) {
274
+        ], function(Router $route) use ($callback) {
275 275
             call_user_func($callback, $route);
276 276
         });
277 277
     }
Please login to merge, or discard this patch.
src/Model/ModelConfigurationManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
         $this->repository = $app->make(RepositoryInterface::class);
117 117
         $this->repository->setClass($class);
118
-        if (! $this->alias) {
118
+        if (!$this->alias) {
119 119
             $this->setDefaultAlias();
120 120
         }
121 121
     }
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
      */
305 305
     public function can($action, Model $model)
306 306
     {
307
-        if (! $this->checkAccess) {
307
+        if (!$this->checkAccess) {
308 308
             return true;
309 309
         }
310 310
 
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
      */
337 337
     public function hasCustomControllerClass()
338 338
     {
339
-        return ! is_null($controller = $this->getControllerClass()) && class_exists($controller);
339
+        return !is_null($controller = $this->getControllerClass()) && class_exists($controller);
340 340
     }
341 341
 
342 342
     /**
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
         $page->setPriority($priority);
516 516
 
517 517
         if ($badge) {
518
-            if (! ($badge instanceof BadgeInterface)) {
518
+            if (!($badge instanceof BadgeInterface)) {
519 519
                 $badge = new Badge($badge);
520 520
             }
521 521
 
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
      */
557 557
     public function fireEvent($event, $halt = true, Model $model = null, ...$payload)
558 558
     {
559
-        if (! isset(self::$dispatcher)) {
559
+        if (!isset(self::$dispatcher)) {
560 560
             return true;
561 561
         }
562 562
 
Please login to merge, or discard this patch.