Skip to content

Commit

Permalink
[3.x] typos/spelling (#116)
Browse files Browse the repository at this point in the history
* Update AbstractWebApplicationTest.php

* Update ControllerResolver.php

* Update AbstractWebApplication.php

* Update README.md

* Update README.md

* Update README.md
  • Loading branch information
brianteeman authored Jun 12, 2023
1 parent 10f7ffd commit 2a83022
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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

Expand All @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion Tests/AbstractWebApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractWebApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ControllerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2a83022

Please sign in to comment.