Skip to content

Commit 6b4a43d

Browse files
committed
Functions/DynamicCalls: rename private property
Rename the `private` `$blacklisted_functions` property to `$function_names` to get rid of the use of a non-inclusive term.
1 parent b093d62 commit 6b4a43d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WordPressVIPMinimum/Sniffs/Functions/DynamicCallsSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DynamicCallsSniff extends Sniff {
3030
*
3131
* @var array
3232
*/
33-
private $blacklisted_functions = [
33+
private $function_names = [
3434
'assert' => true,
3535
'compact' => true,
3636
'extract' => true,
@@ -141,7 +141,7 @@ private function collect_variables() {
141141
*/
142142
$current_var_value = $this->strip_quotes( $this->tokens[ $value_ptr ]['content'] );
143143

144-
if ( isset( $this->blacklisted_functions[ $current_var_value ] ) === false ) {
144+
if ( isset( $this->function_names[ $current_var_value ] ) === false ) {
145145
// Text string is not one of the ones we're looking for.
146146
return;
147147
}

0 commit comments

Comments
 (0)