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 (#3272)
by
unknown
23:00
created
src/app/Library/CrudPanel/Traits/Create.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $all_relation_fields = $this->getRelationFields();
85 85
 
86
-        return Arr::where($all_relation_fields, function ($value, $key) {
86
+        return Arr::where($all_relation_fields, function($value, $key) {
87 87
             return isset($value['pivot']) && $value['pivot'];
88 88
         });
89 89
     }
@@ -162,11 +162,11 @@  discard block
 block discarded – undo
162 162
      */
163 163
     private function createRelationsForItem($item, $formattedData)
164 164
     {
165
-        if (! isset($formattedData['relations'])) {
165
+        if (!isset($formattedData['relations'])) {
166 166
             return false;
167 167
         }
168 168
         foreach ($formattedData['relations'] as $relationMethod => $relationData) {
169
-            if (! isset($relationData['model'])) {
169
+            if (!isset($relationData['model'])) {
170 170
                 continue;
171 171
             }
172 172
             $model = $relationData['model'];
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
                             ->where($relation->getForeignKeyName(), $item->{$relation->getLocalKeyName()})
227 227
                             ->update([$relation->getForeignKeyName() => $relationData['fallback_id']]);
228 228
             } else {
229
-                if (! $relation_column_is_nullable) {
229
+                if (!$relation_column_is_nullable) {
230 230
                     $modelInstance->whereNotIn($modelInstance->getKeyName(), $relationData['values'][$relationMethod])
231 231
                             ->where($relation->getForeignKeyName(), $item->{$relation->getLocalKeyName()})
232 232
                             ->delete();
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
                 $modelInstance->where($relation->getForeignKeyName(), $item->{$relation->getLocalKeyName()})
244 244
                             ->update([$relation->getForeignKeyName() => $relationData['fallback_id']]);
245 245
             } else {
246
-                if (! $relation_column_is_nullable) {
246
+                if (!$relation_column_is_nullable) {
247 247
                     $modelInstance->where($relation->getForeignKeyName(), $item->{$relation->getLocalKeyName()})->delete();
248 248
                 } else {
249 249
                     $modelInstance->where($relation->getForeignKeyName(), $item->{$relation->getLocalKeyName()})
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         if ($items->isEmpty()) {
267 267
             $relatedModel->where($relation->getForeignKeyName(), $entry->{$relation->getLocalKeyName()})->delete();
268 268
         } else {
269
-            $items->each(function (&$item, $key) use ($relatedId, $relation, $relatedModel) {
269
+            $items->each(function(&$item, $key) use ($relatedId, $relation, $relatedModel) {
270 270
                 $item[$relation->getForeignKeyName()] = $relatedId;
271 271
 
272 272
                 if (isset($item[$relatedModel->getKeyName()]) && $item[$relatedModel->getKeyName()] !== '') {
@@ -283,11 +283,11 @@  discard block
 block discarded – undo
283 283
 
284 284
             $relatedItemsSent = $items->pluck($relatedModel->getKeyName());
285 285
 
286
-            if (! $relatedItemsSent->isEmpty()) {
286
+            if (!$relatedItemsSent->isEmpty()) {
287 287
                 $itemsInDatabase = $entry->{$relationMethod};
288 288
                 //we perform the cleanup of removed database items
289
-                $itemsInDatabase->each(function ($item, $key) use ($relatedItemsSent) {
290
-                    if (! $relatedItemsSent->contains($item->getKey())) {
289
+                $itemsInDatabase->each(function($item, $key) use ($relatedItemsSent) {
290
+                    if (!$relatedItemsSent->contains($item->getKey())) {
291 291
                         $item->delete();
292 292
                     }
293 293
                 });
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
         foreach ($relation_fields as $relation_field) {
321 321
             $attributeKey = $this->parseRelationFieldNamesFromHtml([$relation_field])[0]['name'];
322 322
 
323
-            if (! is_null(Arr::get($data, $attributeKey)) && isset($relation_field['pivot']) && $relation_field['pivot'] !== true) {
323
+            if (!is_null(Arr::get($data, $attributeKey)) && isset($relation_field['pivot']) && $relation_field['pivot'] !== true) {
324 324
                 $key = implode('.relations.', explode('.', $this->getOnlyRelationEntity($relation_field)));
325 325
                 $fieldData = Arr::get($relationData, 'relations.'.$key, []);
326 326
 
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
 
355 355
         $related_method = Arr::last($entity_array);
356 356
 
357
-        if (! method_exists($relation_model, $related_method)) {
357
+        if (!method_exists($relation_model, $related_method)) {
358 358
             if (count($entity_array) <= 1) {
359 359
                 return $relation_field['entity'];
360 360
             } else {
Please login to merge, or discard this patch.