Skip to content

Commit bb7ea48

Browse files
authored
Wrap the tags in backticks to prevent tagging people on GitHub. (#25)
See: the-events-calendar/event-tickets#3784 (comment)
2 parents 86ebe9d + 1e09183 commit bb7ea48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

StellarWP/Sniffs/Whitespace/DocCommentSpacingSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function process( File $phpcsFile, $stackPtr ) {
3232

3333
// Check if @since or @version is missing space.
3434
if ( preg_match( '/@(?:since|version)(\S+)/', $full_tag, $matches, PREG_OFFSET_CAPTURE ) ) {
35-
$error = 'There should be exactly one space after the %s tag.';
35+
$error = 'There should be exactly one space after the `%s` tag.';
3636
$version = $matches[1][0];
3737
$tag = strstr( $full_tag, $version, true );
3838
$data = [ $tag ];
@@ -54,7 +54,7 @@ public function process( File $phpcsFile, $stackPtr ) {
5454

5555
// Check if @since or @version is followed by more than one space
5656
if ( strlen( $whitespace ) > 1 ) {
57-
$error = 'There should be exactly one space after the %s tag, not multiple.';
57+
$error = 'There should be exactly one space after the `%s` tag, not multiple.';
5858
$fix = $phpcsFile->addFixableError( $error, $stackPtr, 'ExtraSpaces', $full_tag );
5959

6060
if ( $fix ) {

0 commit comments

Comments
 (0)