From 2a83022ffe4b271d7fb8cb9542cd0935f4c56b06 Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Mon, 12 Jun 2023 12:12:26 +0100 Subject: [PATCH] [3.x] typos/spelling (#116) * Update AbstractWebApplicationTest.php * Update ControllerResolver.php * Update AbstractWebApplication.php * Update README.md * Update README.md * Update README.md --- README.md | 6 +++--- Tests/AbstractWebApplicationTest.php | 2 +- src/AbstractWebApplication.php | 2 +- src/Controller/ControllerResolver.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c73cff4e..8938e425 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ## Initialising Applications -`AbstractApplication` implements an `initialise` method that is called at the end of the constructor. This method is intended to be overriden in derived classes as needed by the developer. +`AbstractApplication` implements an `initialise` method that is called at the end of the constructor. This method is intended to be overridden in derived classes as needed by the developer. If you are overriding the `__construct` method in your application class, remember to call the parent constructor last. @@ -202,7 +202,7 @@ You can provide customised implementations these methods by creating the followi The `AbstractWebApplication` sets following application configuration: -- Exection datetime and timestamp +- Execution datetime and timestamp - `execution.datetime` - Execution datetime - `execution.timestamp` - Execution timestamp @@ -219,7 +219,7 @@ and uses following ones during object construction: - `gzip` to compress the output - `site_uri` to see if an explicit base URI has been set - (helpful when chaning request uri using mod_rewrite) + (helpful when chaining request uri using mod_rewrite) - `media_uri` to get an explicitly set media URI (relative values are appended to `uri.base` ). If it's not set explicitly, it defaults to a `media/` path of `uri.base`. diff --git a/Tests/AbstractWebApplicationTest.php b/Tests/AbstractWebApplicationTest.php index b3e8bcc7..eadaf217 100644 --- a/Tests/AbstractWebApplicationTest.php +++ b/Tests/AbstractWebApplicationTest.php @@ -1409,7 +1409,7 @@ public function testGetBody() } /** - * @testdox Tests that the application correcty detects the request URI based on the injected data + * @testdox Tests that the application correctly detects the request URI based on the injected data * * @param string|null $https Value for $_SERVER['HTTPS'] or null to not set it * @param string $phpSelf Value for $_SERVER['PHP_SELF'] diff --git a/src/AbstractWebApplication.php b/src/AbstractWebApplication.php index a9b8e132..b885bcc8 100644 --- a/src/AbstractWebApplication.php +++ b/src/AbstractWebApplication.php @@ -479,7 +479,7 @@ public function redirect($url, $status = 303) echo $html; } else { - // Check if we have a boolean for the status variable for compatability with v1 of the framework + // Check if we have a boolean for the status variable for compatibility with v1 of the framework // @deprecated 3.0 if (\is_bool($status)) { \trigger_deprecation( diff --git a/src/Controller/ControllerResolver.php b/src/Controller/ControllerResolver.php index 45b40705..dbe31b86 100644 --- a/src/Controller/ControllerResolver.php +++ b/src/Controller/ControllerResolver.php @@ -65,7 +65,7 @@ public function resolve(ResolvedRoute $route): callable return $controller; } - // Try to resolve an invokable object + // Try to resolve an invocable object if (\is_object($controller)) { if (!\is_callable($controller)) { throw new \InvalidArgumentException(