From 271bb4a264b87bae0bd17270ad117e4b5fd4ec95 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Thu, 22 Nov 2018 14:28:16 +0100 Subject: [PATCH] fix code style --- src/ReferenceContext.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ReferenceContext.php b/src/ReferenceContext.php index 541cb59..3257466 100644 --- a/src/ReferenceContext.php +++ b/src/ReferenceContext.php @@ -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']; @@ -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