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 ( ee0bb8...55d99f )
by
unknown
12:02
created
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/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/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/Image.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@
 block discarded – undo
27 27
      */
28 28
     public function customValidation(Validator $validator)
29 29
     {
30
-        $validator->after(function ($validator) {
30
+        $validator->after(function($validator) {
31 31
             /** @var \Illuminate\Http\UploadedFile $file */
32 32
             $file = array_get($validator->attributes(), 'file');
33 33
 
34 34
             $size = getimagesize($file->getRealPath());
35 35
 
36
-            if (! $size) {
36
+            if (!$size) {
37 37
                 $validator->errors()->add('file', trans('sleeping_owl::validation.not_image'));
38 38
             }
39 39
         });
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/Wysiwyg.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
      */
166 166
     public function setModelAttribute($value)
167 167
     {
168
-        if (! empty($this->filteredFieldKey)) {
168
+        if (!empty($this->filteredFieldKey)) {
169 169
             parent::setModelAttribute($value);
170 170
 
171 171
             $this->setModelAttributeKey($this->filteredFieldKey);
Please login to merge, or discard this patch.