diff --git a/src/collector/project/Dependency.php b/src/collector/project/Dependency.php index 93ebb622..295ec833 100644 --- a/src/collector/project/Dependency.php +++ b/src/collector/project/Dependency.php @@ -12,7 +12,7 @@ class Dependency { public function __construct(fDOMDocument $dom, Project $project) { $this->index = $dom; - $this->baseDir = dirname($dom->documentURI); + $this->baseDir = dirname(urldecode($dom->documentURI)); $this->index->registerNamespace('phpdox', 'http://xml.phpdox.net/src'); $this->project = $project; } diff --git a/src/generator/project/TokenFileIterator.php b/src/generator/project/TokenFileIterator.php index 71843f8d..5d851dcc 100644 --- a/src/generator/project/TokenFileIterator.php +++ b/src/generator/project/TokenFileIterator.php @@ -24,8 +24,7 @@ public function __construct(\DOMNodeList $nodeList) { */ public function current() { $item = $this->nodeList->item($this->pos); - //var_dump($item); - $path = dirname($item->ownerDocument->documentURI) . '/' . $item->getAttribute('xml'); + $path = dirname(urldecode($item->ownerDocument->documentURI)) . '/' . $item->getAttribute('xml'); return new TokenFile(new FileInfo($path)); }