Lines Matching refs:error
88 … $error = strtoupper($type).' keyword must be lowercase; expected "%s" but found "%s"';
94 $fix = $phpcsFile->addFixableError($error, $nextCase, $type.'NotLower', $data);
104 $error = 'CASE keyword must be followed by a single space';
105 $fix = $phpcsFile->addFixableError($error, $nextCase, 'SpacingAfterCase');
119 … $error = 'There must be no space before the colon in a '.strtoupper($type).' statement';
120 … $fix = $phpcsFile->addFixableError($error, $nextCase, 'SpaceBeforeColon'.strtoupper($type));
135 … $error = 'The '.strtoupper($type).' body must start on the line following the statement';
136 … $fix = $phpcsFile->addFixableError($error, $nextCase, 'BodyOnNextLine'.strtoupper($type));
163 $error = 'Terminating statement must be on a line by itself';
164 … $fix = $phpcsFile->addFixableError($error, $nextCloser, 'BreakNotNewLine');
172 … $error = 'Terminating statement must be indented to the same level as the CASE body';
173 … $fix = $phpcsFile->addFixableError($error, $nextCloser, 'BreakIndent');
185 $error = strtoupper($type).' statements must be defined using a colon';
186 $phpcsFile->addError($error, $nextCase, 'WrongOpener'.$type);
209 … $error = 'There must be a comment when fall-through is intentional in a non-empty case body';
210 $phpcsFile->addError($error, $nextCase, 'TerminatingComment');