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 ( f91a4c...f91a4c )
by Dave
39:26 queued 34:22
created
src/Templates/Assets.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
      *   The key to insert after.
127 127
      * @param $array
128 128
      *   An array to insert in to.
129
-     * @param $new_key
129
+     * @param string $new_key
130 130
      *   The key to insert.
131
-     * @param $new_value
131
+     * @param AssetElement $new_value
132 132
      *   An value to insert.
133 133
      * @return Collection|bool The new array if the key exists, FALSE otherwise.
134 134
      */
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     }
182 182
 
183 183
     /**
184
-     * @return string
184
+     * @return \Illuminate\Support\HtmlString
185 185
      */
186 186
     public function renderGlobalVars()
187 187
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
      */
38 38
     protected function sort($assets)
39 39
     {
40
-        $mainAssets = collect($assets)->filter(function (AssetElement $item) {
41
-            return ! array_filter($item->getDependency());
40
+        $mainAssets = collect($assets)->filter(function(AssetElement $item) {
41
+            return !array_filter($item->getDependency());
42 42
         });
43 43
 
44
-        $depAssets = collect($assets)->filter(function (AssetElement $item) {
44
+        $depAssets = collect($assets)->filter(function(AssetElement $item) {
45 45
             return array_filter($item->getDependency());
46 46
         });
47 47
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $hasNotDep = null;
70 70
 
71 71
         foreach ($dependency as $dep) {
72
-            if (! $mainAssets->has($dep)) {
72
+            if (!$mainAssets->has($dep)) {
73 73
                 $hasNotDep = $dep;
74 74
                 break;
75 75
             }
Please login to merge, or discard this patch.
src/Display/Extension/ColumnsTotal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
 
37 37
     public function set(array $elements, $columnsNumber = 0)
38 38
     {
39
-        array_map(function ($element) {
40
-            if (! is_object($element)) {
39
+        array_map(function($element) {
40
+            if (!is_object($element)) {
41 41
                 $element = Element::create($element);
42 42
             }
43 43
             $this->elements->push($element);
Please login to merge, or discard this patch.
src/Form/Element/Image.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@
 block discarded – undo
37 37
      */
38 38
     public function customValidation(Validator $validator)
39 39
     {
40
-        $validator->after(function (Validator $validator) {
40
+        $validator->after(function(Validator $validator) {
41 41
             /** @var \Illuminate\Http\UploadedFile $file */
42 42
             $file = array_get($validator->attributes(), 'file');
43 43
 
44 44
             $size = getimagesize($file->getRealPath());
45 45
 
46
-            if (! $size && $file->getMimeType() !== 'image/svg+xml') {
46
+            if (!$size && $file->getMimeType() !== 'image/svg+xml') {
47 47
                 $validator->errors()->add('file', trans('sleeping_owl::validation.not_image'));
48 48
             }
49 49
         });
Please login to merge, or discard this patch.
src/Providers/AdminServiceProvider.php 1 patch
Spacing   +18 added lines, -18 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
         $domain = config('sleeping_owl.domain', false);
251 251
 
252 252
         $middlewares = collect($this->getConfig('middleware'));
253
-        $middlewares = $middlewares->filter(function ($item) {
253
+        $middlewares = $middlewares->filter(function($item) {
254 254
             return $item != 'web';
255 255
         });
256 256
         $configGroup = collect([
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
             $configGroup->put('domain', $domain);
263 263
         }
264 264
 
265
-        $this->app['router']->group($configGroup->toArray(), function (Router $route) {
265
+        $this->app['router']->group($configGroup->toArray(), function(Router $route) {
266 266
             $route->get('ckeditor/upload/image', [
267 267
                 'as'   => 'admin.ckeditor.upload',
268 268
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@ckEditorStore',
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
             $configGroup->put('domain', $domain);
291 291
         }
292 292
 
293
-        $this->app['router']->group($configGroup->toArray(), function (Router $route) use ($callback) {
293
+        $this->app['router']->group($configGroup->toArray(), function(Router $route) use ($callback) {
294 294
             call_user_func($callback, $route);
295 295
         });
296 296
     }
Please login to merge, or discard this patch.
src/Console/Installation/Command.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function fire(Filesystem $files)
31 31
     {
32
-        if (! defined('SLEEPINGOWL_STUB_PATH')) {
32
+        if (!defined('SLEEPINGOWL_STUB_PATH')) {
33 33
             define('SLEEPINGOWL_STUB_PATH', __DIR__.'/stubs');
34 34
         }
35 35
 
36
-        if (! $this->confirmToProceed('SleepingOwl Admin')) {
36
+        if (!$this->confirmToProceed('SleepingOwl Admin')) {
37 37
             return;
38 38
         }
39 39
 
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function handle(Filesystem $files)
57 57
     {
58
-        if (! defined('SLEEPINGOWL_STUB_PATH')) {
58
+        if (!defined('SLEEPINGOWL_STUB_PATH')) {
59 59
             define('SLEEPINGOWL_STUB_PATH', __DIR__.'/stubs');
60 60
         }
61 61
 
62
-        if (! $this->confirmToProceed('SleepingOwl Admin')) {
62
+        if (!$this->confirmToProceed('SleepingOwl Admin')) {
63 63
             return;
64 64
         }
65 65
 
Please login to merge, or discard this patch.
src/Traits/OrderableModel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@
 block discarded – undo
17 17
      */
18 18
     protected static function bootOrderableModel()
19 19
     {
20
-        static::creating(function (Model $row) {
20
+        static::creating(function(Model $row) {
21 21
             $row->updateOrderFieldOnCreate();
22 22
         });
23 23
 
24
-        static::deleted(function (Model $row) {
24
+        static::deleted(function(Model $row) {
25 25
             $row->updateOrderFieldOnDelete();
26 26
         });
27 27
 
28 28
         if (in_array("Illuminate\Database\Eloquent\SoftDeletes", trait_uses_recursive(new static()))) {
29
-            static::restoring(function (Model $row) {
29
+            static::restoring(function(Model $row) {
30 30
                 $row->updateOrderFieldOnRestore();
31 31
             });
32 32
         }
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
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                 if ($column instanceof \SleepingOwl\Admin\Display\Column\Control) {
26 26
                     $column->initialize();
27 27
                 }
28
-                if($column instanceof \SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface) {
28
+                if ($column instanceof \SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface) {
29 29
                 ?>
30 30
 
31 31
                 <td>
Please login to merge, or discard this patch.