From b99c31d2b06eb298442924f747e471a60019bf4b Mon Sep 17 00:00:00 2001 From: Rebecca Hum <16962021+rebeccahum@users.noreply.github.com> Date: Mon, 23 Nov 2020 12:40:38 -0700 Subject: [PATCH] Functions/DynamicCalls: Remove the word "blacklisted" and use "disallowed" in its place --- WordPressVIPMinimum/Sniffs/Functions/DynamicCallsSniff.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WordPressVIPMinimum/Sniffs/Functions/DynamicCallsSniff.php b/WordPressVIPMinimum/Sniffs/Functions/DynamicCallsSniff.php index 36c92021..c069696f 100644 --- a/WordPressVIPMinimum/Sniffs/Functions/DynamicCallsSniff.php +++ b/WordPressVIPMinimum/Sniffs/Functions/DynamicCallsSniff.php @@ -30,7 +30,7 @@ class DynamicCallsSniff extends Sniff { * * @var array */ - private $function_names = [ + private $disallowed_functions = [ 'assert' => true, 'compact' => true, 'extract' => true, @@ -141,7 +141,7 @@ private function collect_variables() { */ $current_var_value = $this->strip_quotes( $this->tokens[ $value_ptr ]['content'] ); - if ( isset( $this->function_names[ $current_var_value ] ) === false ) { + if ( isset( $this->disallowed_functions[ $current_var_value ] ) === false ) { // Text string is not one of the ones we're looking for. return; } @@ -167,7 +167,7 @@ private function find_dynamic_calls() { /* * If variable is not found in our registry of variables, do nothing, as we cannot be - * sure that the function being called is one of the blacklisted ones. + * sure that the function being called is one of the disallowed ones. */ if ( ! isset( $this->variables_arr[ $this->tokens[ $this->stackPtr ]['content'] ] ) ) { return;