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

Test Setup Failed
Pull Request — master (#2349)
by Mustafa
07:05
created
src/app/Library/CrudPanel/Traits/Update.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         foreach ($fields as &$field) {
52 52
             // set the value
53
-            if (! isset($field['value'])) {
53
+            if (!isset($field['value'])) {
54 54
                 if (isset($field['subfields'])) {
55 55
                     $field['value'] = [];
56 56
                     foreach ($field['subfields'] as $subfield) {
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
                     }
59 59
 
60 60
                     // handle fake fields
61
-                } elseif (! empty($field['fake'])) {
61
+                } elseif (!empty($field['fake'])) {
62 62
                     // determine the stored-in attribute
63 63
                     $fakeStoredInAttribute = $field['store_in'] ?? 'extras';
64 64
                     // check if the fake stored-in attribute exists
65
-                    if (! empty($entry->{$fakeStoredInAttribute})) {
65
+                    if (!empty($entry->{$fakeStoredInAttribute})) {
66 66
                         $fakeStoredInArray = $entry->{$fakeStoredInAttribute};
67 67
                         // check if it's a string, decode it
68 68
                         // otherwise, it should be an array
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                             $fakeStoredInArray = json_decode($fakeStoredInArray, true);
72 72
                         }
73 73
 
74
-                        if (! empty($fakeStoredInArray) && is_array($fakeStoredInArray) && isset($fakeStoredInArray[$field['name']])) {
74
+                        if (!empty($fakeStoredInArray) && is_array($fakeStoredInArray) && isset($fakeStoredInArray[$field['name']])) {
75 75
                             $field['value'] = $fakeStoredInArray[$field['name']];
76 76
                         }
77 77
                     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         }
83 83
 
84 84
         // always have a hidden input for the entry id
85
-        if (! array_key_exists('id', $fields)) {
85
+        if (!array_key_exists('id', $fields)) {
86 86
             $fields['id'] = [
87 87
                 'name'  => $entry->getKeyName(),
88 88
                 'value' => $entry->getKey(),
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     {
106 106
         if (isset($field['entity'])) {
107 107
             $relationArray = explode('.', $field['entity']);
108
-            $relatedModel = array_reduce(array_splice($relationArray, 0, -1), function ($obj, $method) {
108
+            $relatedModel = array_reduce(array_splice($relationArray, 0, -1), function($obj, $method) {
109 109
                 return $obj->{$method} ? $obj->{$method} : $obj;
110 110
             }, $model);
111 111
 
Please login to merge, or discard this patch.