From 690f05a51d190586e0bb0426a0f04242224d0723 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Fri, 29 Nov 2024 18:12:11 -0300 Subject: [PATCH] I18nTextDomainFixer: remove unnecessary variable initialization Initializing the variable here is unnecessary as its value is immediately overridden in the if/else below. --- WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php | 1 - 1 file changed, 1 deletion(-) diff --git a/WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php b/WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php index 3d3ef9d42..af176326a 100644 --- a/WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php +++ b/WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php @@ -674,7 +674,6 @@ public function process_comments( $stackPtr ) { $regex = $this->plugin_header_regex; $headers = $this->plugin_headers; $type = 'plugin'; - $skip_to = $stackPtr; $file = TextStrings::stripQuotes( $this->phpcsFile->getFileName() ); if ( 'STDIN' === $file ) {