Skip to content

Commit

Permalink
Fix logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
exussum12 authored Aug 11, 2017
1 parent 946d23e commit 104391c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpMdLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public function isValidLine($file, $lineNumber)
$valid = true;
foreach ($this->errorRanges[$file] as $number => $errors) {
if ((
$errors['start'] >= $lineNumber &&
$errors['end'] <= $lineNumber
$errors['start'] <= $lineNumber &&
$errors['end'] >= $lineNumber
)) {
//unset this error
unset($this->errorRanges[$file][$number]);
Expand Down

0 comments on commit 104391c

Please sign in to comment.