| @@ 112-120 (lines=9) @@ | ||
| 109 | */ |
|
| 110 | protected function checkForNewFile(XMLReader $reader, $currentFile) |
|
| 111 | { |
|
| 112 | if (( |
|
| 113 | $reader->name === 'file' && |
|
| 114 | $reader->nodeType == XMLReader::ELEMENT |
|
| 115 | ) |
|
| 116 | ) { |
|
| 117 | $currentFile = $reader->getAttribute('name'); |
|
| 118 | $this->errors[$currentFile] = []; |
|
| 119 | return $currentFile; |
|
| 120 | } |
|
| 121 | return $currentFile; |
|
| 122 | } |
|
| 123 | ||
| @@ 41-47 (lines=7) @@ | ||
| 38 | $reader->open($this->file); |
|
| 39 | $currentFile = ''; |
|
| 40 | while ($reader->read()) { |
|
| 41 | if (( |
|
| 42 | $reader->name === "file" && |
|
| 43 | $reader->nodeType == XMLReader::ELEMENT |
|
| 44 | )) { |
|
| 45 | $currentFile = $reader->getAttribute('name'); |
|
| 46 | $this->coveredLines[$currentFile] = []; |
|
| 47 | } |
|
| 48 | ||
| 49 | if (( |
|
| 50 | $reader->name === "line" && |
|