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 (#3196)
by Cristian
31:25 queued 15:29
created
src/app/Library/CrudPanel/Traits/Create.php 1 patch
Spacing   +6 added lines, -6 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
     }
@@ -163,11 +163,11 @@  discard block
 block discarded – undo
163 163
      */
164 164
     private function createRelationsForItem($item, $formattedData)
165 165
     {
166
-        if (! isset($formattedData['relations'])) {
166
+        if (!isset($formattedData['relations'])) {
167 167
             return false;
168 168
         }
169 169
         foreach ($formattedData['relations'] as $relationMethod => $relationData) {
170
-            if (! isset($relationData['model'])) {
170
+            if (!isset($relationData['model'])) {
171 171
                 continue;
172 172
             }
173 173
             $model = $relationData['model'];
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                             ->update([$relation->getForeignKeyName() => $item->{$relation->getLocalKeyName()}]);
197 197
 
198 198
                     //we clear up any values that were removed from model relation.
199
-                    if (! $modelInstance->isColumnNullable($relation->getForeignKeyName())) {
199
+                    if (!$modelInstance->isColumnNullable($relation->getForeignKeyName())) {
200 200
                         $modelInstance->whereNotIn($modelInstance->getKeyName(), $relationData['values'][$relationMethod])
201 201
                                 ->where($relation->getForeignKeyName(), $item->{$relation->getLocalKeyName()})
202 202
                                 ->delete();
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                     }
208 208
                 } else {
209 209
                     //if the foreign key is not nullable we delete the record from the table.
210
-                    if (! $modelInstance->isColumnNullable($relation->getForeignKeyName())) {
210
+                    if (!$modelInstance->isColumnNullable($relation->getForeignKeyName())) {
211 211
                         $modelInstance->where($relation->getForeignKeyName(), $item->{$relation->getLocalKeyName()})->delete();
212 212
                     } else {
213 213
                         $modelInstance->where($relation->getForeignKeyName(), $item->{$relation->getLocalKeyName()})
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 
275 275
         $related_method = Arr::last($entity_array);
276 276
 
277
-        if (! method_exists($relation_model, $related_method)) {
277
+        if (!method_exists($relation_model, $related_method)) {
278 278
             if (count($entity_array) <= 1) {
279 279
                 return $relation_field['entity'];
280 280
             } else {
Please login to merge, or discard this patch.