Skip to content

Commit

Permalink
refactor: fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodmain committed Jul 24, 2024
1 parent d5fad34 commit be4756f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HelpersServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ protected function extendRouter(): void
$versionRange = function (
?Version $start,
?Version $end,
?string $param,
Route $instance = null
?string $param,
Route $instance = null
) {
if (!$param) {
$param = 'version';
Expand Down Expand Up @@ -125,7 +125,7 @@ protected function extendRouter(): void

RouteFacade::macro(
'versionRange',
fn (Version $from, Version $to, string $param = null) => $versionRange($from, $to, $param)
fn (Version $from, Version $to, string $param = null) => $versionRange($from, $to, $param)
);
RouteFacade::macro('versionFrom', fn (Version $from, $param = null) => $versionRange($from, null, $param));
RouteFacade::macro('versionTo', fn (Version $to, $param = null) => $versionRange(null, $to, $param));
Expand Down

0 comments on commit be4756f

Please sign in to comment.