| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function getErrorsOnLine(string $file, int $lineNumber) |
||
| 13 | { |
||
| 14 | $errors = []; |
||
| 15 | foreach ($this->errorRanges[$file] as $error) { |
||
| 16 | if (( |
||
| 17 | $error['start'] <= $lineNumber && |
||
| 18 | $error['end'] >= $lineNumber |
||
| 19 | )) { |
||
| 20 | $errors[] = $error['error']; |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 24 | return $errors; |
||
| 25 | } |
||
| 36 |