mvc: style change

This commit is contained in:
Franco Fichtner 2024-12-02 11:10:47 +01:00
parent 9d6e6e5c7c
commit fdac52231b

View File

@ -115,7 +115,7 @@ class Router
*/
public function routeRequest(string $uri, array $defaults = []): Response
{
$path = parse_url('/'.ltrim($uri, '/'))['path'] ?? '';
$path = parse_url('/' . ltrim($uri, '/'))['path'] ?? '';
if (!str_starts_with($path, $this->prefix)) {
throw new InvalidUriException("Invalid route path: " . $uri);