Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to authored and actions-user committed May 22, 2023
1 parent ce63b72 commit 4125526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/Fields/HasOneOrMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function save(Model $item): Model
if ($field instanceof Fileable) {

$model = null;
if(!is_null($item->{$this->relation()})) {
if(! is_null($item->{$this->relation()})) {
$model = $this instanceof HasOne
? $item->{$this->relation()}
: ($item->{$this->relation()}[$index] ?? null);
Expand Down

0 comments on commit 4125526

Please sign in to comment.