From 14f9f247bc2b0b676a2b5c2746cf433a656b00ba Mon Sep 17 00:00:00 2001 From: tracer Date: Thu, 27 Oct 2022 12:13:37 +0200 Subject: [PATCH] changed some wording in comments --- src/Service/Router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {