File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
StellarWP/Sniffs/Whitespace Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments