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/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.
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.
src/Providers/BreadcrumbsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function register()
22 22
     {
23
-        $this->app->singleton('sleeping_owl.breadcrumbs', function () {
23
+        $this->app->singleton('sleeping_owl.breadcrumbs', function() {
24 24
             return $this->app->make(\SleepingOwl\Admin\Templates\Breadcrumbs::class);
25 25
         });
26 26
     }
Please login to merge, or discard this patch.
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.