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 — poc-upload-non-breaking ( f21faf...7026bf )
by Pedro
43:19 queued 28:18
created
src/app/Models/Traits/HasEnumFields.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
 
24 24
         try {
25 25
             $select = app()->version() < 10 ?
26
-                        DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"') :
27
-                        DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"')->getValue($connection->getQueryGrammar());
26
+                        DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"') : DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"')->getValue($connection->getQueryGrammar());
28 27
 
29 28
             $type = $connection->select($select)[0]->Type;
30 29
         } catch (\Exception $e) {
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Fields.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function afterField($targetFieldName)
136 136
     {
137
-        $this->transformFields(function ($fields) use ($targetFieldName) {
137
+        $this->transformFields(function($fields) use ($targetFieldName) {
138 138
             return $this->moveField($fields, $targetFieldName, false);
139 139
         });
140 140
     }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function beforeField($targetFieldName)
148 148
     {
149
-        $this->transformFields(function ($fields) use ($targetFieldName) {
149
+        $this->transformFields(function($fields) use ($targetFieldName) {
150 150
             return $this->moveField($fields, $targetFieldName, true);
151 151
         });
152 152
     }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function makeFirstField()
160 160
     {
161
-        if (! $this->fields()) {
161
+        if (!$this->fields()) {
162 162
             return false;
163 163
         }
164 164
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      */
174 174
     public function removeField($name)
175 175
     {
176
-        $this->transformFields(function ($fields) use ($name) {
176
+        $this->transformFields(function($fields) use ($name) {
177 177
             Arr::forget($fields, $name);
178 178
 
179 179
             return $fields;
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      */
188 188
     public function removeFields($array_of_names)
189 189
     {
190
-        if (! empty($array_of_names)) {
190
+        if (!empty($array_of_names)) {
191 191
             foreach ($array_of_names as $name) {
192 192
                 $this->removeField($name);
193 193
             }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     public function removeAllFields()
201 201
     {
202 202
         $current_fields = $this->getCleanStateFields();
203
-        if (! empty($current_fields)) {
203
+        if (!empty($current_fields)) {
204 204
             foreach ($current_fields as $field) {
205 205
                 $this->removeField($field['name']);
206 206
             }
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
                 $jsonCastables = ['array', 'object', 'json'];
296 296
                 $fieldCasting = $casted_attributes[$field['name']];
297 297
 
298
-                if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && ! empty($input[$field['name']]) && ! is_array($input[$field['name']])) {
298
+                if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && !empty($input[$field['name']]) && !is_array($input[$field['name']])) {
299 299
                     try {
300 300
                         $input[$field['name']] = json_decode($input[$field['name']]);
301 301
                     } catch (\Exception $e) {
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
      */
325 325
     public function orderFields($order)
326 326
     {
327
-        $this->transformFields(function ($fields) use ($order) {
327
+        $this->transformFields(function($fields) use ($order) {
328 328
             return $this->applyOrderToFields($fields, $order);
329 329
         });
330 330
     }
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
     public function hasUploadFields()
351 351
     {
352 352
         $fields = $this->getCleanStateFields();
353
-        $upload_fields = Arr::where($fields, function ($value, $key) {
353
+        $upload_fields = Arr::where($fields, function($value, $key) {
354 354
             if (isset($value['subfields'])) {
355 355
                 foreach ($value['subfields'] as $subfield) {
356 356
                     if (isset($subfield['upload']) && $subfield['upload'] === true) {
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
         $alreadyLoaded = $this->getLoadedFieldTypes();
422 422
         $type = $this->getFieldTypeWithNamespace($field);
423 423
 
424
-        if (! in_array($type, $this->getLoadedFieldTypes(), true)) {
424
+        if (!in_array($type, $this->getLoadedFieldTypes(), true)) {
425 425
             $alreadyLoaded[] = $type;
426 426
             $this->setLoadedFieldTypes($alreadyLoaded);
427 427
 
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
      */
463 463
     public function fieldTypeNotLoaded($field)
464 464
     {
465
-        return ! in_array($this->getFieldTypeWithNamespace($field), $this->getLoadedFieldTypes());
465
+        return !in_array($this->getFieldTypeWithNamespace($field), $this->getLoadedFieldTypes());
466 466
     }
467 467
 
468 468
     /**
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
      */
512 512
     public function hasFieldWhere($attribute, $value)
513 513
     {
514
-        $match = Arr::first($this->getCleanStateFields(), function ($field, $fieldKey) use ($attribute, $value) {
514
+        $match = Arr::first($this->getCleanStateFields(), function($field, $fieldKey) use ($attribute, $value) {
515 515
             return isset($field[$attribute]) && $field[$attribute] == $value;
516 516
         });
517 517
 
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
      */
528 528
     public function firstFieldWhere($attribute, $value)
529 529
     {
530
-        return Arr::first($this->getCleanStateFields(), function ($field, $fieldKey) use ($attribute, $value) {
530
+        return Arr::first($this->getCleanStateFields(), function($field, $fieldKey) use ($attribute, $value) {
531 531
             return isset($field[$attribute]) && $field[$attribute] == $value;
532 532
         });
533 533
     }
Please login to merge, or discard this patch.