Skip to content

Commit

Permalink
style: fix code style in RouterMacros
Browse files Browse the repository at this point in the history
  • Loading branch information
fyrts committed Feb 15, 2024
1 parent bbe9e45 commit 8df9edd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Macros/RouterMacros.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ public function hasLocalized(): Closure
{
return function ($name) {
$names = array_map(
static fn ($pattern) => locale() . ".{$pattern}",
static fn ($pattern) => locale().".{$pattern}",
is_array($name) ? $name : func_get_args(),
);

return $this->has($names);
};
}
Expand Down

0 comments on commit 8df9edd

Please sign in to comment.