diff --git a/StellarWP/Sniffs/Whitespace/DocCommentSpacingSniff.php b/StellarWP/Sniffs/Whitespace/DocCommentSpacingSniff.php index d9347cc..634ff0d 100644 --- a/StellarWP/Sniffs/Whitespace/DocCommentSpacingSniff.php +++ b/StellarWP/Sniffs/Whitespace/DocCommentSpacingSniff.php @@ -32,7 +32,7 @@ public function process( File $phpcsFile, $stackPtr ) { // Check if @since or @version is missing space. if ( preg_match( '/@(?:since|version)(\S+)/', $full_tag, $matches, PREG_OFFSET_CAPTURE ) ) { - $error = 'There should be exactly one space after the %s tag.'; + $error = 'There should be exactly one space after the `%s` tag.'; $version = $matches[1][0]; $tag = strstr( $full_tag, $version, true ); $data = [ $tag ]; @@ -54,7 +54,7 @@ public function process( File $phpcsFile, $stackPtr ) { // Check if @since or @version is followed by more than one space if ( strlen( $whitespace ) > 1 ) { - $error = 'There should be exactly one space after the %s tag, not multiple.'; + $error = 'There should be exactly one space after the `%s` tag, not multiple.'; $fix = $phpcsFile->addFixableError( $error, $stackPtr, 'ExtraSpaces', $full_tag ); if ( $fix ) {