diff --git a/src/Fields/File.php b/src/Fields/File.php index 2cd0063b8..01eddd37e 100644 --- a/src/Fields/File.php +++ b/src/Fields/File.php @@ -51,7 +51,7 @@ public function indexViewValue(Model $item, bool $container = true): string ->toArray() : [$this->pathWithDir($item->{$this->field()})]; - if (!$container) { + if (! $container) { return implode(';', array_filter($files)); } diff --git a/src/Fields/ID.php b/src/Fields/ID.php index 3787ba737..4b41dbda4 100644 --- a/src/Fields/ID.php +++ b/src/Fields/ID.php @@ -16,7 +16,7 @@ class ID extends Text public function indexViewValue(Model $item, bool $container = true): string { - if (!$container) { + if (! $container) { return parent::indexViewValue($item, $container); } diff --git a/src/Traits/WithFields.php b/src/Traits/WithFields.php index 16814491a..a2689e23b 100644 --- a/src/Traits/WithFields.php +++ b/src/Traits/WithFields.php @@ -80,7 +80,7 @@ public function indexViewValue(Model $item, bool $container = false): string && ! $this instanceof HasOne && $this->inLine ) { - return $value?->implode(function ($item) use($container) { + return $value?->implode(function ($item) use ($container) { $implodeValue = $item->{$this->resourceTitleField()} ?? false; if ($this->inLineBadge) { @@ -165,7 +165,7 @@ function ($in) use ($data, $item): void { $values = []; } - if (!$container) { + if (! $container) { return ''; }