Grammar/Vocabulary fixes
Signed-off-by: Chris Berthe <chrisberthe@gmail.com>
This commit is contained in:
@@ -14,7 +14,7 @@ class Filter {
|
||||
public static $filters = array();
|
||||
|
||||
/**
|
||||
* The route filters that are based on pattern.
|
||||
* The route filters that are based on a pattern.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
|
||||
@@ -10,7 +10,7 @@ use Laravel\Response;
|
||||
class Route {
|
||||
|
||||
/**
|
||||
* The URI the route response to.
|
||||
* The URI the route responds to.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
@@ -52,7 +52,7 @@ class Route {
|
||||
public $action;
|
||||
|
||||
/**
|
||||
* The parameters that will passed to the route callback.
|
||||
* The parameters that will be passed to the route callback.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
@@ -79,7 +79,7 @@ class Route {
|
||||
|
||||
// We'll set the parameters based on the number of parameters passed
|
||||
// compared to the parameters that were needed. If more parameters
|
||||
// are needed, we'll merge in defaults.
|
||||
// are needed, we'll merge in the defaults.
|
||||
$this->parameters($action, $parameters);
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ class Route {
|
||||
|
||||
// If there are less parameters than wildcards, we will figure out how
|
||||
// many parameters we need to inject from the array of defaults and
|
||||
// merge them in into the main array for the route.
|
||||
// merge them into the main array for the route.
|
||||
if (count($defaults) > count($parameters))
|
||||
{
|
||||
$defaults = array_slice($defaults, count($parameters));
|
||||
|
||||
@@ -55,7 +55,7 @@ class Router {
|
||||
public static $group;
|
||||
|
||||
/**
|
||||
* The "handes" clause for the bundle currently being routed.
|
||||
* The "handles" clause for the bundle currently being routed.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
@@ -303,7 +303,7 @@ class Router {
|
||||
{
|
||||
list($bundle, $controller) = Bundle::parse($identifier);
|
||||
|
||||
// First we need to replace the dots with slashes in thte controller name
|
||||
// First we need to replace the dots with slashes in the controller name
|
||||
// so that it is in directory format. The dots allow the developer to use
|
||||
// a cleaner syntax when specifying the controller. We will also grab the
|
||||
// root URI for the controller's bundle.
|
||||
@@ -311,7 +311,7 @@ class Router {
|
||||
|
||||
$root = Bundle::option($bundle, 'handles');
|
||||
|
||||
// If the controller is a "home" controller, we'll need to also build a
|
||||
// If the controller is a "home" controller, we'll need to also build an
|
||||
// index method route for the controller. We'll remove "home" from the
|
||||
// route root and setup a route to point to the index method.
|
||||
if (ends_with($controller, 'home'))
|
||||
@@ -428,7 +428,7 @@ class Router {
|
||||
|
||||
// To find the route, we'll simply spin through the routes looking
|
||||
// for a route with a "uses" key matching the action, and if we
|
||||
// find one we cache and return it.
|
||||
// find one, we cache and return it.
|
||||
foreach (static::routes() as $method => $routes)
|
||||
{
|
||||
foreach ($routes as $key => $value)
|
||||
@@ -484,7 +484,7 @@ class Router {
|
||||
{
|
||||
foreach (static::method($method) as $route => $action)
|
||||
{
|
||||
// We only need to check routes with regular expression since all other
|
||||
// We only need to check routes with regular expression since all others
|
||||
// would have been able to be matched by the search for literal matches
|
||||
// we just did before we started searching.
|
||||
if (str_contains($route, '('))
|
||||
|
||||
Reference in New Issue
Block a user