mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 01:52:16 +00:00
[OPTIMISATION] Optimised more foreach loops to improve performance.
This commit is contained in:
@@ -72,8 +72,10 @@ class RouterRoute extends RouterEntry {
|
||||
$parameters = $matches[1];
|
||||
}
|
||||
|
||||
if(count($parameters)) {
|
||||
foreach($parameters as $param) {
|
||||
$max = count($parameters);
|
||||
if($max) {
|
||||
for($i = 0; $i < $max; $i++) {
|
||||
$param = $parameters[$i];
|
||||
$this->parameters[$param] = '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user