Optimizing query output

This commit is contained in:
Dennis Eichhorn 2017-02-11 10:09:47 +01:00
parent a9186d802e
commit 7850d60b6c

View File

@ -185,7 +185,7 @@ class UriFactory
$pars[] = $key . '=' . $value; $pars[] = $key . '=' . $value;
} }
$url = $parts[0] . '?' . implode('&', $pars); return $parts[0] . (empty($pars) ? '' : '?' . implode('&', $pars));
} }
return $url; return $url;
@ -224,8 +224,6 @@ class UriFactory
str_replace('&', '?', $parsed); str_replace('&', '?', $parsed);
} }
$parsed = self::unique($parsed); return self::unique($parsed);
return $parsed;
} }
} }