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 ( ed9166...b2510c )
by butschster
09:02 queued 02:41
created
src/Traits/SelectOptionsFromModel.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             $modelForOptions = app($modelForOptions);
60 60
         }
61 61
 
62
-        if (! ($modelForOptions instanceof Model)) {
62
+        if (!($modelForOptions instanceof Model)) {
63 63
             throw new SelectException('Class must be instanced of Illuminate\Database\Eloquent\Model');
64 64
         }
65 65
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     public function setFetchColumns($columns)
107 107
     {
108
-        if (! is_array($columns)) {
108
+        if (!is_array($columns)) {
109 109
             $columns = func_get_args();
110 110
         }
111 111
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
         $options = $repository->getQuery();
202 202
 
203
-        if ($this->isEmptyRelation() and ! is_null($foreignKey = $this->getForeignKey())) {
203
+        if ($this->isEmptyRelation() and !is_null($foreignKey = $this->getForeignKey())) {
204 204
             $relation = $this->getModelAttributeKey();
205 205
             $model = $this->getModel();
206 206
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         }
217 217
 
218 218
         // call the pre load options query preparer if has be set
219
-        if (! is_null($preparer = $this->getLoadOptionsQueryPreparer())) {
219
+        if (!is_null($preparer = $this->getLoadOptionsQueryPreparer())) {
220 220
             $options = $preparer($this, $options);
221 221
         }
222 222
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
             // iterate for all options and redefine it as
232 232
             // list of KEY and TEXT pair
233
-            $options = array_map(function ($opt) use ($key, $makeDisplay) {
233
+            $options = array_map(function($opt) use ($key, $makeDisplay) {
234 234
                 // get the KEY and make the display text
235 235
                 return [data_get($opt, $key), $makeDisplay($opt)];
236 236
             }, $options);
Please login to merge, or discard this patch.
src/Http/Controllers/DisplayController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $display = $model->fireDisplay();
60 60
 
61 61
         if ($display instanceof DisplayTabbed) {
62
-            $display->getTabs()->each(function ($tab) use ($request) {
62
+            $display->getTabs()->each(function($tab) use ($request) {
63 63
                 $content = $tab->getContent();
64 64
                 if ($content instanceof DisplayTree) {
65 65
                     $content->getRepository()->reorder(
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->hasOption('force') ? true : ! $installer->installed();
32
-            })->each(function ($installer) {
30
+            ->filter(function($installer) {
31
+                return $this->hasOption('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/Form/Element/MultiSelectAjax.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         parent::__construct($path, $label, $options);
28 28
 
29
-        $this->setLoadOptionsQueryPreparer(function ($item, $query) {
29
+        $this->setLoadOptionsQueryPreparer(function($item, $query) {
30 30
             $repository = app(RepositoryInterface::class);
31 31
             $repository->setModel($this->getModelForOptions());
32 32
             $key = $repository->getModel()->getKeyName();
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $routeName = 'admin.form.element.'.static::$route;
77 77
 
78
-        if (! $router->has($routeName)) {
78
+        if (!$router->has($routeName)) {
79 79
             $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', [
80 80
                 'as' => $routeName,
81 81
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\FormElementController@multiselectSearch',
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $attribute = $this->getModelAttributeKey();
111 111
 
112
-        if (! method_exists($this->getModel(), $attribute)) {
112
+        if (!method_exists($this->getModel(), $attribute)) {
113 113
             return;
114 114
         }
115 115
 
Please login to merge, or discard this patch.
src/Form/Element/SelectAjax.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         parent::__construct($path, $label);
25 25
 
26
-        $this->setLoadOptionsQueryPreparer(function ($item, $query) {
26
+        $this->setLoadOptionsQueryPreparer(function($item, $query) {
27 27
             $repository = app(RepositoryInterface::class);
28 28
             $repository->setModel($this->getModelForOptions());
29 29
             $key = $repository->getModel()->getKeyName();
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $routeName = 'admin.form.element.'.static::$route;
41 41
 
42
-        if (! $router->has($routeName)) {
42
+        if (!$router->has($routeName)) {
43 43
             $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', [
44 44
                 'as'   => $routeName,
45 45
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\FormElementController@selectSearch',
Please login to merge, or discard this patch.
src/Form/Element/File.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $routeName = 'admin.form.element.'.static::$route;
29 29
 
30
-        if (! $router->has($routeName)) {
30
+        if (!$router->has($routeName)) {
31 31
             $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', [
32 32
                 'as'   => $routeName,
33 33
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@fromField',
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function getUploadPath(UploadedFile $file)
129 129
     {
130
-        if (! is_callable($this->uploadPath)) {
130
+        if (!is_callable($this->uploadPath)) {
131 131
             return $this->defaultUploadPath($file);
132 132
         }
133 133
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function getUploadFileName(UploadedFile $file)
155 155
     {
156
-        if (! is_callable($this->uploadFileName)) {
156
+        if (!is_callable($this->uploadFileName)) {
157 157
             return $this->defaultUploadFilename($file);
158 158
         }
159 159
 
Please login to merge, or discard this patch.
src/Form/Element/NamedFormElement.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $name = array_shift($parts);
84 84
 
85
-        while (! empty($parts)) {
85
+        while (!empty($parts)) {
86 86
             $part = array_shift($parts);
87 87
             $name .= "[$part]";
88 88
         }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     {
236 236
         $this->addValidationRule('_unique');
237 237
 
238
-        if (! is_null($message)) {
238
+        if (!is_null($message)) {
239 239
             $this->addValidationMessage('unique', $message);
240 240
         }
241 241
 
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
      */
344 344
     public function getValueFromRequest(\Illuminate\Http\Request $request)
345 345
     {
346
-        if ($request->hasSession() && ! is_null($value = $request->old($this->getPath()))) {
346
+        if ($request->hasSession() && !is_null($value = $request->old($this->getPath()))) {
347 347
             return $value;
348 348
         }
349 349
 
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
      */
356 356
     public function getValueFromModel()
357 357
     {
358
-        if (! is_null($value = $this->getValueFromRequest(request()))) {
358
+        if (!is_null($value = $this->getValueFromRequest(request()))) {
359 359
             return $value;
360 360
         }
361 361
 
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         $path = $this->getPath();
364 364
         $value = $this->getDefaultValue();
365 365
 
366
-        if (is_null($model) or ! $model->exists) {
366
+        if (is_null($model) or !$model->exists) {
367 367
             return $value;
368 368
         }
369 369
 
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
         if ($count === 1) {
374 374
             $attribute = $model->getAttribute($this->getModelAttributeKey());
375 375
 
376
-            if (! empty($attribute) or is_null($value)) {
376
+            if (!empty($attribute) or is_null($value)) {
377 377
                 return $attribute;
378 378
             }
379 379
         }
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
             if ($count === 2) {
388 388
                 $attribute = $model->getAttribute($relation);
389 389
 
390
-                if (! empty($attribute) or is_null($value)) {
390
+                if (!empty($attribute) or is_null($value)) {
391 391
                     return $attribute;
392 392
                 }
393 393
             }
Please login to merge, or discard this patch.
src/Model/ModelConfiguration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public function can($action, Model $model)
205 205
     {
206
-        if (! $this->checkAccess) {
206
+        if (!$this->checkAccess) {
207 207
             return true;
208 208
         }
209 209
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
      */
216 216
     public function isCreatable()
217 217
     {
218
-        if (! is_callable($this->getCreate())) {
218
+        if (!is_callable($this->getCreate())) {
219 219
             return false;
220 220
         }
221 221
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      */
240 240
     public function isEditable(Model $model)
241 241
     {
242
-        if (! is_callable($this->getEdit())) {
242
+        if (!is_callable($this->getEdit())) {
243 243
             return false;
244 244
         }
245 245
 
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      */
362 362
     public function fireDisplay()
363 363
     {
364
-        if (! is_callable($this->getDisplay())) {
364
+        if (!is_callable($this->getDisplay())) {
365 365
             return;
366 366
         }
367 367
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
      */
403 403
     public function fireCreate()
404 404
     {
405
-        if (! is_callable($this->getCreate())) {
405
+        if (!is_callable($this->getCreate())) {
406 406
             return;
407 407
         }
408 408
 
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
      */
450 450
     public function fireEdit($id)
451 451
     {
452
-        if (! is_callable($this->getEdit())) {
452
+        if (!is_callable($this->getEdit())) {
453 453
             return;
454 454
         }
455 455
 
Please login to merge, or discard this patch.
src/Routing/ModelRouter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     protected function registerModelBindings(Collection $aliases)
60 60
     {
61
-        $this->router->bind('adminModel', function ($model, Route $route) use ($aliases) {
61
+        $this->router->bind('adminModel', function($model, Route $route) use ($aliases) {
62 62
             if (is_null($model = $aliases->get($model))) {
63 63
                 throw new ModelNotFoundException();
64 64
             }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     protected function runCustomController(Route $route, $controller, $action)
81 81
     {
82
-        $route->uses(function () use ($route, $controller, $action) {
82
+        $route->uses(function() use ($route, $controller, $action) {
83 83
             return (new \Illuminate\Routing\ControllerDispatcher($this->app))->dispatch(
84 84
                 $route, $this->app->make($controller), $action
85 85
             );
Please login to merge, or discard this patch.