mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-12 01:12:14 +00:00
Cleanup
This commit is contained in:
@@ -94,8 +94,7 @@ class Input
|
||||
|
||||
$path = $original[$property];
|
||||
|
||||
$tmp = array_values($index);
|
||||
foreach ($tmp as $i) {
|
||||
foreach (array_values($index) as $i) {
|
||||
$path = $path[$i];
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,8 @@ abstract class LoadableRoute extends Route implements ILoadableRoute
|
||||
}
|
||||
}
|
||||
|
||||
public function matchRegex(Request $request, $url) {
|
||||
public function matchRegex(Request $request, $url)
|
||||
{
|
||||
|
||||
/* Match on custom defined regular expression */
|
||||
|
||||
|
||||
@@ -441,7 +441,7 @@ abstract class Route implements IRoute
|
||||
public function getParameters()
|
||||
{
|
||||
/* Sort the parameters after the user-defined param order, if any */
|
||||
$parameters = array();
|
||||
$parameters = [];
|
||||
|
||||
if (count($this->originalParameters) > 0) {
|
||||
$parameters = $this->originalParameters;
|
||||
|
||||
@@ -29,6 +29,7 @@ class RouteGroup extends Route implements IGroupRoute
|
||||
if ($parameters !== null && count($parameters) > 0) {
|
||||
|
||||
$this->parameters = $parameters;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user