Skip to content

Commit 46a1813

Browse files
committed
docs: fix typos and grammatical errors
1 parent cd6ad5c commit 46a1813

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

system/Router/RouteCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ public function group(string $name, ...$params)
722722
* POST /photos/{id} update
723723
*
724724
* @param string $name The name of the resource/controller to route to.
725-
* @param array|null $options An list of possible ways to customize the routing.
725+
* @param array|null $options A list of possible ways to customize the routing.
726726
*/
727727
public function resource(string $name, ?array $options = null): RouteCollectionInterface
728728
{
@@ -816,7 +816,7 @@ public function resource(string $name, ?array $options = null): RouteCollectionI
816816
* POST /photos/delete/{id} delete deleting the specified photo object
817817
*
818818
* @param string $name The name of the controller to route to.
819-
* @param array|null $options An list of possible ways to customize the routing.
819+
* @param array|null $options A list of possible ways to customize the routing.
820820
*/
821821
public function presenter(string $name, ?array $options = null): RouteCollectionInterface
822822
{
@@ -1467,7 +1467,7 @@ private function checkSubdomains($subdomains): bool
14671467
}
14681468

14691469
/**
1470-
* Examines the HTTP_HOST to get a best match for the subdomain. It
1470+
* Examines the HTTP_HOST to get the best match for the subdomain. It
14711471
* won't be perfect, but should work for our needs.
14721472
*
14731473
* It's especially not perfect since it's possible to register a domain

system/Router/RouteCollectionInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* add a number of additional methods to customize how the routes are defined.
2222
*
2323
* The RouteCollection provides the Router with the routes so that it can determine
24-
* which controller should be ran.
24+
* which controller should be run.
2525
*/
2626
interface RouteCollectionInterface
2727
{
@@ -157,7 +157,7 @@ public function getRoutes();
157157
public function getHTTPVerb();
158158

159159
/**
160-
* Attempts to look up a route based on it's destination.
160+
* Attempts to look up a route based on its destination.
161161
*
162162
* If a route exists:
163163
*

system/Router/Router.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public function getMatchedRouteOptions()
324324

325325
/**
326326
* Sets the value that should be used to match the index.php file. Defaults
327-
* to index.php but this allows you to modify it in case your are using
327+
* to index.php but this allows you to modify it in case you are using
328328
* something like mod_rewrite to remove the page. This allows you to set
329329
* it a blank.
330330
*
@@ -376,7 +376,7 @@ public function getLocale()
376376
}
377377

378378
/**
379-
* Checks Defined Routs.
379+
* Checks Defined Routes.
380380
*
381381
* Compares the uri string against the routes that the
382382
* RouteCollection class defined for us, attempting to find a match.
@@ -495,7 +495,7 @@ protected function checkRoutes(string $uri): bool
495495
}
496496

497497
/**
498-
* Checks Auto Routs.
498+
* Checks Auto Routes.
499499
*
500500
* Attempts to match a URI path against Controllers and directories
501501
* found in APPPATH/Controllers, to find a matching route.

0 commit comments

Comments
 (0)