This commit is contained in:
Simon Sessingø
2016-11-28 04:38:38 +01:00
parent d9b97ccf42
commit 7847b71bbc
7 changed files with 18 additions and 17 deletions
+1 -2
View File
@@ -94,8 +94,7 @@ class Input
$path = $original[$property]; $path = $original[$property];
$tmp = array_values($index); foreach (array_values($index) as $i) {
foreach ($tmp as $i) {
$path = $path[$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 */ /* Match on custom defined regular expression */
+1 -1
View File
@@ -441,7 +441,7 @@ abstract class Route implements IRoute
public function getParameters() public function getParameters()
{ {
/* Sort the parameters after the user-defined param order, if any */ /* Sort the parameters after the user-defined param order, if any */
$parameters = array(); $parameters = [];
if (count($this->originalParameters) > 0) { if (count($this->originalParameters) > 0) {
$parameters = $this->originalParameters; $parameters = $this->originalParameters;
@@ -29,6 +29,7 @@ class RouteGroup extends Route implements IGroupRoute
if ($parameters !== null && count($parameters) > 0) { if ($parameters !== null && count($parameters) > 0) {
$this->parameters = $parameters; $this->parameters = $parameters;
return true; return true;
} }
} }