diff --git a/WordPress/Sniffs/WP/I18nSniff.php b/WordPress/Sniffs/WP/I18nSniff.php index 284ee4297c..78d28900ce 100644 --- a/WordPress/Sniffs/WP/I18nSniff.php +++ b/WordPress/Sniffs/WP/I18nSniff.php @@ -553,8 +553,8 @@ protected function check_for_translator_comment( $stack_ptr, $args ) { if ( T_COMMENT === $this->tokens[ $previous_comment ]['code'] ) { $comment_text = trim( $this->tokens[ $previous_comment ]['content'] ); - // If it's multi-line /* */ comment, collect all the parts. - if ( '*/' === substr( $comment_text, -2 ) && '/*' !== substr( $comment_text, 0, 2 ) ) { + // If it's multi-line /* */ comment, collect all the parts. + if ( '*/' === substr( $comment_text, -2 ) && '/*' !== substr( $comment_text, 0, 2 ) ) { for ( $i = ( $previous_comment - 1 ); 0 <= $i; $i-- ) { if ( T_COMMENT !== $this->tokens[ $i ]['code'] ) { break; @@ -564,7 +564,7 @@ protected function check_for_translator_comment( $stack_ptr, $args ) { } } - if ( true === $this->is_translators_comment( $comment_text ) ) { + if ( true === $this->is_translators_comment( $comment_text ) ) { // Comment is ok. return; }