Refactor
This commit is contained in:
parent
c0e23cebe0
commit
fa8662a0d1
1 changed files with 3 additions and 3 deletions
|
@ -72,8 +72,8 @@ class URL
|
|||
if (count($parts) >= 2) {
|
||||
switch ($parts[0]) {
|
||||
case 'RewriteRule':
|
||||
$rewriteRule = $parts[1];
|
||||
$target = $parts[2];
|
||||
$rewriteRule = $parts[1];
|
||||
$target = $parts[2];
|
||||
|
||||
$regex = str_replace('/', '\/', $rewriteRule);
|
||||
|
||||
|
@ -125,7 +125,7 @@ class URL
|
|||
|
||||
uasort(
|
||||
$getParameters,
|
||||
function($a, $b) {
|
||||
function ($a, $b) {
|
||||
return strlen($a) <=> strlen($b);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue