From d83c4a85bb506a6c91ea0fb89fc44e895b8df725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Wed, 7 Aug 2024 08:48:07 +0000 Subject: [PATCH] Rever public method --- WordPress/AbstractClassRestrictionsSniff.php | 4 ++-- WordPress/AbstractFunctionRestrictionsSniff.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WordPress/AbstractClassRestrictionsSniff.php b/WordPress/AbstractClassRestrictionsSniff.php index 66f1b058f..e41cd3631 100644 --- a/WordPress/AbstractClassRestrictionsSniff.php +++ b/WordPress/AbstractClassRestrictionsSniff.php @@ -102,7 +102,7 @@ public function process_token( $stackPtr ) { return; } - if ( true === $this->is_targeted_token( $stackPtr ) ) { + if ( true === $this->is_targetted_token( $stackPtr ) ) { return $this->check_for_matches( $stackPtr ); } } @@ -116,7 +116,7 @@ public function process_token( $stackPtr ) { * * @return bool */ - public function is_targeted_token( $stackPtr ) { + public function is_targetted_token( $stackPtr ) { $token = $this->tokens[ $stackPtr ]; $classname = ''; diff --git a/WordPress/AbstractFunctionRestrictionsSniff.php b/WordPress/AbstractFunctionRestrictionsSniff.php index 56d6ea5b0..3523764b9 100644 --- a/WordPress/AbstractFunctionRestrictionsSniff.php +++ b/WordPress/AbstractFunctionRestrictionsSniff.php @@ -208,7 +208,7 @@ public function process_token( $stackPtr ) { return; } - if ( true === $this->is_targeted_token( $stackPtr ) ) { + if ( true === $this->is_targetted_token( $stackPtr ) ) { return $this->check_for_matches( $stackPtr ); } } @@ -222,7 +222,7 @@ public function process_token( $stackPtr ) { * * @return bool */ - public function is_targeted_token( $stackPtr ) { + public function is_targetted_token( $stackPtr ) { // Exclude function definitions, class methods, and namespaced calls. if ( ContextHelper::has_object_operator_before( $this->phpcsFile, $stackPtr ) === true ) { return false;