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
Branch development (1144d9)
by butschster
09:48
created
src/Navigation/Badge.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     {
12 12
         $value = $this->getValue();
13 13
 
14
-        if (! $this->hasClassProperty('label-', 'bg-')) {
14
+        if (!$this->hasClassProperty('label-', 'bg-')) {
15 15
             $this->setHtmlAttribute('class', 'label-primary');
16 16
         }
17 17
 
Please login to merge, or discard this patch.
src/Console/Commands/UpdateCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
         collect([
25 25
             Installation\PublishAssets::class,
26 26
         ])
27
-            ->map(function ($installer) {
27
+            ->map(function($installer) {
28 28
                 return new $installer($this, $this->config);
29 29
             })
30
-            ->filter(function ($installer) {
31
-                return $this->option('force') ? true : ! $installer->installed();
32
-            })->each(function ($installer) {
30
+            ->filter(function($installer) {
31
+                return $this->option('force') ? true : !$installer->installed();
32
+            })->each(function($installer) {
33 33
                 $installer->install();
34 34
                 $installer->showInfo();
35 35
             });
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.
src/Display/DisplayTabbed.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     }
66 66
 
67 67
     /**
68
-     * @return TabInterface[]|DisplayTabsCollection
68
+     * @return \SleepingOwl\Admin\Form\FormElementsCollection
69 69
      */
70 70
     public function getTabs()
71 71
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $this->initializeElements();
44 44
 
45
-        $activeTabs = $this->getTabs()->filter(function (TabInterface $tab) {
45
+        $activeTabs = $this->getTabs()->filter(function(TabInterface $tab) {
46 46
             return $tab->isActive();
47 47
         })->count();
48 48
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function setModelClass($class)
72 72
     {
73
-        $this->getTabs()->each(function (TabInterface $tab) use ($class) {
73
+        $this->getTabs()->each(function(TabInterface $tab) use ($class) {
74 74
             if ($tab instanceof DisplayInterface) {
75 75
                 $tab->setModelClass($class);
76 76
             }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function setAction($action)
156 156
     {
157
-        $this->getTabs()->each(function (TabInterface $tab) use ($action) {
157
+        $this->getTabs()->each(function(TabInterface $tab) use ($action) {
158 158
             if ($tab instanceof FormInterface) {
159 159
                 $tab->setAction($action);
160 160
             }
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function setId($id)
172 172
     {
173
-        $this->getTabs()->each(function (TabInterface $tab) use ($id) {
173
+        $this->getTabs()->each(function(TabInterface $tab) use ($id) {
174 174
             if ($tab instanceof FormInterface) {
175 175
                 $tab->setId($id);
176 176
             }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      */
188 188
     public function validateForm(\Illuminate\Http\Request $request, ModelConfigurationInterface $model = null)
189 189
     {
190
-        $this->getTabs()->each(function ($tab) use ($request, $model) {
190
+        $this->getTabs()->each(function($tab) use ($request, $model) {
191 191
             if ($tab instanceof FormInterface) {
192 192
                 $tab->validateForm($request, $model);
193 193
             }
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function saveForm(\Illuminate\Http\Request $request, ModelConfigurationInterface $model = null)
204 204
     {
205
-        $this->getTabs()->each(function (TabInterface $tab) use ($request, $model) {
205
+        $this->getTabs()->each(function(TabInterface $tab) use ($request, $model) {
206 206
             if ($tab instanceof FormInterface) {
207 207
                 $tab->saveForm($request, $model);
208 208
             }
Please login to merge, or discard this patch.
src/Form/FormElementsCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function onlyActive()
14 14
     {
15
-        return $this->filter(function ($element) {
15
+        return $this->filter(function($element) {
16 16
             if ($element instanceof FormElementInterface) {
17
-                return ! $element->isReadonly();
17
+                return !$element->isReadonly();
18 18
             }
19 19
 
20 20
             return true;
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function onlyVisible()
28 28
     {
29
-        return $this->filter(function ($element) {
29
+        return $this->filter(function($element) {
30 30
             if ($element instanceof FormElementInterface) {
31 31
                 return $element->isVisible();
32 32
             }
Please login to merge, or discard this patch.
src/Display/DisplayTabsCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function onlyActive()
15 15
     {
16
-        return $this->filter(function (TabInterface $tab) {
16
+        return $this->filter(function(TabInterface $tab) {
17 17
             $element = $tab->getContent();
18 18
 
19 19
             if ($element instanceof FormElementInterface) {
20
-                return ! $element->isReadonly();
20
+                return !$element->isReadonly();
21 21
             }
22 22
 
23 23
             return true;
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function onlyVisible()
31 31
     {
32
-        return $this->filter(function (TabInterface $tab) {
32
+        return $this->filter(function(TabInterface $tab) {
33 33
             return $tab->isVisible();
34 34
         });
35 35
     }
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
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
         collect([
25 25
             Installation\PublishAssets::class,
26 26
         ])
27
-            ->map(function ($installer) {
27
+            ->map(function($installer) {
28 28
                 return new $installer($this, $this->config);
29 29
             })
30
-            ->filter(function ($installer) {
31
-                return $this->option('force') ? true : ! $installer->installed();
32
-            })->each(function ($installer) {
30
+            ->filter(function($installer) {
31
+                return $this->option('force') ? true : !$installer->installed();
32
+            })->each(function($installer) {
33 33
                 $installer->install();
34 34
                 $installer->showInfo();
35 35
             });
Please login to merge, or discard this patch.
src/Http/Controllers/AdminController.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
      *
306 306
      * @param Request $request
307 307
      *
308
-     * @return bool
308
+     * @return boolean|null
309 309
      *
310 310
      * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
311 311
      */
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
     }
411 411
 
412 412
     /**
413
-     * @param ModelConfigurationInterface|ModelConfiguration $model
413
+     * @param ModelConfigurationInterface $model
414 414
      * @param Request $request
415 415
      * @param int $id
416 416
      *
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
     /**
530 530
      * @param Request $request
531 531
      *
532
-     * @return null|string
532
+     * @return string
533 533
      */
534 534
     protected function getBackUrl(Request $request)
535 535
     {
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 
51 51
         $admin->navigation()->setCurrentUrl($request->url());
52 52
 
53
-        if (! $this->breadcrumbs->exists('home')) {
54
-            $this->breadcrumbs->register('home', function ($breadcrumbs) {
53
+        if (!$this->breadcrumbs->exists('home')) {
54
+            $this->breadcrumbs->register('home', function($breadcrumbs) {
55 55
                 $breadcrumbs->push(trans('sleeping_owl::lang.dashboard'), route('admin.dashboard'));
56 56
             });
57 57
         }
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
         }
73 73
 
74 74
         foreach ($breadcrumbs as  $breadcrumb) {
75
-            if (! $this->breadcrumbs->exists($breadcrumb['id'])) {
76
-                $this->breadcrumbs->register($breadcrumb['id'], function ($breadcrumbs) use ($breadcrumb) {
75
+            if (!$this->breadcrumbs->exists($breadcrumb['id'])) {
76
+                $this->breadcrumbs->register($breadcrumb['id'], function($breadcrumbs) use ($breadcrumb) {
77 77
                     $breadcrumbs->parent($breadcrumb['parent']);
78 78
                     $breadcrumbs->push($breadcrumb['title'], $breadcrumb['url']);
79 79
                 });
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function getDisplay(ModelConfigurationInterface $model)
119 119
     {
120
-        if (! $model->isDisplayable()) {
120
+        if (!$model->isDisplayable()) {
121 121
             abort(404);
122 122
         }
123 123
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function getCreate(ModelConfigurationInterface $model)
135 135
     {
136
-        if (! $model->isCreatable()) {
136
+        if (!$model->isCreatable()) {
137 137
             abort(404);
138 138
         }
139 139
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     public function postStore(ModelConfigurationInterface $model, Request $request)
154 154
     {
155
-        if (! $model->isCreatable()) {
155
+        if (!$model->isCreatable()) {
156 156
             abort(404);
157 157
         }
158 158
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             $redirectPolicy = $model->getRedirect();
189 189
 
190 190
             /* Make redirect when use in model config && Fix editable redirect */
191
-            if ($redirectPolicy->get('create') == 'display' || ! $model->isEditable($newModel)) {
191
+            if ($redirectPolicy->get('create') == 'display' || !$model->isEditable($newModel)) {
192 192
                 $redirectUrl = $model->getDisplayUrl();
193 193
             }
194 194
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     {
226 226
         $item = $model->getRepository()->find($id);
227 227
 
228
-        if (is_null($item) || ! $model->isEditable($item)) {
228
+        if (is_null($item) || !$model->isEditable($item)) {
229 229
             abort(404);
230 230
         }
231 231
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
         $editForm = $model->fireEdit($id);
250 250
         $item = $editForm->getModel();
251 251
 
252
-        if (is_null($item) || ! $model->isEditable($item)) {
252
+        if (is_null($item) || !$model->isEditable($item)) {
253 253
             abort(404);
254 254
         }
255 255
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
         $display = $model->fireDisplay();
323 323
 
324 324
         /** @var ColumnEditableInterface|null $column */
325
-        $column = $display->getColumns()->all()->filter(function ($column) use ($field) {
325
+        $column = $display->getColumns()->all()->filter(function($column) use ($field) {
326 326
             return ($column instanceof ColumnEditableInterface) and $field == $column->getName();
327 327
         })->first();
328 328
 
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
         $repository = $model->getRepository();
334 334
         $item = $repository->find($id);
335 335
 
336
-        if (is_null($item) || ! $model->isEditable($item)) {
336
+        if (is_null($item) || !$model->isEditable($item)) {
337 337
             abort(404);
338 338
         }
339 339
 
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
     {
361 361
         $item = $model->getRepository()->find($id);
362 362
 
363
-        if (is_null($item) || ! $model->isDeletable($item)) {
363
+        if (is_null($item) || !$model->isDeletable($item)) {
364 364
             abort(404);
365 365
         }
366 366
 
@@ -389,13 +389,13 @@  discard block
 block discarded – undo
389 389
      */
390 390
     public function deleteDestroy(ModelConfigurationInterface $model, Request $request, $id)
391 391
     {
392
-        if (! $model->isRestorableModel()) {
392
+        if (!$model->isRestorableModel()) {
393 393
             abort(404);
394 394
         }
395 395
 
396 396
         $item = $model->getRepository()->findOnlyTrashed($id);
397 397
 
398
-        if (is_null($item) || ! $model->isRestorable($item)) {
398
+        if (is_null($item) || !$model->isRestorable($item)) {
399 399
             abort(404);
400 400
         }
401 401
 
@@ -424,13 +424,13 @@  discard block
 block discarded – undo
424 424
      */
425 425
     public function postRestore(ModelConfigurationInterface $model, Request $request, $id)
426 426
     {
427
-        if (! $model->isRestorableModel()) {
427
+        if (!$model->isRestorableModel()) {
428 428
             abort(404);
429 429
         }
430 430
 
431 431
         $item = $model->getRepository()->findOnlyTrashed($id);
432 432
 
433
-        if (is_null($item) || ! $model->isRestorable($item)) {
433
+        if (is_null($item) || !$model->isRestorable($item)) {
434 434
             abort(404);
435 435
         }
436 436
 
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
      */
557 557
     protected function registerBreadcrumb($title, $parent)
558 558
     {
559
-        $this->breadcrumbs->register('render', function ($breadcrumbs) use ($title, $parent) {
559
+        $this->breadcrumbs->register('render', function($breadcrumbs) use ($title, $parent) {
560 560
             $breadcrumbs->parent($parent);
561 561
             $breadcrumbs->push($title);
562 562
         });
Please login to merge, or discard this patch.
src/Model/ModelConfigurationManager.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
     }
328 328
 
329 329
     /**
330
-     * @return null|string
330
+     * @return boolean
331 331
      */
332 332
     public function hasCustomControllerClass()
333 333
     {
@@ -505,7 +505,6 @@  discard block
 block discarded – undo
505 505
      * @param string $event
506 506
      * @param bool $halt
507 507
      * @param Model|null $model
508
-     * @param array $args
509 508
      *
510 509
      * @return mixed
511 510
      */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         $this->repository = app(RepositoryInterface::class, [$class]);
112 112
 
113
-        if (! $this->alias) {
113
+        if (!$this->alias) {
114 114
             $this->setDefaultAlias();
115 115
         }
116 116
     }
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
      */
300 300
     public function can($action, Model $model)
301 301
     {
302
-        if (! $this->checkAccess) {
302
+        if (!$this->checkAccess) {
303 303
             return true;
304 304
         }
305 305
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
      */
332 332
     public function hasCustomControllerClass()
333 333
     {
334
-        return ! is_null($controller = $this->getControllerClass()) and class_exists($controller);
334
+        return !is_null($controller = $this->getControllerClass()) and class_exists($controller);
335 335
     }
336 336
 
337 337
     /**
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
         $page->setPriority($priority);
469 469
 
470 470
         if ($badge) {
471
-            if (! ($badge instanceof BadgeInterface)) {
471
+            if (!($badge instanceof BadgeInterface)) {
472 472
                 $badge = new Badge($badge);
473 473
             }
474 474
 
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
      */
512 512
     public function fireEvent($event, $halt = true, Model $model = null, ...$payload)
513 513
     {
514
-        if (! isset(self::$dispatcher)) {
514
+        if (!isset(self::$dispatcher)) {
515 515
             return true;
516 516
         }
517 517
 
Please login to merge, or discard this patch.