Skip to content

Commit

Permalink
Fix grammar in error message (Closes ongr-archive#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurynas Gavienas committed Nov 21, 2014
1 parent a7e6fc3 commit d082a29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sniffs/Commenting/DocCommentAlignmentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
$data = array($length);
$phpcsFile->addError($error, $commentPointer, 'SpaceBeforeTag', $data);
} else {
$length -= 1;
if ($length > 0 && $length % 4 !== 0) {
$error = 'Space between asterisk and tag must be dividable by 4';
$remainingSpaces = $length - 1;
if ($remainingSpaces > 0 && $remainingSpaces % 4 !== 0) {
$error = 'Space between asterisk and tag must be divisible by 4';
$phpcsFile->addError($error, $commentPointer, 'SpaceBeforeTag');
}
}
Expand Down

0 comments on commit d082a29

Please sign in to comment.