We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -82,7 +82,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 { |