Skip to content

Commit

Permalink
Remove redundant path modification
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Dec 28, 2023
1 parent 2e89913 commit 09c60d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private function parseController(ServerRequestInterface $request): mixed
$controllerName = preg_replace_callback(
'#(/.)#',
fn(array $matches) => strtoupper($matches[1]),
str_replace('/', DIRECTORY_SEPARATOR, $path)
$path,
);
$directoryPath = StringHelper::directoryName($controllerName);

Expand Down

0 comments on commit 09c60d0

Please sign in to comment.