Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Push — crud-uploads ( 044930 )
by Pedro
11:38
created
src/app/Library/CrudPanel/Traits/Fields.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $this->enableTabsIfFieldUsesThem($field);
111 111
         $this->addFieldToOperationSettings($field);
112 112
 
113
-        if (! app('UploadStore')->isUploadHandled($field['name'])) {
113
+        if (!app('UploadStore')->isUploadHandled($field['name'])) {
114 114
             $crudFieldObject = (new CrudField($field['name']));
115 115
 
116 116
             foreach ($field as $attribute => $value) {
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function afterField($targetFieldName)
146 146
     {
147
-        $this->transformFields(function ($fields) use ($targetFieldName) {
147
+        $this->transformFields(function($fields) use ($targetFieldName) {
148 148
             return $this->moveField($fields, $targetFieldName, false);
149 149
         });
150 150
     }
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function beforeField($targetFieldName)
158 158
     {
159
-        $this->transformFields(function ($fields) use ($targetFieldName) {
159
+        $this->transformFields(function($fields) use ($targetFieldName) {
160 160
             return $this->moveField($fields, $targetFieldName, true);
161 161
         });
162 162
     }
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     public function makeFirstField()
170 170
     {
171
-        if (! $this->fields()) {
171
+        if (!$this->fields()) {
172 172
             return false;
173 173
         }
174 174
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function removeField($name)
185 185
     {
186
-        $this->transformFields(function ($fields) use ($name) {
186
+        $this->transformFields(function($fields) use ($name) {
187 187
             Arr::forget($fields, $name);
188 188
 
189 189
             return $fields;
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      */
198 198
     public function removeFields($array_of_names)
199 199
     {
200
-        if (! empty($array_of_names)) {
200
+        if (!empty($array_of_names)) {
201 201
             foreach ($array_of_names as $name) {
202 202
                 $this->removeField($name);
203 203
             }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     public function removeAllFields()
211 211
     {
212 212
         $current_fields = $this->getCleanStateFields();
213
-        if (! empty($current_fields)) {
213
+        if (!empty($current_fields)) {
214 214
             foreach ($current_fields as $field) {
215 215
                 $this->removeField($field['name']);
216 216
             }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
                 $jsonCastables = ['array', 'object', 'json'];
306 306
                 $fieldCasting = $casted_attributes[$field['name']];
307 307
 
308
-                if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && ! empty($input[$field['name']]) && ! is_array($input[$field['name']])) {
308
+                if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && !empty($input[$field['name']]) && !is_array($input[$field['name']])) {
309 309
                     try {
310 310
                         $input[$field['name']] = json_decode($input[$field['name']]);
311 311
                     } catch (\Exception $e) {
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
      */
335 335
     public function orderFields($order)
336 336
     {
337
-        $this->transformFields(function ($fields) use ($order) {
337
+        $this->transformFields(function($fields) use ($order) {
338 338
             return $this->applyOrderToFields($fields, $order);
339 339
         });
340 340
     }
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
     public function hasUploadFields()
361 361
     {
362 362
         $fields = $this->getCleanStateFields();
363
-        $upload_fields = Arr::where($fields, function ($value, $key) {
363
+        $upload_fields = Arr::where($fields, function($value, $key) {
364 364
             if (isset($value['subfields'])) {
365 365
                 foreach ($value['subfields'] as $subfield) {
366 366
                     if (isset($subfield['upload']) && $subfield['upload'] === true) {
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
         $alreadyLoaded = $this->getLoadedFieldTypes();
432 432
         $type = $this->getFieldTypeWithNamespace($field);
433 433
 
434
-        if (! in_array($type, $this->getLoadedFieldTypes(), true)) {
434
+        if (!in_array($type, $this->getLoadedFieldTypes(), true)) {
435 435
             $alreadyLoaded[] = $type;
436 436
             $this->setLoadedFieldTypes($alreadyLoaded);
437 437
 
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
      */
473 473
     public function fieldTypeNotLoaded($field)
474 474
     {
475
-        return ! in_array($this->getFieldTypeWithNamespace($field), $this->getLoadedFieldTypes());
475
+        return !in_array($this->getFieldTypeWithNamespace($field), $this->getLoadedFieldTypes());
476 476
     }
477 477
 
478 478
     /**
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
      */
522 522
     public function hasFieldWhere($attribute, $value)
523 523
     {
524
-        $match = Arr::first($this->getCleanStateFields(), function ($field, $fieldKey) use ($attribute, $value) {
524
+        $match = Arr::first($this->getCleanStateFields(), function($field, $fieldKey) use ($attribute, $value) {
525 525
             return isset($field[$attribute]) && $field[$attribute] == $value;
526 526
         });
527 527
 
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
      */
538 538
     public function firstFieldWhere($attribute, $value)
539 539
     {
540
-        return Arr::first($this->getCleanStateFields(), function ($field, $fieldKey) use ($attribute, $value) {
540
+        return Arr::first($this->getCleanStateFields(), function($field, $fieldKey) use ($attribute, $value) {
541 541
             return isset($field[$attribute]) && $field[$attribute] == $value;
542 542
         });
543 543
     }
Please login to merge, or discard this patch.