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 Oct 12, 2023
1 parent 8648281 commit fbd0368
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Ancestor.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function getRouteParameters(Model $record): array
// will re-sync the depth again.
if ($ancestor->getResource()::getModel() === $related::class) {
$parameters[$ancestor->getRouteParameterName()] = $related->id;

continue;
}

Expand Down
3 changes: 2 additions & 1 deletion src/Pages/NestedEditRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ protected function configureDeleteAction(DeleteAction $action): void
$resource = static::getResource();
$ancestor = $resource::getAncestor();

if (!$ancestor) {
if (! $ancestor) {
parent::configureDeleteAction($action);

return;
}

Expand Down
3 changes: 2 additions & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
namespace Guava\Filament\NestedResources;

use Filament\Resources\Resource;
use function Filament\Support\get_model_label;
use Illuminate\Database\Eloquent\Model;

use function Filament\Support\get_model_label;

if (! function_exists('Guava\Filament\NestedResources\get_model_route_parameter')) {
function get_model_route_parameter(string | Model $model): string
{
Expand Down

0 comments on commit fbd0368

Please sign in to comment.