Skip to content

Commit 271bb4a

Browse files
committed
fix code style
1 parent fb5f1c4 commit 271bb4a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ReferenceContext.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ public function resolveRelativeUri(string $uri): string
8181

8282
$baseUri = $this->getUri();
8383
if (strncmp($baseUri, 'file://', 7) === 0) {
84-
8584
if (isset($parts['path'][0]) && $parts['path'][0] === '/') {
8685
// absolute path
8786
return 'file://' . $parts['path'];
@@ -106,7 +105,7 @@ public function resolveRelativeUri(string $uri): string
106105
]);
107106
if (isset($parts['path'][0]) && $parts['path'][0] === '/') {
108107
$absoluteUri .= $parts['path'];
109-
} else if (isset($parts['path'])) {
108+
} elseif (isset($parts['path'])) {
110109
$absoluteUri .= rtrim(dirname($baseParts['path'] ?? ''), '/') . '/' . $parts['path'];
111110
}
112111
return $absoluteUri

0 commit comments

Comments
 (0)