Skip to content

Commit 6b5bf0c

Browse files
ruuddeenengithub-actions[bot]
authored andcommitted
Fix styling
1 parent 06f64fa commit 6b5bf0c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Concerns/AddsFieldsToQuery.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function getRequestedFieldsForRelatedTable(string $relation, ?string $tab
108108

109109
if (config('query-builder.convert_field_names_to_snake_case', false)) {
110110
$fields = $fields->mapWithKeys(fn ($fields, $table) => [
111-
$table => collect($fields)->map(fn ($field) => Str::snake($field))
111+
$table => collect($fields)->map(fn ($field) => Str::snake($field)),
112112
]);
113113
}
114114

@@ -117,18 +117,19 @@ public function getRequestedFieldsForRelatedTable(string $relation, ?string $tab
117117
foreach ($possibleRelatedNames as $tableName) {
118118
if ($fields->has($tableName)) {
119119
$matchedFields = $fields->get($tableName);
120+
120121
break;
121122
}
122123
}
123124

124-
if (!$matchedFields) {
125+
if (! $matchedFields) {
125126
return [];
126127
}
127128

128129
$matchedFields = $matchedFields->toArray();
129130

130131
// Validate against allowed fields as in original implementation
131-
if (!$this->allowedFields instanceof Collection) {
132+
if (! $this->allowedFields instanceof Collection) {
132133
throw new UnknownIncludedFieldsQuery($matchedFields);
133134
}
134135

0 commit comments

Comments
 (0)