Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Nov 22, 2018
1 parent fb5f1c4 commit 271bb4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ReferenceContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ public function resolveRelativeUri(string $uri): string

$baseUri = $this->getUri();
if (strncmp($baseUri, 'file://', 7) === 0) {

if (isset($parts['path'][0]) && $parts['path'][0] === '/') {
// absolute path
return 'file://' . $parts['path'];
Expand All @@ -106,7 +105,7 @@ public function resolveRelativeUri(string $uri): string
]);
if (isset($parts['path'][0]) && $parts['path'][0] === '/') {
$absoluteUri .= $parts['path'];
} else if (isset($parts['path'])) {
} elseif (isset($parts['path'])) {
$absoluteUri .= rtrim(dirname($baseParts['path'] ?? ''), '/') . '/' . $parts['path'];
}
return $absoluteUri
Expand Down

0 comments on commit 271bb4a

Please sign in to comment.