Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray authored and actions-user committed Mar 10, 2021
1 parent 799d310 commit 65b590c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ protected function prepareField(Field $field): Field
$this->fillCallbacks[$field->attribute] = $field->fillCallback;

return $field->fillUsing(function ($request, Model $model, $attribute, $requestAttribute) {
if (!$model->hasCast($this->attribute)) {
if (! $model->hasCast($this->attribute)) {
throw AttributeCast::notFoundFor($this->attribute);
}

$value = $this->fetchValueFromRequest($request, $model, $attribute, $requestAttribute);

if (!$this->nullable && $this->isNullValue($value)) {
if (! $this->nullable && $this->isNullValue($value)) {
return;
}

Expand Down Expand Up @@ -330,7 +330,7 @@ protected function getRequestValues(NovaRequest $request, Model $model): array
*/
public function __call($method, $attrs): self
{
if (!method_exists(\Laravel\Nova\Fields\FieldElement::class, $method)) {
if (! method_exists(\Laravel\Nova\Fields\FieldElement::class, $method)) {
throw new \BadMethodCallException;
}

Expand Down

0 comments on commit 65b590c

Please sign in to comment.