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 Mar 15, 2024
1 parent 7ddacff commit 93dc83d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
8 changes: 3 additions & 5 deletions src/Actions/NestedDeleteAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

namespace Guava\FilamentNestedResources\Actions;

use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Filament\Actions\DeleteAction;
use Symfony\Component\Routing\Exception\RouteNotFoundException;

trait NestedDeleteAction
{


protected function configureDeleteAction(DeleteAction|\Filament\Tables\Actions\DeleteAction $action): void
protected function configureDeleteAction(DeleteAction | \Filament\Tables\Actions\DeleteAction $action): void
{
try {
parent::configureDeleteAction($action);
Expand All @@ -36,4 +34,4 @@ protected function configureDeleteAction(DeleteAction|\Filament\Tables\Actions\D
}
}
}
}
}
2 changes: 1 addition & 1 deletion src/Actions/NestedForceDeleteAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

trait NestedForceDeleteAction
{
protected function configureForceDeleteAction(ForceDeleteAction|\Filament\Tables\Actions\ForceDeleteAction $action): void
protected function configureForceDeleteAction(ForceDeleteAction | \Filament\Tables\Actions\ForceDeleteAction $action): void
{
try {
parent::configureForceDeleteAction($action);
Expand Down
7 changes: 4 additions & 3 deletions src/Concerns/NestedPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ trait NestedPage
use NestedDeleteAction;
use NestedForceDeleteAction;

public function mountNestedPage() {
// $resource = static::getResource();
// $ancestor = $resource::getAncestor();
public function mountNestedPage()
{
// $resource = static::getResource();
// $ancestor = $resource::getAncestor();
}

public function getBreadcrumbs(): array
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/NestedRelationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
trait NestedRelationManager
{
use NestedCreateAction;
use NestedViewAction;
use NestedEditAction;
use NestedViewAction;
}
2 changes: 0 additions & 2 deletions src/Concerns/NestedResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@

trait NestedResource
{

abstract public static function getAncestor(): ?Ancestor;


public static function getBreadcrumbs(Model $record, string $operation): array
{
$resource = static::class;
Expand Down
4 changes: 2 additions & 2 deletions src/Pages/CreateRelatedRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
use Filament\Resources\Pages\Page;
use Filament\Support\Exceptions\Halt;
use Filament\Support\Facades\FilamentView;
use Guava\Filament\NestedResources\Concerns\NestedPage;
use function Filament\Support\is_app_url;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\HasManyThrough;
use Illuminate\Database\Eloquent\Relations\Relation;

use function Filament\Support\is_app_url;

class CreateRelatedRecord extends Page
{
use HasUnsavedDataChangesAlert;
Expand Down

0 comments on commit 93dc83d

Please sign in to comment.