Skip to content

Commit

Permalink
Merge pull request ongr-archive#8 from lauriis2/master
Browse files Browse the repository at this point in the history
Fix grammar in error message (Closes ongr-archive#7)
  • Loading branch information
tautrimas committed Nov 21, 2014
2 parents a7e6fc3 + d082a29 commit 230b7ee
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 230b7ee

Please sign in to comment.