We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -52,9 +52,9 @@ |
||
52 | 52 | public function checkIfFieldNameBelongsToAnyRelation($fieldName) |
53 | 53 | { |
54 | 54 | $relations = $this->getAvailableRelationsInModel(); |
55 | - if (! empty($relations)) { |
|
55 | + if (!empty($relations)) { |
|
56 | 56 | if (in_array($fieldName, array_column($relations, 'name'))) { |
57 | - return array_filter($relations, function ($arr) use ($fieldName) { |
|
57 | + return array_filter($relations, function($arr) use ($fieldName) { |
|
58 | 58 | if (isset($arr['name'])) { |
59 | 59 | return $arr['name'] == $fieldName; |
60 | 60 | } |
@@ -84,10 +84,10 @@ |
||
84 | 84 | |
85 | 85 | $options = []; |
86 | 86 | |
87 | - if (! empty($field)) { |
|
87 | + if (!empty($field)) { |
|
88 | 88 | $relatedModelInstance = new $field['model'](); |
89 | 89 | |
90 | - if (! isset($field['options'])) { |
|
90 | + if (!isset($field['options'])) { |
|
91 | 91 | $options = $field['model']::all()->pluck($field['attribute'], $relatedModelInstance->getKeyName()); |
92 | 92 | } else { |
93 | 93 | $options = call_user_func($field['options'], $field['model']::query()->pluck($field['attribute'], $relatedModelInstance->getKeyName())); |