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
Pull Request — master (#3747)
by
unknown
14:31 queued 12s
created
src/app/Library/CrudPanel/Traits/Create.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $all_relation_fields = $this->getRelationFields();
84 84
 
85
-        return Arr::where($all_relation_fields, function ($value, $key) {
85
+        return Arr::where($all_relation_fields, function($value, $key) {
86 86
             return isset($value['pivot']) && $value['pivot'];
87 87
         });
88 88
     }
@@ -161,11 +161,11 @@  discard block
 block discarded – undo
161 161
      */
162 162
     private function createRelationsForItem($item, $formattedData)
163 163
     {
164
-        if (! isset($formattedData['relations'])) {
164
+        if (!isset($formattedData['relations'])) {
165 165
             return false;
166 166
         }
167 167
         foreach ($formattedData['relations'] as $relationMethod => $relationData) {
168
-            if (! isset($relationData['model'])) {
168
+            if (!isset($relationData['model'])) {
169 169
                 continue;
170 170
             }
171 171
             $model = $relationData['model'];
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         $relation_fields = $this->parseRelationFieldNamesFromHtml($relation_fields);
220 220
 
221 221
         //remove fields that are not in the submitted form.
222
-        $relation_fields = array_filter($relation_fields, function ($item) use ($data) {
222
+        $relation_fields = array_filter($relation_fields, function($item) use ($data) {
223 223
             return Arr::has($data, $item['name']);
224 224
         });
225 225
 
@@ -230,10 +230,10 @@  discard block
 block discarded – undo
230 230
             if (isset($relation_field['pivot']) && $relation_field['pivot'] !== true) {
231 231
                 $key = implode('.relations.', explode('.', $this->getOnlyRelationEntity($relation_field)));
232 232
                 $fieldData = Arr::get($relationData, 'relations.'.$key, []);
233
-                if (! array_key_exists('model', $fieldData)) {
233
+                if (!array_key_exists('model', $fieldData)) {
234 234
                     $fieldData['model'] = $relation_field['model'];
235 235
                 }
236
-                if (! array_key_exists('parent', $fieldData)) {
236
+                if (!array_key_exists('parent', $fieldData)) {
237 237
                     $fieldData['parent'] = $this->getRelationModel($attributeKey, -1);
238 238
                 }
239 239
                 $relatedAttribute = Arr::last(explode('.', $attributeKey));
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 
255 255
         $related_method = Arr::last($entity_array);
256 256
 
257
-        if (! method_exists($relation_model, $related_method)) {
257
+        if (!method_exists($relation_model, $related_method)) {
258 258
             if (count($entity_array) <= 1) {
259 259
                 return $relation_field['entity'];
260 260
             } else {
Please login to merge, or discard this patch.