Skip to content

Commit

Permalink
Use a more descriptive error message for indented doc blocks
Browse files Browse the repository at this point in the history
fixes #4
  • Loading branch information
AD7six committed Apr 25, 2012
1 parent 014b461 commit 9f6e45b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sniffs/WhiteSpace/ScopeIndentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) {

if ($isDocComment === true) {
// Doc block comments should be indented one less than the
// code that precedes them.
// code that precedes them. In reality this means not indented at all
if ($indent - 1 !== $column) {
$error = 'The DOC Comment must be not spaced';
$error = 'Doc blocks must not be indented';
$phpcsFile->addError($error, $firstToken, 'DocCommentStartColumn');
}
} else if ($column !== $indent) {
Expand Down

0 comments on commit 9f6e45b

Please sign in to comment.