Skip to content

Commit

Permalink
Update cs and when to check it
Browse files Browse the repository at this point in the history
  • Loading branch information
joelwurtz committed Oct 17, 2018
1 parent bb5e948 commit 5e9b639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -171,7 +171,7 @@ private function joinPath(...$paths)
continue;
}

if ('..' === $part && count($resultPathParts) > 0) {
if ('..' === $part && \count($resultPathParts) > 0) {
array_pop($resultPathParts);
continue;
}
Expand Down

0 comments on commit 5e9b639

Please sign in to comment.