Lines Matching refs:error

65                     $error = 'Only 1 @return tag is allowed in a function comment';
66 $phpcsFile->addError($error, $tag, 'DuplicateReturn');
81 $error = 'Return type missing for @return tag in function comment';
82 $phpcsFile->addError($error, $return, 'MissingReturnType');
104 $error = 'Expected "%s" but found "%s" for function return type';
109 $fix = $phpcsFile->addFixableError($error, $return, 'InvalidReturn', $data);
147 … $error = 'Function return type is void, but function contains return statement';
148 $phpcsFile->addError($error, $return, 'InvalidReturnVoid');
159 … $error = 'Function return type is not void, but function has no return statement';
160 $phpcsFile->addError($error, $return, 'InvalidNoReturn');
164 … $error = 'Function return type is not void, but function is returning void here';
165 $phpcsFile->addError($error, $returnToken, 'InvalidReturnNotVoid');
172 $error = 'Missing @return tag in function comment';
173 $phpcsFile->addError($error, $tokens[$commentStart]['comment_closer'], 'MissingReturn');
211 $error = 'Exception type and comment missing for @throws tag in function comment';
212 $phpcsFile->addError($error, $tag, 'InvalidThrows');
214 $error = 'Comment missing for @throws tag in function comment';
215 $phpcsFile->addError($error, $tag, 'EmptyThrows');
233 $error = '@throws tag comment must start with a capital letter';
234 $phpcsFile->addError($error, ($tag + 2), 'ThrowsNotCapital');
239 $error = '@throws tag comment must end with a full stop';
240 $phpcsFile->addError($error, ($tag + 2), 'ThrowsNoFullStop');
336 $error = 'Missing parameter comment';
337 $phpcsFile->addError($error, $tag, 'MissingParamComment');
341 $error = 'Missing parameter name';
342 $phpcsFile->addError($error, $tag, 'MissingParamName');
345 $error = 'Missing parameter type';
346 $phpcsFile->addError($error, $tag, 'MissingParamType');
416 $error = 'Type hint "%s" missing for %s';
431 $phpcsFile->addError($error, $stackPtr, $errorCode, $data);
433 $error = 'Expected type hint "%s"; found "%s" for %s';
439 $phpcsFile->addError($error, $stackPtr, 'IncorrectTypeHint', $data);
444 $error = 'Unknown type hint "%s" found for %s';
449 $phpcsFile->addError($error, $stackPtr, 'InvalidTypeHint', $data);
456 $error = 'Expected "%s" but found "%s" for parameter type';
462 … $fix = $phpcsFile->addFixableError($error, $param['tag'], 'IncorrectParamVarName', $data);
515 $error = 'Doc comment for parameter %s does not match ';
517 $error .= 'case of ';
521 $error .= 'actual variable name %s';
523 $phpcsFile->addError($error, $param['tag'], $code, $data);
527 $error = 'Superfluous parameter comment';
528 $phpcsFile->addError($error, $param['tag'], 'ExtraParamComment');
540 $error = 'Parameter comment must start with a capital letter';
541 $phpcsFile->addError($error, $param['tag'], 'ParamCommentNotCapital');
546 $error = 'Parameter comment must end with a full stop';
547 $phpcsFile->addError($error, $param['tag'], 'ParamCommentFullStop');
559 $error = 'Doc comment for parameter "%s" missing';
561 $phpcsFile->addError($error, $commentStart, 'MissingParamTag', $data);
582 $error = 'Expected %s spaces after parameter type; %s found';
588 … $fix = $phpcsFile->addFixableError($error, $param['tag'], 'SpacingAfterParamType', $data);
637 $error = 'Expected %s spaces after parameter name; %s found';
643 … $fix = $phpcsFile->addFixableError($error, $param['tag'], 'SpacingAfterParamName', $data);