From 5e9b63919a89d6d706dbf46f3090e18775e4c9bb Mon Sep 17 00:00:00 2001 From: Joel Wurtz Date: Wed, 17 Oct 2018 14:37:16 +0200 Subject: [PATCH] Update cs and when to check it --- Reference.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Reference.php b/Reference.php index 592b91b..945ce5c 100644 --- a/Reference.php +++ b/Reference.php @@ -40,7 +40,7 @@ public function __construct(string $reference, string $origin) $mergedParts = array_merge($originParts, $referenceParts); if (array_key_exists('path', $referenceParts)) { - $mergedParts['path'] = $this->joinPath(dirname($originParts['path']), $referenceParts['path']); + $mergedParts['path'] = $this->joinPath(\dirname($originParts['path']), $referenceParts['path']); } $this->referenceUri = $http::createFromString($reference); @@ -171,7 +171,7 @@ private function joinPath(...$paths) continue; } - if ('..' === $part && count($resultPathParts) > 0) { + if ('..' === $part && \count($resultPathParts) > 0) { array_pop($resultPathParts); continue; }