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 | } |
@@ -78,10 +78,10 @@ |
||
78 | 78 | if (request()->has('field')) { |
79 | 79 | $field = $this->crud->fields()[request()->get('field')]; |
80 | 80 | |
81 | - if (! empty($field)) { |
|
81 | + if (!empty($field)) { |
|
82 | 82 | $relatedModelInstance = new $field['model'](); |
83 | 83 | |
84 | - if (! isset($field['options'])) { |
|
84 | + if (!isset($field['options'])) { |
|
85 | 85 | $options = $field['model']::all()->pluck($field['attribute'], $relatedModelInstance->getKeyName()); |
86 | 86 | } else { |
87 | 87 | $options = call_user_func($field['options'], $field['model']::query()->pluck($field['attribute'], $relatedModelInstance->getKeyName())); |