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/Display/ExtensionCollection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function placable()
17 17
     {
18
-        return $this->filter(function (DisplayExtensionInterface $extension) {
18
+        return $this->filter(function(DisplayExtensionInterface $extension) {
19 19
             return $extension instanceof Placable;
20 20
         });
21 21
     }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function renderable()
44 44
     {
45
-        return $this->filter(function (DisplayExtensionInterface $extension) {
45
+        return $this->filter(function(DisplayExtensionInterface $extension) {
46 46
             return $extension instanceof Renderable;
47 47
         });
48 48
     }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function sortByOrder()
54 54
     {
55
-        return $this->sortBy(function (DisplayExtensionInterface $extension) {
55
+        return $this->sortBy(function(DisplayExtensionInterface $extension) {
56 56
             return $extension->getOrder();
57 57
         });
58 58
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function initialize()
64 64
     {
65
-        $this->each(function (DisplayExtensionInterface $extension) {
65
+        $this->each(function(DisplayExtensionInterface $extension) {
66 66
             if ($extension instanceof Initializable) {
67 67
                 $extension->initialize();
68 68
             }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
78 78
     {
79
-        $this->each(function (DisplayExtensionInterface $extension) use ($query) {
79
+        $this->each(function(DisplayExtensionInterface $extension) use ($query) {
80 80
             $extension->modifyQuery($query);
81 81
         });
82 82
 
Please login to merge, or discard this patch.
src/Display/DisplayDatatablesAsync.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     }
119 119
 
120 120
     /**
121
-     * @param mixed $distinct
121
+     * @param string|null $distinct
122 122
      *
123 123
      * @return $this
124 124
      */
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * Apply offset and limit to the query.
164 164
      *
165
-     * @param $query
165
+     * @param Builder $query
166 166
      * @param \Illuminate\Http\Request $request
167 167
      */
168 168
     protected function applyOffset($query, \Illuminate\Http\Request $request)
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      * Convert collection to the datatables structure.
205 205
      *
206 206
      * @param \Illuminate\Http\Request $request
207
-     * @param array|Collection $collection
207
+     * @param Collection $collection
208 208
      * @param int $totalCount
209 209
      * @param int $filteredCount
210 210
      *
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public static function registerRoutes(Router $router)
27 27
     {
28 28
         $routeName = 'admin.display.async';
29
-        if (! $router->has($routeName)) {
29
+        if (!$router->has($routeName)) {
30 30
             $router->get('{adminModel}/async/{adminDisplayName?}', [
31 31
                 'as'   => $routeName,
32 32
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\DisplayController@async',
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         }
35 35
 
36 36
         $routeName = 'admin.display.async.inlineEdit';
37
-        if (! $router->has($routeName)) {
37
+        if (!$router->has($routeName)) {
38 38
             $router->post('{adminModel}/async/{adminDisplayName?}', [
39 39
                 'as'   => $routeName,
40 40
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\AdminController@inlineEdit',
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         $totalCount = $query->count();
204 204
         $filteredCount = 0;
205 205
 
206
-        if (! is_null($this->distinct)) {
206
+        if (!is_null($this->distinct)) {
207 207
             $filteredCount = $query->distinct()->count($this->getDistinct());
208 208
         }
209 209
 
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
             return;
254 254
         }
255 255
 
256
-        $query->where(function (Builder $query) use ($search) {
256
+        $query->where(function(Builder $query) use ($search) {
257 257
             $columns = $this->getColumns()->all();
258 258
 
259 259
             foreach ($columns as $column) {
Please login to merge, or discard this patch.
src/Http/Controllers/AdminController.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      * @param ModelConfigurationInterface $model
312 312
      * @param Request $request
313 313
      *
314
-     * @return bool
314
+     * @return boolean|null
315 315
      *
316 316
      * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
317 317
      */
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
     /**
535 535
      * @param Request $request
536 536
      *
537
-     * @return null|string
537
+     * @return string
538 538
      */
539 539
     protected function getBackUrl(Request $request)
540 540
     {
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
 
61 61
         $admin->navigation()->setCurrentUrl($request->getUri());
62 62
 
63
-        if (! $this->breadcrumbs->exists('home')) {
64
-            $this->breadcrumbs->register('home', function (Generator $breadcrumbs) {
63
+        if (!$this->breadcrumbs->exists('home')) {
64
+            $this->breadcrumbs->register('home', function(Generator $breadcrumbs) {
65 65
                 $breadcrumbs->push(trans('sleeping_owl::lang.dashboard'), route('admin.dashboard'));
66 66
             });
67 67
         }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function getDisplay(ModelConfigurationInterface $model)
120 120
     {
121
-        if (! $model->isDisplayable()) {
121
+        if (!$model->isDisplayable()) {
122 122
             abort(404);
123 123
         }
124 124
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function getCreate(ModelConfigurationInterface $model)
140 140
     {
141
-        if (! $model->isCreatable()) {
141
+        if (!$model->isCreatable()) {
142 142
             abort(404);
143 143
         }
144 144
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function postStore(ModelConfigurationInterface $model, Request $request)
160 160
     {
161
-        if (! $model->isCreatable()) {
161
+        if (!$model->isCreatable()) {
162 162
             abort(404);
163 163
         }
164 164
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
             $redirectPolicy = $model->getRedirect();
197 197
 
198 198
             /* Make redirect when use in model config && Fix editable redirect */
199
-            if ($redirectPolicy->get('create') == 'display' || ! $model->isEditable($newModel)) {
199
+            if ($redirectPolicy->get('create') == 'display' || !$model->isEditable($newModel)) {
200 200
                 $redirectUrl = $model->getDisplayUrl();
201 201
             }
202 202
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     {
236 236
         $item = $model->getRepository()->find($id);
237 237
 
238
-        if (is_null($item) || ! $model->isEditable($item)) {
238
+        if (is_null($item) || !$model->isEditable($item)) {
239 239
             abort(404);
240 240
         }
241 241
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
         $editForm = $model->fireEdit($id);
264 264
         $item = $editForm->getModel();
265 265
 
266
-        if (is_null($item) || ! $model->isEditable($item)) {
266
+        if (is_null($item) || !$model->isEditable($item)) {
267 267
             abort(404);
268 268
         }
269 269
 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 
343 343
         /* @var ColumnEditableInterface|null $column */
344 344
         if (is_callable([$display, 'getColumns'])) {
345
-            $column = $display->getColumns()->all()->filter(function ($column) use ($field) {
345
+            $column = $display->getColumns()->all()->filter(function($column) use ($field) {
346 346
                 return ($column instanceof ColumnEditableInterface) && $field == $column->getName();
347 347
             })->first();
348 348
         } else {
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
                     $content = $tab->getContent();
352 352
 
353 353
                     if ($content instanceof DisplayTable) {
354
-                        $column = $content->getColumns()->all()->filter(function ($column) use ($field) {
354
+                        $column = $content->getColumns()->all()->filter(function($column) use ($field) {
355 355
                             return ($column instanceof ColumnEditableInterface) && $field == $column->getName();
356 356
                         })->first();
357 357
                     }
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
 
361 361
                             //Return data-table if inside FormElements
362 362
                             if ($element instanceof DisplayTable) {
363
-                                $column = $element->getColumns()->all()->filter(function ($column) use ($field) {
363
+                                $column = $element->getColumns()->all()->filter(function($column) use ($field) {
364 364
                                     return ($column instanceof ColumnEditableInterface) && $field == $column->getName();
365 365
                                 })->first();
366 366
                             }
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
                             if ($element instanceof Column) {
370 370
                                 foreach ($element->getElements() as $columnElement) {
371 371
                                     if ($columnElement instanceof DisplayTable) {
372
-                                        $column = $columnElement->getColumns()->all()->filter(function ($column) use ($field) {
372
+                                        $column = $columnElement->getColumns()->all()->filter(function($column) use ($field) {
373 373
                                             return ($column instanceof ColumnEditableInterface) && $field == $column->getName();
374 374
                                         })->first();
375 375
                                     }
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
         $repository = $model->getRepository();
389 389
         $item = $repository->find($id);
390 390
 
391
-        if (is_null($item) || ! $model->isEditable($item)) {
391
+        if (is_null($item) || !$model->isEditable($item)) {
392 392
             abort(404);
393 393
         }
394 394
 
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
     {
414 414
         $item = $model->getRepository()->find($id);
415 415
 
416
-        if (is_null($item) || ! $model->isDeletable($item)) {
416
+        if (is_null($item) || !$model->isDeletable($item)) {
417 417
             abort(404);
418 418
         }
419 419
 
@@ -442,13 +442,13 @@  discard block
 block discarded – undo
442 442
      */
443 443
     public function deleteDestroy(ModelConfigurationInterface $model, Request $request, $id)
444 444
     {
445
-        if (! $model->isRestorableModel()) {
445
+        if (!$model->isRestorableModel()) {
446 446
             abort(404);
447 447
         }
448 448
 
449 449
         $item = $model->getRepository()->findOnlyTrashed($id);
450 450
 
451
-        if (is_null($item) || ! $model->isRestorable($item)) {
451
+        if (is_null($item) || !$model->isRestorable($item)) {
452 452
             abort(404);
453 453
         }
454 454
 
@@ -477,13 +477,13 @@  discard block
 block discarded – undo
477 477
      */
478 478
     public function postRestore(ModelConfigurationInterface $model, Request $request, $id)
479 479
     {
480
-        if (! $model->isRestorableModel()) {
480
+        if (!$model->isRestorableModel()) {
481 481
             abort(404);
482 482
         }
483 483
 
484 484
         $item = $model->getRepository()->findOnlyTrashed($id);
485 485
 
486
-        if (is_null($item) || ! $model->isRestorable($item)) {
486
+        if (is_null($item) || !$model->isRestorable($item)) {
487 487
             abort(404);
488 488
         }
489 489
 
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
      */
569 569
     protected function registerBreadcrumb($title, $parent)
570 570
     {
571
-        $this->breadcrumbs->register('render', function (Generator $breadcrumbs) use ($title, $parent) {
571
+        $this->breadcrumbs->register('render', function(Generator $breadcrumbs) use ($title, $parent) {
572 572
             $breadcrumbs->parent($parent);
573 573
             $breadcrumbs->push($title);
574 574
         });
@@ -584,8 +584,8 @@  discard block
 block discarded – undo
584 584
         $this->breadCrumbsData = $this->breadCrumbsData + (array) $model->getBreadCrumbs();
585 585
 
586 586
         foreach ($this->breadCrumbsData as  $breadcrumb) {
587
-            if (! $this->breadcrumbs->exists($breadcrumb['id'])) {
588
-                $this->breadcrumbs->register($breadcrumb['id'], function (Generator $breadcrumbs) use ($breadcrumb) {
587
+            if (!$this->breadcrumbs->exists($breadcrumb['id'])) {
588
+                $this->breadcrumbs->register($breadcrumb['id'], function(Generator $breadcrumbs) use ($breadcrumb) {
589 589
                     $breadcrumbs->parent($breadcrumb['parent']);
590 590
                     $breadcrumbs->push($breadcrumb['title'], $breadcrumb['url']);
591 591
                 });
Please login to merge, or discard this patch.
src/Display/Filter/FilterCustom.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
         parent::__construct($name, $title);
23 23
 
24
-        if (! is_null($callback)) {
24
+        if (!is_null($callback)) {
25 25
             $this->setCallback($callback);
26 26
         }
27 27
     }
Please login to merge, or discard this patch.
src/Display/Column/Custom.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function __construct($label = null, Closure $callback = null)
33 33
     {
34 34
         parent::__construct($label);
35
-        if (! is_null($callback)) {
35
+        if (!is_null($callback)) {
36 36
             $this->setCallback($callback);
37 37
         }
38 38
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function getModelValue()
68 68
     {
69
-        if (! is_callable($callback = $this->getCallback())) {
69
+        if (!is_callable($callback = $this->getCallback())) {
70 70
             throw new \Exception('Invalid custom column callback');
71 71
         }
72 72
 
Please login to merge, or discard this patch.
src/Form/Element/Upload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
         if ($request->input($this->getPath().'_remove')) {
44 44
             $this->setModelAttribute(null);
45
-        } elseif (! is_null($value)) {
45
+        } elseif (!is_null($value)) {
46 46
             $this->setModelAttribute($value);
47 47
         }
48 48
     }
Please login to merge, or discard this patch.
src/Form/Element/Images.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function storeAsJson()
17 17
     {
18
-        $this->mutateValue(function ($value) {
18
+        $this->mutateValue(function($value) {
19 19
             return json_encode($value);
20 20
         });
21 21
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function storeAsComaSeparatedValue()
31 31
     {
32
-        $this->mutateValue(function ($value) {
32
+        $this->mutateValue(function($value) {
33 33
             return implode(',', $value);
34 34
         });
35 35
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $name = $this->getName();
47 47
         $value = $request->input($name, '');
48 48
 
49
-        if (! empty($value)) {
49
+        if (!empty($value)) {
50 50
             $value = explode(',', $value);
51 51
         } else {
52 52
             $value = [];
Please login to merge, or discard this patch.
src/Form/Element/DateRange.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function getDefaultFrom()
33 33
     {
34
-        if (! $this->defaultFrom) {
34
+        if (!$this->defaultFrom) {
35 35
             $this->defaultFrom = Carbon::now();
36 36
         }
37 37
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function getDefaultTo()
59 59
     {
60
-        if (! $this->defaultTo) {
60
+        if (!$this->defaultTo) {
61 61
             $this->defaultTo = Carbon::now();
62 62
         }
63 63
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function setModelAttribute($value)
87 87
     {
88
-        $value = ! empty($value) ? array_map(function ($date) {
88
+        $value = !empty($value) ? array_map(function($date) {
89 89
             return Carbon::createFromFormat($this->getPickerFormat(), $date);
90 90
         }, explode('::', $value)) : null;
91 91
 
Please login to merge, or discard this patch.
src/Form/Element/DependentSelect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         $routeName = 'admin.form.element.dependent-select';
16 16
 
17
-        if (! $router->has($routeName)) {
17
+        if (!$router->has($routeName)) {
18 18
             $router->post('{adminModel}/dependent-select/{field}/{id?}', [
19 19
                 'as' => $routeName,
20 20
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\FormElementController@dependentSelect',
Please login to merge, or discard this patch.