mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-12 06:56:24 +00:00
Removing unused variables. Making loop easier to read.
This commit is contained in:
parent
5b4d15dc3b
commit
5cbe3dbd39
1 changed files with 2 additions and 4 deletions
|
@ -410,9 +410,6 @@ class Router {
|
||||||
$self->__currentRoute[] =& $route;
|
$self->__currentRoute[] =& $route;
|
||||||
|
|
||||||
$params = $route->params;
|
$params = $route->params;
|
||||||
$names = $route->keys;
|
|
||||||
$defaults = $route->defaults;
|
|
||||||
|
|
||||||
$argOptions = array();
|
$argOptions = array();
|
||||||
|
|
||||||
if (array_key_exists('named', $params)) {
|
if (array_key_exists('named', $params)) {
|
||||||
|
@ -434,7 +431,8 @@ class Router {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($params['pass'])) {
|
if (isset($params['pass'])) {
|
||||||
for ($j = count($params['pass']) - 1; $j > -1; $j--) {
|
$j = count($params['pass']);
|
||||||
|
while($j--) {
|
||||||
if (isset($out[$params['pass'][$j]])) {
|
if (isset($out[$params['pass'][$j]])) {
|
||||||
array_unshift($out['pass'], $out[$params['pass'][$j]]);
|
array_unshift($out['pass'], $out[$params['pass'][$j]]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue