mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +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;
|
||||
|
||||
$params = $route->params;
|
||||
$names = $route->keys;
|
||||
$defaults = $route->defaults;
|
||||
|
||||
$argOptions = array();
|
||||
|
||||
if (array_key_exists('named', $params)) {
|
||||
|
@ -434,7 +431,8 @@ class Router {
|
|||
}
|
||||
|
||||
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]])) {
|
||||
array_unshift($out['pass'], $out[$params['pass'][$j]]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue