Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amieiro committed Nov 4, 2024
1 parent 436cd25 commit 7f311cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WordPress/Sniffs/WP/I18nSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ private function check_string_has_no_html_wrapper( $matched_content, $param_name
private function check_string_has_no_leading_trailing_spaces( $matched_content, $param_name, $param_info ) {
// Strip surrounding quotes.
$content_without_quotes = TextStrings::stripQuotes( $param_info['clean'] );
$first_non_empty = $this->phpcsFile->findNext( Tokens::$emptyTokens, $param_info['start'], ( $param_info['end'] + 1 ), true );
$first_non_empty = $this->phpcsFile->findNext( Tokens::$emptyTokens, $param_info['start'], ( $param_info['end'] + 1 ), true );

if ( ltrim( $content_without_quotes ) !== $content_without_quotes ) {
$this->phpcsFile->addError(
Expand Down

0 comments on commit 7f311cb

Please sign in to comment.