Skip to content

Commit

Permalink
style: fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-frey authored and github-actions[bot] committed Nov 27, 2024
1 parent 7d3a797 commit 6f827f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Concerns/HasRelationManagerAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
use Filament\Resources\RelationManagers\RelationManager;
use Filament\Resources\RelationManagers\RelationManagerConfiguration;
use Filament\Support\Enums\MaxWidth;
use Filament\Tables\Actions\Action;
use Illuminate\Database\Eloquent\Model;

use function view;

trait HasRelationManagerAction
{
protected string|RelationManagerConfiguration $relationManager;
protected string | RelationManagerConfiguration $relationManager;

protected bool $hideRelationManagerHeading = true;

Expand All @@ -21,14 +20,14 @@ public static function getDefaultName(): ?string
return 'modal-relation-manager';
}

public function relationManager(RelationManagerConfiguration|string $relationManager): static
public function relationManager(RelationManagerConfiguration | string $relationManager): static
{
$this->relationManager = $relationManager;

return $this;
}

public function getRelationManager(): RelationManagerConfiguration|string
public function getRelationManager(): RelationManagerConfiguration | string
{
return $this->relationManager;
}
Expand Down Expand Up @@ -58,14 +57,15 @@ public function configure(): static
'fixIconPaddingLeft' => (bool) $this->getModalIcon() && ! in_array($this->getModalWidth(), [MaxWidth::ExtraSmall, MaxWidth::Small]),
'isModalSlideOver' => $this->isModalSlideOver(),
]);
});
})
;
}

/**
* @param class-string<RelationManager> | RelationManagerConfiguration $manager
* @return class-string<RelationManager>
*/
protected function normalizeRelationManagerClass(string|RelationManagerConfiguration $manager): string
protected function normalizeRelationManagerClass(string | RelationManagerConfiguration $manager): string
{
if ($manager instanceof RelationManagerConfiguration) {
return $manager->relationManager;
Expand Down

0 comments on commit 6f827f0

Please sign in to comment.