Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Dec 23, 2024
1 parent bbd1258 commit 4ac33f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public function transform(Collection $pendingRoutes): Collection
fn (ReflectionParameter $parameter) => $parentAction
->modelParameters()
->contains(
fn (ReflectionParameter $parentParameter) => $parentParameter->getName() === $parameter->getName())
fn (ReflectionParameter $parentParameter) => $parentParameter->getName() === $parameter->getName()
)
);
$result = Str::of($action->uri)
->replace(
Expand Down
2 changes: 1 addition & 1 deletion src/PendingRoutes/PendingRouteAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function relativeUri(): string
$uri .= '/';
}
$uri .= $this->modelParameters
->map(fn(ReflectionParameter $parameter) => "{{$parameter->getName()}}")
->map(fn (ReflectionParameter $parameter) => "{{$parameter->getName()}}")
->implode('/');
}

Expand Down
2 changes: 1 addition & 1 deletion tests/RouteDiscoveryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Controllers\Middleware\MiddlewareOnMethodController;
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Controllers\Model\ModelController;
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Controllers\MultipleModel\MultipleModelController;
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Controllers\NestedWithMultipleParametersController\PhotosController as MpPhotosController;
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Controllers\NestedWithMultipleParametersController\Photos\CommentsController as MpCommentsController;
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Controllers\NestedWithMultipleParametersController\PhotosController as MpPhotosController;
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Controllers\NestedWithParametersController\Photos\CommentsController;
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Controllers\NestedWithParametersController\PhotosController;
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Controllers\Nesting\Nested\ChildController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Spatie\RouteDiscovery\Tests\Support\TestClasses\Models\Comment;
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Models\Photo;
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Models\User;

class CommentsController
{
Expand Down

0 comments on commit 4ac33f4

Please sign in to comment.