Skip to content

Commit a51e7db

Browse files
committed
Fix issue #164 (#165, #166)
1 parent 39fdd5c commit a51e7db

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/collector/project/Dependency.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Dependency {
1212

1313
public function __construct(fDOMDocument $dom, Project $project) {
1414
$this->index = $dom;
15-
$this->baseDir = dirname($dom->documentURI);
15+
$this->baseDir = dirname(urldecode($dom->documentURI));
1616
$this->index->registerNamespace('phpdox', 'http://xml.phpdox.net/src');
1717
$this->project = $project;
1818
}

src/generator/project/TokenFileIterator.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ public function __construct(\DOMNodeList $nodeList) {
2424
*/
2525
public function current() {
2626
$item = $this->nodeList->item($this->pos);
27-
//var_dump($item);
28-
$path = dirname($item->ownerDocument->documentURI) . '/' . $item->getAttribute('xml');
27+
$path = dirname(urldecode($item->ownerDocument->documentURI)) . '/' . $item->getAttribute('xml');
2928
return new TokenFile(new FileInfo($path));
3029
}
3130

0 commit comments

Comments
 (0)