X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/d9f6b83ed6d8a4546e4119c64b639adda057d25e..39bd200baed00b5b63cc62ce947ef708710ac81c:/src/phorkie/Tool/Xmllint.php diff --git a/src/phorkie/Tool/Xmllint.php b/src/phorkie/Tool/Xmllint.php index b9917f5..8488138 100644 --- a/src/phorkie/Tool/Xmllint.php +++ b/src/phorkie/Tool/Xmllint.php @@ -9,7 +9,7 @@ class Tool_Xmllint public function run(File $file) { - $fpath = $file->getPath(); + $fpath = $file->getFullPath(); $fpathlen = strlen($fpath); $res = new Tool_Result(); @@ -27,8 +27,8 @@ class Tool_Xmllint if (substr($line, 0, $fpathlen) != $fpath) { throw new Exception('xmllint does not behave as expected: ' . $line); } - list($line, $msg) = explode(':', substr($line, $fpathlen + 1), 2); - $res->annotations[$line][] = new Tool_Result_Line( + list($linenum, $msg) = explode(':', substr($line, $fpathlen + 1), 2); + $res->annotations[$linenum][] = new Tool_Result_Line( $msg, 'error' ); } @@ -41,4 +41,4 @@ class Tool_Xmllint } } -?> \ No newline at end of file +?>