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.
Passed
Branch development (184ec4)
by butschster
06:08
created
src/Templates/Breadcrumbs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             list($name, $params) = $this->currentRoute->get();
35 35
         }
36 36
 
37
-        if (! $this->exists($name)) {
37
+        if (!$this->exists($name)) {
38 38
             return '';
39 39
         }
40 40
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function renderIfExistsArray($name, $params = [])
62 62
     {
63
-        if (! $this->exists($name)) {
63
+        if (!$this->exists($name)) {
64 64
             return '';
65 65
         }
66 66
 
Please login to merge, or discard this patch.
src/Model/ModelConfigurationManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
         $this->repository = $app->make(RepositoryInterface::class);
116 116
         $this->repository->setClass($class);
117
-        if (! $this->alias) {
117
+        if (!$this->alias) {
118 118
             $this->setDefaultAlias();
119 119
         }
120 120
     }
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      */
304 304
     public function can($action, Model $model)
305 305
     {
306
-        if (! $this->checkAccess) {
306
+        if (!$this->checkAccess) {
307 307
             return true;
308 308
         }
309 309
 
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
      */
336 336
     public function hasCustomControllerClass()
337 337
     {
338
-        return ! is_null($controller = $this->getControllerClass()) and class_exists($controller);
338
+        return !is_null($controller = $this->getControllerClass()) and class_exists($controller);
339 339
     }
340 340
 
341 341
     /**
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
         $page->setPriority($priority);
473 473
 
474 474
         if ($badge) {
475
-            if (! ($badge instanceof BadgeInterface)) {
475
+            if (!($badge instanceof BadgeInterface)) {
476 476
                 $badge = new Badge($badge);
477 477
             }
478 478
 
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
      */
516 516
     public function fireEvent($event, $halt = true, Model $model = null, ...$payload)
517 517
     {
518
-        if (! isset(self::$dispatcher)) {
518
+        if (!isset(self::$dispatcher)) {
519 519
             return true;
520 520
         }
521 521
 
Please login to merge, or discard this patch.
src/Display/DisplayDatatablesAsync.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public static function registerRoutes(Router $router)
25 25
     {
26 26
         $routeName = 'admin.display.async';
27
-        if (! $router->has($routeName)) {
27
+        if (!$router->has($routeName)) {
28 28
             $router->get('{adminModel}/async/{adminDisplayName?}', [
29 29
                 'as' => $routeName,
30 30
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\DisplayController@async',
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         }
33 33
 
34 34
         $routeName = 'admin.display.async.inlineEdit';
35
-        if (! $router->has($routeName)) {
35
+        if (!$router->has($routeName)) {
36 36
             $router->post('{adminModel}/async/{adminDisplayName?}', [
37 37
                 'as' => $routeName,
38 38
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\AdminController@inlineEdit',
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         $totalCount = $query->count();
143 143
         $filteredCount = 0;
144 144
 
145
-        if (! is_null($this->distinct)) {
145
+        if (!is_null($this->distinct)) {
146 146
             $filteredCount = $query->distinct()->count($this->getDistinct());
147 147
         }
148 148
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             return;
191 191
         }
192 192
 
193
-        $query->where(function ($query) use ($search) {
193
+        $query->where(function($query) use ($search) {
194 194
             $columns = $this->getColumns()->all();
195 195
             foreach ($columns as $column) {
196 196
                 if (in_array(get_class($column), $this->searchableColumns)) {
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/Display/Column/NamedColumn.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function setOrderable($orderable = true)
75 75
     {
76
-        if ($orderable !== false && ! $orderable instanceof OrderByClauseInterface) {
77
-            if (! is_string($orderable) && ! $orderable instanceof Closure) {
76
+        if ($orderable !== false && !$orderable instanceof OrderByClauseInterface) {
77
+            if (!is_string($orderable) && !$orderable instanceof Closure) {
78 78
                 $orderable = $this->getName();
79 79
             }
80 80
         }
@@ -113,11 +113,11 @@  discard block
 block discarded – undo
113 113
 
114 114
         if ($instance instanceof Collection) {
115 115
             $instance = $instance->pluck($part);
116
-        } elseif (! is_null($instance)) {
116
+        } elseif (!is_null($instance)) {
117 117
             $instance = $instance->getAttribute($part);
118 118
         }
119 119
 
120
-        if (! empty($parts) && ! is_null($instance)) {
120
+        if (!empty($parts) && !is_null($instance)) {
121 121
             return $this->getValueFromObject($instance, implode('.', $parts));
122 122
         }
123 123
 
Please login to merge, or discard this patch.
src/Display/Display.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             $this->title,
191 191
         ];
192 192
 
193
-        $this->getExtensions()->each(function (DisplayExtensionInterface $extension) use (&$titles) {
193
+        $this->getExtensions()->each(function(DisplayExtensionInterface $extension) use (&$titles) {
194 194
             if (method_exists($extension, $method = 'getTitle')) {
195 195
                 $titles[] = call_user_func([$extension, $method]);
196 196
             }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 
239 239
         foreach ($blocks as $block => $data) {
240 240
             foreach ($data as $html) {
241
-                if (! empty($html)) {
241
+                if (!empty($html)) {
242 242
                     $view->getFactory()->startSection($block);
243 243
                     echo $html;
244 244
                     $view->getFactory()->yieldSection();
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
     protected function makeRepository()
288 288
     {
289 289
         $repository = app($this->repositoryClass);
290
-        if (! ($repository instanceof RepositoryInterface)) {
290
+        if (!($repository instanceof RepositoryInterface)) {
291 291
             throw new \Exception('Repository class must be instanced of [RepositoryInterface]');
292 292
         }
293 293
 
Please login to merge, or discard this patch.
src/Form/FormDefault.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -100,12 +100,12 @@  discard block
 block discarded – undo
100 100
 
101 101
         parent::initialize();
102 102
 
103
-        if (! $this->hasHtmlAttribute('enctype')) {
103
+        if (!$this->hasHtmlAttribute('enctype')) {
104 104
             // Try to find upload element
105
-            $this->getElements()->each(function ($element) {
105
+            $this->getElements()->each(function($element) {
106 106
 
107 107
                 // TODO: this not works withs nested elements
108
-                if ($element instanceof Upload and ! $this->hasHtmlAttribute('enctype')) {
108
+                if ($element instanceof Upload and !$this->hasHtmlAttribute('enctype')) {
109 109
                     $this->setHtmlAttribute('enctype', 'multipart/form-data');
110 110
                 }
111 111
             });
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     public function setItems($items)
212 212
     {
213
-        if (! is_array($items)) {
213
+        if (!is_array($items)) {
214 214
             $items = func_get_args();
215 215
         }
216 216
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     public function setId($id)
239 239
     {
240
-        if (is_null($this->id) and ! is_null($id) and ($model = $this->getRepository()->find($id))) {
240
+        if (is_null($this->id) and !is_null($id) and ($model = $this->getRepository()->find($id))) {
241 241
             $this->id = $id;
242 242
 
243 243
             parent::setModel($model);
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
      */
299 299
     public function saveForm(\Illuminate\Http\Request $request, ModelConfigurationInterface $modelConfiguration = null)
300 300
     {
301
-        if (! $this->validModelConfiguration($modelConfiguration)) {
301
+        if (!$this->validModelConfiguration($modelConfiguration)) {
302 302
             return false;
303 303
         }
304 304
 
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
     protected function saveBelongsToRelations(Model $model)
339 339
     {
340 340
         foreach ($model->getRelations() as $name => $relation) {
341
-            if ($model->{$name}() instanceof BelongsTo && ! is_null($relation)) {
341
+            if ($model->{$name}() instanceof BelongsTo && !is_null($relation)) {
342 342
                 $relation->save();
343 343
                 $model->{$name}()->associate($relation);
344 344
             }
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     protected function saveHasOneRelations(Model $model)
354 354
     {
355 355
         foreach ($model->getRelations() as $name => $relation) {
356
-            if ($model->{$name}() instanceof HasOneOrMany && ! is_null($relation)) {
356
+            if ($model->{$name}() instanceof HasOneOrMany && !is_null($relation)) {
357 357
                 if (is_array($relation) || $relation instanceof \Traversable) {
358 358
                     $model->{$name}()->saveMany($relation);
359 359
                 } else {
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
      */
372 372
     public function validateForm(\Illuminate\Http\Request $request, ModelConfigurationInterface $modelConfiguration = null)
373 373
     {
374
-        if (! $this->validModelConfiguration($modelConfiguration)) {
374
+        if (!$this->validModelConfiguration($modelConfiguration)) {
375 375
             return;
376 376
         }
377 377
 
Please login to merge, or discard this patch.
src/Form/Element/Password.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $value = $this->getValueFromModel();
25 25
 
26
-        if (! $this->isAllowedEmptyValue() and $this->getModel()->exists and empty($value)) {
26
+        if (!$this->isAllowedEmptyValue() and $this->getModel()->exists and empty($value)) {
27 27
             return;
28 28
         }
29 29
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $data = parent::getValidationRules();
39 39
 
40
-        if (! $this->isAllowedEmptyValue() and $this->getModel()->exists) {
40
+        if (!$this->isAllowedEmptyValue() and $this->getModel()->exists) {
41 41
             foreach ($data as $field => $rules) {
42 42
                 foreach ($rules as $i => $rule) {
43 43
                     if ($rule == 'required') {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function hashWithBcrypt()
75 75
     {
76
-        return $this->mutateValue(function ($value) {
76
+        return $this->mutateValue(function($value) {
77 77
             return bcrypt($value);
78 78
         });
79 79
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function hashWithMD5()
85 85
     {
86
-        return $this->mutateValue(function ($value) {
86
+        return $this->mutateValue(function($value) {
87 87
             return md5($value);
88 88
         });
89 89
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function hashWithSHA1()
95 95
     {
96
-        return $this->mutateValue(function ($value) {
96
+        return $this->mutateValue(function($value) {
97 97
             return sha1($value);
98 98
         });
99 99
     }
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
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $routeName = 'admin.form.element.'.static::$route;
24 24
 
25
-        if (! $router->has($routeName)) {
25
+        if (!$router->has($routeName)) {
26 26
             $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', [
27 27
                 'as' => $routeName,
28 28
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@fromField',
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function getUploadPath(UploadedFile $file)
93 93
     {
94
-        if (! is_callable($this->uploadPath)) {
94
+        if (!is_callable($this->uploadPath)) {
95 95
             return $this->defaultUploadPath($file);
96 96
         }
97 97
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function getUploadFileName(UploadedFile $file)
119 119
     {
120
-        if (! is_callable($this->uploadFileName)) {
120
+        if (!is_callable($this->uploadFileName)) {
121 121
             return $this->defaultUploadFilename($file);
122 122
         }
123 123
 
Please login to merge, or discard this patch.