Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions StellarWP/Sniffs/Whitespace/DocCommentSpacingSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand All @@ -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 ) {
Expand Down