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
Push — master ( 414922...a9bc98 )
by butschster
12:35
created
src/Console/Commands/SectionGenerate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,14 +31,14 @@
 block discarded – undo
31 31
             'App\Providers\AdminSectionsServiceProvider'
32 32
         );
33 33
 
34
-        if (! $provider) {
34
+        if (!$provider) {
35 35
             $this->error('[App\Providers\AdminSectionsServiceProvider] not found');
36 36
 
37 37
             return;
38 38
         }
39 39
 
40 40
         foreach ($provider->sections() as $model => $section) {
41
-            $this->callSilent('sleepingowl:section:make', ['name' => $section, 'model' => $model]);
41
+            $this->callSilent('sleepingowl:section:make', [ 'name' => $section, 'model' => $model ]);
42 42
         }
43 43
 
44 44
         $this->info('Sections generated successfully!');
Please login to merge, or discard this patch.
src/Providers/AdminServiceProvider.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function register()
29 29
     {
30
-        $this->app->singleton('sleeping_owl', function () {
30
+        $this->app->singleton('sleeping_owl', function() {
31 31
             return new Admin();
32 32
         });
33 33
 
@@ -37,23 +37,23 @@  discard block
 block discarded – undo
37 37
         $this->registerWysiwyg();
38 38
         $this->registerAliases();
39 39
 
40
-        $this->app->singleton(WidgetsRegistryInterface::class, function () {
40
+        $this->app->singleton(WidgetsRegistryInterface::class, function() {
41 41
             return new WidgetsRegistry($this->app);
42 42
         });
43 43
 
44
-        $this->app->booted(function () {
45
-            $this->app[WidgetsRegistryInterface::class]->placeWidgets(
46
-                $this->app[ViewFactory::class]
44
+        $this->app->booted(function() {
45
+            $this->app[ WidgetsRegistryInterface::class ]->placeWidgets(
46
+                $this->app[ ViewFactory::class ]
47 47
             );
48 48
         });
49 49
 
50
-        $this->app->booted(function () {
50
+        $this->app->booted(function() {
51 51
             $this->registerCustomRoutes();
52 52
             $this->registerDefaultRoutes();
53 53
             $this->registerNavigationFile();
54 54
         });
55 55
 
56
-        ModelConfigurationManager::setEventDispatcher($this->app['events']);
56
+        ModelConfigurationManager::setEventDispatcher($this->app[ 'events' ]);
57 57
     }
58 58
 
59 59
     /**
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     protected function getConfig($key)
65 65
     {
66
-        return $this->app['config']->get('sleeping_owl.'.$key);
66
+        return $this->app[ 'config' ]->get('sleeping_owl.'.$key);
67 67
     }
68 68
 
69 69
     /**
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     protected function getBootstrapPath($path = null)
75 75
     {
76
-        if (! is_null($path)) {
76
+        if (!is_null($path)) {
77 77
             $path = DIRECTORY_SEPARATOR.$path;
78 78
         }
79 79
 
@@ -84,14 +84,14 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $this->registerMessages();
86 86
 
87
-        $this->app->singleton('sleeping_owl.template', function () {
88
-            return $this->app['sleeping_owl']->template();
87
+        $this->app->singleton('sleeping_owl.template', function() {
88
+            return $this->app[ 'sleeping_owl' ]->template();
89 89
         });
90 90
 
91 91
         $this->registerBootstrap();
92 92
 
93
-        $this->registerRoutes(function (Router $route) {
94
-            $route->group(['as' => 'admin.', 'namespace' => 'SleepingOwl\Admin\Http\Controllers'], function ($route) {
93
+        $this->registerRoutes(function(Router $route) {
94
+            $route->group([ 'as' => 'admin.', 'namespace' => 'SleepingOwl\Admin\Http\Controllers' ], function($route) {
95 95
                 $route->get('assets/admin.scripts', [
96 96
                     'as'   => 'scripts',
97 97
                     'uses' => 'AdminController@getScripts',
@@ -109,10 +109,10 @@  discard block
 block discarded – undo
109 109
             'warning' => \SleepingOwl\Admin\Widgets\Messages\WarningMessages::class,
110 110
         ];
111 111
         foreach ($messageTypes as $messageType) {
112
-            $this->app[WidgetsRegistryInterface::class]->registerWidget($messageType);
112
+            $this->app[ WidgetsRegistryInterface::class ]->registerWidget($messageType);
113 113
         }
114 114
 
115
-        $this->app->singleton('sleeping_owl.message', function () use ($messageTypes) {
115
+        $this->app->singleton('sleeping_owl.message', function() use ($messageTypes) {
116 116
             return new \SleepingOwl\Admin\Widgets\Messages\MessageStack($messageTypes);
117 117
         });
118 118
     }
@@ -126,14 +126,14 @@  discard block
 block discarded – undo
126 126
         $this->app->bind(\KodiComponents\Navigation\Contracts\PageInterface::class, \SleepingOwl\Admin\Navigation\Page::class);
127 127
         $this->app->bind(\KodiComponents\Navigation\Contracts\BadgeInterface::class, \SleepingOwl\Admin\Navigation\Badge::class);
128 128
 
129
-        $this->app->singleton('sleeping_owl.navigation', function () {
129
+        $this->app->singleton('sleeping_owl.navigation', function() {
130 130
             return new \SleepingOwl\Admin\Navigation();
131 131
         });
132 132
     }
133 133
 
134 134
     protected function registerWysiwyg()
135 135
     {
136
-        $this->app->singleton('sleeping_owl.wysiwyg', function () {
136
+        $this->app->singleton('sleeping_owl.wysiwyg', function() {
137 137
             return new \SleepingOwl\Admin\Wysiwyg\Manager();
138 138
         });
139 139
     }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         $directory = $this->getBootstrapPath();
147 147
 
148
-        if (! is_dir($directory)) {
148
+        if (!is_dir($directory)) {
149 149
             return;
150 150
         }
151 151
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             ->notName('routes.php')
156 156
             ->notName('navigation.php')
157 157
             ->in($directory)
158
-            ->sort(function ($a) {
158
+            ->sort(function($a) {
159 159
                 return $a->getFilename() != 'bootstrap.php';
160 160
             });
161 161
 
@@ -166,13 +166,13 @@  discard block
 block discarded – undo
166 166
 
167 167
     protected function registerAliases()
168 168
     {
169
-        AliasLoader::getInstance(config('sleeping_owl.aliases', []));
169
+        AliasLoader::getInstance(config('sleeping_owl.aliases', [ ]));
170 170
     }
171 171
 
172 172
     protected function registerCustomRoutes()
173 173
     {
174 174
         if (file_exists($file = $this->getBootstrapPath('routes.php'))) {
175
-            $this->registerRoutes(function (Router $route) use ($file) {
175
+            $this->registerRoutes(function(Router $route) use ($file) {
176 176
                 require $file;
177 177
             });
178 178
         }
@@ -180,15 +180,15 @@  discard block
 block discarded – undo
180 180
 
181 181
     protected function registerDefaultRoutes()
182 182
     {
183
-        $this->registerRoutes(function (Router $router) {
183
+        $this->registerRoutes(function(Router $router) {
184 184
             $router->pattern('adminModelId', '[a-zA-Z0-9_-]+');
185 185
 
186
-            $aliases = $this->app['sleeping_owl']->modelAliases();
186
+            $aliases = $this->app[ 'sleeping_owl' ]->modelAliases();
187 187
 
188 188
             if (count($aliases) > 0) {
189 189
                 $router->pattern('adminModel', implode('|', $aliases));
190 190
 
191
-                $this->app['router']->bind('adminModel', function ($model, \Illuminate\Routing\Route $route) use ($aliases) {
191
+                $this->app[ 'router' ]->bind('adminModel', function($model, \Illuminate\Routing\Route $route) use ($aliases) {
192 192
                     $class = array_search($model, $aliases);
193 193
 
194 194
                     if ($class === false) {
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                     }
197 197
 
198 198
                     /** @var ModelConfiguration $model */
199
-                    $model = $this->app['sleeping_owl']->getModel($class);
199
+                    $model = $this->app[ 'sleeping_owl' ]->getModel($class);
200 200
 
201 201
                     if ($model->hasCustomControllerClass() && $route->getActionName() !== 'Closure') {
202 202
                         list($controller, $action) = explode('@', $route->getActionName(), 2);
@@ -225,10 +225,10 @@  discard block
 block discarded – undo
225 225
      */
226 226
     protected function registerRoutes(\Closure $callback)
227 227
     {
228
-        $this->app['router']->group([
228
+        $this->app[ 'router' ]->group([
229 229
             'prefix' => $this->getConfig('url_prefix'),
230 230
             'middleware' => $this->getConfig('middleware'),
231
-        ], function ($route) use ($callback) {
231
+        ], function($route) use ($callback) {
232 232
             call_user_func($callback, $route);
233 233
         });
234 234
     }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             $items = include $navigation;
240 240
 
241 241
             if (is_array($items)) {
242
-                $this->app['sleeping_owl.navigation']->setFromArray($items);
242
+                $this->app[ 'sleeping_owl.navigation' ]->setFromArray($items);
243 243
             }
244 244
         }
245 245
     }
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$router->group(['as' => 'admin.', 'namespace' => 'SleepingOwl\Admin\Http\Controllers'], function ($router) {
4
-    if (! $router->has('admin.dashboard')) {
5
-        $router->get('', ['as' => 'dashboard', 'uses' => 'AdminController@getDashboard']);
3
+$router->group([ 'as' => 'admin.', 'namespace' => 'SleepingOwl\Admin\Http\Controllers' ], function($router) {
4
+    if (!$router->has('admin.dashboard')) {
5
+        $router->get('', [ 'as' => 'dashboard', 'uses' => 'AdminController@getDashboard' ]);
6 6
     }
7 7
 
8 8
     $router->get('{adminModel}', [
Please login to merge, or discard this patch.
resources/views/default/display/extensions/columns.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
             @foreach ($columns as $column)
23 23
                 <?php
24 24
                 $column->setModel($model);
25
-                if($column instanceof \SleepingOwl\Admin\Display\Column\Control) {
25
+                if ($column instanceof \SleepingOwl\Admin\Display\Column\Control) {
26 26
                     $column->initialize();
27 27
                 }
28 28
                 ?>
Please login to merge, or discard this patch.