Skip to content

Commit f10a4d1

Browse files
committed
Fixed code style
1 parent 22edbdd commit f10a4d1

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/NovaInlineRelationship.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -266,18 +266,18 @@ public function getValueFromField(Field $field, NovaInlineRelationshipRequest $r
266266
*
267267
* @return array<int, array<string, mixed>>
268268
*/
269-
public function serializeOptions($optionsCallback)
270-
{
271-
$options = value($optionsCallback);
272-
273-
if (is_callable($options)) {
274-
$options = $options();
275-
}
276-
277-
return collect($options ?? [])->map(function ($label, $value) {
278-
return is_array($label) ? $label + ['value' => $value] : ['label' => $label, 'value' => $value];
279-
})->values()->all();
280-
}
269+
public function serializeOptions($optionsCallback)
270+
{
271+
$options = value($optionsCallback);
272+
273+
if (is_callable($options)) {
274+
$options = $options();
275+
}
276+
277+
return collect($options ?? [])->map(function ($label, $value) {
278+
return is_array($label) ? $label + ['value' => $value] : ['label' => $label, 'value' => $value];
279+
})->values()->all();
280+
}
281281

282282
/**
283283
* Resolve the fields for the resource.

src/Rules/RelationshipRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function passes($attribute, $value)
5353
$input = [$attribute => is_array($value) ? $value : json_decode($value, true)];
5454

5555
$validator = Validator::make($input, $this->rules, $this->messages, $this->attributes);
56-
56+
5757
$this->response = array_map(function ($message) {
5858
return is_array($message) ? $message[0] ?? '' : $message;
5959
}, $validator->errors()->getMessages());

0 commit comments

Comments
 (0)