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
Branch development (886517)
by butschster
06:42
created
src/Console/Installation/Command.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
28 28
      */
29 29
     public function fire(Filesystem $files)
30 30
     {
31
-        if (! defined('SLEEPINGOWL_STUB_PATH')) {
31
+        if (!defined('SLEEPINGOWL_STUB_PATH')) {
32 32
             define('SLEEPINGOWL_STUB_PATH', __DIR__.'/stubs');
33 33
         }
34 34
 
35
-        if (! $this->confirmToProceed('SleepingOwl Admin')) {
35
+        if (!$this->confirmToProceed('SleepingOwl Admin')) {
36 36
             return;
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/Form/FormElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
      */
130 130
     public function setValidationRules($validationRules)
131 131
     {
132
-        if (! is_array($validationRules)) {
132
+        if (!is_array($validationRules)) {
133 133
             $validationRules = func_get_args();
134 134
         }
135 135
 
Please login to merge, or discard this patch.
src/Form/Element/Checkbox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     public function save()
10 10
     {
11 11
         $name = $this->getName();
12
-        if (! Request::has($name)) {
12
+        if (!Request::has($name)) {
13 13
             Request::merge([$name => 0]);
14 14
         }
15 15
 
Please login to merge, or discard this patch.
src/Form/Element/Select.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             $modelForOptions = app($modelForOptions);
97 97
         }
98 98
 
99
-        if (! ($modelForOptions instanceof Model)) {
99
+        if (!($modelForOptions instanceof Model)) {
100 100
             throw new SelectException('Class must be instanced of Illuminate\Database\Eloquent\Model');
101 101
         }
102 102
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     public function getOptions()
132 132
     {
133
-        if (! is_null($this->getModelForOptions()) && ! is_null($this->getDisplay())) {
133
+        if (!is_null($this->getModelForOptions()) && !is_null($this->getDisplay())) {
134 134
             $this->loadOptions();
135 135
         }
136 136
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     public function setFetchColumns($columns)
239 239
     {
240
-        if (! is_array($columns)) {
240
+        if (!is_array($columns)) {
241 241
             $columns = func_get_args();
242 242
         }
243 243
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
      */
299 299
     public function exclude($keys)
300 300
     {
301
-        if (! is_array($keys)) {
301
+        if (!is_array($keys)) {
302 302
             $keys = func_get_args();
303 303
         }
304 304
 
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
         }
385 385
 
386 386
         // call the pre load options query preparer if has be set
387
-        if (! is_null($preparer = $this->getLoadOptionsQueryPreparer())) {
387
+        if (!is_null($preparer = $this->getLoadOptionsQueryPreparer())) {
388 388
             $options = $preparer($this, $options);
389 389
         }
390 390
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
 
402 402
             // iterate for all options and redefine it as
403 403
             // list of KEY and TEXT pair
404
-            $options = array_map(function ($opt) use ($key, $makeDisplay) {
404
+            $options = array_map(function($opt) use ($key, $makeDisplay) {
405 405
                 // get the KEY and make the display text
406 406
                 return [data_get($opt, $key), $makeDisplay($opt)];
407 407
             }, $options);
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
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function storeAsJson()
14 14
     {
15
-        $this->mutateValue(function ($value) {
15
+        $this->mutateValue(function($value) {
16 16
             return json_encode($value);
17 17
         });
18 18
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function storeAsComaSeparatedValue()
28 28
     {
29
-        $this->mutateValue(function ($value) {
29
+        $this->mutateValue(function($value) {
30 30
             return implode(',', $value);
31 31
         });
32 32
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $name = $this->getName();
39 39
         $value = Request::input($name, '');
40 40
 
41
-        if (! empty($value)) {
41
+        if (!empty($value)) {
42 42
             $value = explode(',', $value);
43 43
         } else {
44 44
             $value = [];
Please login to merge, or discard this patch.
src/Form/Element/MultiSelect.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
         if ($relation instanceof \Illuminate\Database\Eloquent\Relations\BelongsToMany) {
136 136
             foreach ($values as $i => $value) {
137
-                if (! array_key_exists($value, $this->getOptions()) and $this->isTaggable()) {
137
+                if (!array_key_exists($value, $this->getOptions()) and $this->isTaggable()) {
138 138
                     $model = clone $this->getModelForOptions();
139 139
                     $model->{$this->getDisplay()} = $value;
140 140
                     $model->save();
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $relation->sync($values);
147 147
         } elseif ($relation instanceof \Illuminate\Database\Eloquent\Relations\HasMany) {
148 148
             foreach ($relation->get() as $item) {
149
-                if (! in_array($item->getKey(), $values)) {
149
+                if (!in_array($item->getKey(), $values)) {
150 150
                     if ($this->isDeleteRelatedItem()) {
151 151
                         $item->delete();
152 152
                     } else {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                 $item = $model->find($value);
163 163
 
164 164
                 if (is_null($item)) {
165
-                    if (! $this->isTaggable()) {
165
+                    if (!$this->isTaggable()) {
166 166
                         continue;
167 167
                     }
168 168
 
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
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     {
14 14
         $value = $this->getValue();
15 15
 
16
-        if (! $this->isAllowedEmptyValue() and $this->getModel()->exists() and empty($value)) {
16
+        if (!$this->isAllowedEmptyValue() and $this->getModel()->exists() and empty($value)) {
17 17
             return;
18 18
         }
19 19
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $data = parent::getValidationRules();
29 29
 
30
-        if (! $this->isAllowedEmptyValue() and $this->getModel()->exists()) {
30
+        if (!$this->isAllowedEmptyValue() and $this->getModel()->exists()) {
31 31
             foreach ($data as $field => $rules) {
32 32
                 foreach ($rules as $i => $rule) {
33 33
                     if ($rule == 'required') {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function hashWithBcrypt()
65 65
     {
66
-        return $this->mutateValue(function ($value) {
66
+        return $this->mutateValue(function($value) {
67 67
             return bcrypt($value);
68 68
         });
69 69
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function hashWithMD5()
75 75
     {
76
-        return $this->mutateValue(function ($value) {
76
+        return $this->mutateValue(function($value) {
77 77
             return md5($value);
78 78
         });
79 79
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function hashWithSHA1()
85 85
     {
86
-        return $this->mutateValue(function ($value) {
86
+        return $this->mutateValue(function($value) {
87 87
             return sha1($value);
88 88
         });
89 89
     }
Please login to merge, or discard this patch.
src/Form/Element/NamedFormElement.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $name = array_shift($parts);
85 85
 
86
-        while (! empty($parts)) {
86
+        while (!empty($parts)) {
87 87
             $part = array_shift($parts);
88 88
             $name .= "[$part]";
89 89
         }
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     {
237 237
         $this->addValidationRule('_unique');
238 238
 
239
-        if (! is_null($message)) {
239
+        if (!is_null($message)) {
240 240
             $this->addValidationMessage('unique', $message);
241 241
         }
242 242
 
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      */
272 272
     public function getValueFromRequest()
273 273
     {
274
-        if (Request::hasSession() && ! is_null($value = Request::old($this->getPath()))) {
274
+        if (Request::hasSession() && !is_null($value = Request::old($this->getPath()))) {
275 275
             return $value;
276 276
         }
277 277
 
@@ -284,14 +284,14 @@  discard block
 block discarded – undo
284 284
      */
285 285
     public function getValue()
286 286
     {
287
-        if (! is_null($value = $this->getValueFromRequest())) {
287
+        if (!is_null($value = $this->getValueFromRequest())) {
288 288
             return $value;
289 289
         }
290 290
 
291 291
         $model = $this->getModel();
292 292
         $value = $this->getDefaultValue();
293 293
 
294
-        if (is_null($model) or ! $model->exists) {
294
+        if (is_null($model) or !$model->exists) {
295 295
             return $value;
296 296
         }
297 297
 
Please login to merge, or discard this patch.
src/Form/Element/File.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $routeName = 'admin.form.element.'.static::$route;
28 28
 
29
-        if (! $router->has($routeName)) {
30
-            $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', ['as' => $routeName, function (
29
+        if (!$router->has($routeName)) {
30
+            $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', ['as' => $routeName, function(
31 31
                 Request $request,
32 32
                 ModelConfigurationInterface $model,
33 33
                 $field,
34 34
                 $id = null
35 35
             ) {
36
-                if (! is_null($id)) {
36
+                if (!is_null($id)) {
37 37
                     $item = $model->getRepository()->find($id);
38
-                    if (is_null($item) || ! $model->isEditable($item)) {
38
+                    if (is_null($item) || !$model->isEditable($item)) {
39 39
                         return new JsonResponse([
40 40
                             'message' => trans('lang.message.access_denied'),
41 41
                         ], 403);
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
                     $form = $model->fireEdit($id);
45 45
                 } else {
46
-                    if (! $model->isCreatable()) {
46
+                    if (!$model->isCreatable()) {
47 47
                         return new JsonResponse([
48 48
                             'message' => trans('lang.message.access_denied'),
49 49
                         ], 403);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                 $labels = [];
57 57
                 $rules = static::defaultUploadValidationRules();
58 58
 
59
-                if (! is_null($element = $form->getElement($field))) {
59
+                if (!is_null($element = $form->getElement($field))) {
60 60
                     $rules = $element->getUploadValidationRules();
61 61
                     $messages = $element->getUploadValidationMessages();
62 62
                     $labels = $element->getUploadValidationLabels();
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 $file = $request->file('file');
77 77
 
78 78
                 /** @var File $element */
79
-                if (! is_null($element = $form->getElement($field))) {
79
+                if (!is_null($element = $form->getElement($field))) {
80 80
                     $filename = $element->getUploadFileName($file);
81 81
                     $path = $element->getUploadPath($file);
82 82
                     $settings = $element->getUploadSettings();
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function getUploadPath(UploadedFile $file)
204 204
     {
205
-        if (! is_callable($this->uploadPath)) {
205
+        if (!is_callable($this->uploadPath)) {
206 206
             return static::defaultUploadPath($file);
207 207
         }
208 208
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     public function getUploadFileName(UploadedFile $file)
230 230
     {
231
-        if (! is_callable($this->uploadFileName)) {
231
+        if (!is_callable($this->uploadFileName)) {
232 232
             return static::defaultUploadFilename($file);
233 233
         }
234 234
 
Please login to merge, or discard this patch.