From 9f9726a01a886b3dcced5327390470a56314aa56 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Mon, 2 Dec 2024 05:21:11 -0300 Subject: [PATCH] I18nTextDomainFixer: remove unnecessary variable initialization (#2513) 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 ) {