diff --git a/src/Service/Router.php b/src/Service/Router.php index 64e71e0..49913ce 100644 --- a/src/Service/Router.php +++ b/src/Service/Router.php @@ -35,7 +35,7 @@ class Router /* * This method takes a route like /admin/users/{user} and creates a regex to match on call - * More complex routes as /posts/{thread}/show/{page} are supported as well. + * More complex routes like /posts/{thread}/show/{page} are supported as well. */ function addRoute(string $name, string $route, Closure $callback): void { @@ -84,7 +84,7 @@ class Router foreach ($this->dynamicRoutes as $route) { // PHPStorm doesn't know that $parameters are always available, - // (as it this are dynamic routes) so I init the array just to make PHPStorm happy. + // (as these are dynamic routes) so I init the array just to make PHPStorm happy. $parameters = []; if (preg_match(pattern: $route->getRegex(), subject: $requestUri, matches: $matches)) { foreach ($route->getParameters() as $id => $parameter) {