| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class PhpMdStrict extends PhpMd |
||
| 11 | { |
||
| 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 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public static function getDescription(): string |
||
| 34 | } |
||
| 35 | } |
||
| 36 |