We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | // always have a hidden input for the entry id |
50 | - if (! array_key_exists('id', $fields)) { |
|
50 | + if (!array_key_exists('id', $fields)) { |
|
51 | 51 | $fields['id'] = [ |
52 | 52 | 'name' => $entry->getKeyName(), |
53 | 53 | 'value' => $entry->getKey(), |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $fieldEntity = $field['entity'] ?? false; |
73 | 73 | $fakeField = $field['fake'] ?? false; |
74 | 74 | |
75 | - if ($fieldEntity && ! $fakeField) { |
|
75 | + if ($fieldEntity && !$fakeField) { |
|
76 | 76 | return $this->getModelAttributeValueFromRelationship($model, $field); |
77 | 77 | } |
78 | 78 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | { |
103 | 103 | [$relatedModel, $relationMethod] = $this->getModelAndMethodFromEntity($model, $field); |
104 | 104 | |
105 | - if (! method_exists($relatedModel, $relationMethod)) { |
|
105 | + if (!method_exists($relatedModel, $relationMethod)) { |
|
106 | 106 | return $relatedModel->{$relationMethod}; |
107 | 107 | } |
108 | 108 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $model = $this->setupRelatedModelLocale($model); |
122 | 122 | // when subfields are NOT set we don't need to get any more values |
123 | 123 | // we just return the plain models as we only need the ids |
124 | - if (! isset($field['subfields'])) { |
|
124 | + if (!isset($field['subfields'])) { |
|
125 | 125 | $result->push($model); |
126 | 126 | continue; |
127 | 127 | } |
@@ -148,13 +148,13 @@ discard block |
||
148 | 148 | break; |
149 | 149 | case 'HasOne': |
150 | 150 | case 'MorphOne': |
151 | - if (! method_exists($relatedModel, $relationMethod)) { |
|
151 | + if (!method_exists($relatedModel, $relationMethod)) { |
|
152 | 152 | return; |
153 | 153 | } |
154 | 154 | |
155 | 155 | $model = $relatedModel->{$relationMethod}; |
156 | 156 | |
157 | - if (! $model) { |
|
157 | + if (!$model) { |
|
158 | 158 | return; |
159 | 159 | } |
160 | 160 | |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | |
236 | 236 | $relationArray = explode('.', $relationEntity); |
237 | 237 | |
238 | - $relatedModel = array_reduce(array_splice($relationArray, 0, -1), function ($obj, $method) { |
|
238 | + $relatedModel = array_reduce(array_splice($relationArray, 0, -1), function($obj, $method) { |
|
239 | 239 | // if the string ends with `_id` we strip it out |
240 | 240 | $method = Str::endsWith($method, '_id') ? Str::replaceLast('_id', '', $method) : $method; |
241 | 241 | |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | // if the subfield name does not contain a dot we just need to check |
263 | 263 | // if it has subfields and return the result accordingly. |
264 | 264 | foreach ((array) $subfield['name'] as $name) { |
265 | - if (! Str::contains($name, '.')) { |
|
265 | + if (!Str::contains($name, '.')) { |
|
266 | 266 | // when subfields are present, $relatedModel->{$name} returns a model instance |
267 | 267 | // otherwise returns the model attribute. |
268 | 268 | if ($relatedModel->{$name}) { |
@@ -293,6 +293,6 @@ discard block |
||
293 | 293 | |
294 | 294 | public function hideDeleteButton(): void |
295 | 295 | { |
296 | - $this->set($this->getOperation() . '.hideDeleteButton', true); |
|
296 | + $this->set($this->getOperation().'.hideDeleteButton', true); |
|
297 | 297 | } |
298 | 298 | } |