function EmptyCommentSniff::isEmpty
3 calls to EmptyCommentSniff::isEmpty()
- EmptyCommentSniff::isNonEmptyLineCommentAfter in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Commenting/ EmptyCommentSniff.php - EmptyCommentSniff::isNonEmptyLineCommentBefore in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Commenting/ EmptyCommentSniff.php - EmptyCommentSniff::process in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Commenting/ EmptyCommentSniff.php - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
File
-
vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Commenting/ EmptyCommentSniff.php, line 108
Class
Namespace
SlevomatCodingStandard\Sniffs\CommentingCode
private function isEmpty(string $comment, bool $isLineComment) : bool {
return $isLineComment ? (bool) preg_match('~^\\s*$~', $comment) : (bool) preg_match('~^[\\s\\*]*$~', $comment);
}