mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2025-01-08 17:02:41 +00:00
More style fixes
This commit is contained in:
parent
53aa7a4d0d
commit
c9e86e71c4
1 changed files with 5 additions and 6 deletions
|
@ -10,7 +10,6 @@ namespace JKingWeb\Arsse\Misc;
|
||||||
* A collection of functions for manipulating URLs
|
* A collection of functions for manipulating URLs
|
||||||
*/
|
*/
|
||||||
class URL {
|
class URL {
|
||||||
|
|
||||||
/** Normalizes a URL
|
/** Normalizes a URL
|
||||||
*
|
*
|
||||||
* Normalizations performed are:
|
* Normalizations performed are:
|
||||||
|
@ -122,7 +121,7 @@ class URL {
|
||||||
$absolute = ($hasHost || $path[0] === "/");
|
$absolute = ($hasHost || $path[0] === "/");
|
||||||
$index = (substr($path, -1) === "/");
|
$index = (substr($path, -1) === "/");
|
||||||
$out = [];
|
$out = [];
|
||||||
foreach($parts as $p) {
|
foreach ($parts as $p) {
|
||||||
switch ($p) {
|
switch ($p) {
|
||||||
case "":
|
case "":
|
||||||
case ".":
|
case ".":
|
||||||
|
|
Loading…
Reference in a new issue