Skip to content

Commit

Permalink
Rever public method
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Aug 7, 2024
1 parent 433bb54 commit d83c4a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions WordPress/AbstractClassRestrictionsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
Expand All @@ -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 = '';
Expand Down
4 changes: 2 additions & 2 deletions WordPress/AbstractFunctionRestrictionsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
Expand All @@ -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;
Expand Down

0 comments on commit d83c4a8

Please sign in to comment.