Skip to content

Commit 192d884

Browse files
committed
Update coding style
1 parent 6239ff9 commit 192d884

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Uri.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,10 +1152,10 @@ public function toRfc8089(): ?string
11521152
return match (true) {
11531153
'file' !== $this->scheme => null,
11541154
in_array($this->authority, ['', null, 'localhost'], true) => 'file:'.match (true) {
1155-
'' === $path,
1156-
'/' === $path[0] => $path,
1157-
default => '/'.$path,
1158-
},
1155+
'' === $path,
1156+
'/' === $path[0] => $path,
1157+
default => '/'.$path,
1158+
},
11591159
default => $this->toString(),
11601160
};
11611161
}
@@ -1539,10 +1539,10 @@ public function equals(Rfc3986Uri|WhatWgUrl|UriInterface|Stringable|Urn|string $
15391539
}
15401540

15411541
return $baseUri->normalize()->toString() === match (true) {
1542-
$uri instanceof Rfc3986Uri => $uri->toString(),
1543-
$uri instanceof WhatWgUrl => $uri->toAsciiString(),
1544-
default => $uri->normalize()->toString(),
1545-
};
1542+
$uri instanceof Rfc3986Uri => $uri->toString(),
1543+
$uri instanceof WhatWgUrl => $uri->toAsciiString(),
1544+
default => $uri->normalize()->toString(),
1545+
};
15461546
}
15471547

15481548
/**
@@ -1583,7 +1583,7 @@ public function resolve(Rfc3986Uri|WhatWgUrl|UriInterface|Stringable|Urn|string
15831583
return self::new(UriString::resolve(
15841584
match (true) {
15851585
$uri instanceof UriInterface,
1586-
$uri instanceof Rfc3986Uri => $uri->toString(),
1586+
$uri instanceof Rfc3986Uri => $uri->toString(),
15871587
$uri instanceof WhatWgUrl => $uri->toAsciiString(),
15881588
default => $uri,
15891589
},
@@ -1673,12 +1673,12 @@ private static function formatRelativePath(string $path, string $basePath): stri
16731673
return match (true) {
16741674
'' === $path => match (true) {
16751675
'' === $basePath,
1676-
'/' === $basePath => $basePath,
1676+
'/' === $basePath => $basePath,
16771677
default => './',
16781678
},
16791679
false === $colonPosition => $path,
16801680
false === $slashPosition,
1681-
$colonPosition < $slashPosition => "./$path",
1681+
$colonPosition < $slashPosition => "./$path",
16821682
default => $path,
16831683
};
16841684
}
@@ -1692,7 +1692,7 @@ private static function getSegments(string $path): array
16921692
{
16931693
return explode('/', match (true) {
16941694
'' === $path,
1695-
'/' !== $path[0] => $path,
1695+
'/' !== $path[0] => $path,
16961696
default => substr($path, 1),
16971697
});
16981698
}

0 commit comments

Comments
 (0)