You are here

public property DiscouragedFunctionsSniff::$forbiddenFunctions in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/Functions/DiscouragedFunctionsSniff.php \Drupal\Sniffs\Functions\DiscouragedFunctionsSniff::forbiddenFunctions
  2. 8.3.x coder_sniffer/Drupal/Sniffs/Functions/DiscouragedFunctionsSniff.php \Drupal\Sniffs\Functions\DiscouragedFunctionsSniff::forbiddenFunctions

A list of forbidden functions with their alternatives.

The value is NULL if no alternative exists, i.e., the function should just not be used.

Type: array(string => string|null)

File

coder_sniffer/Drupal/Sniffs/Functions/DiscouragedFunctionsSniff.php, line 32

Class

DiscouragedFunctionsSniff
Discourage the use of debug functions.

Namespace

Drupal\Sniffs\Functions

Code

public $forbiddenFunctions = array(
  // Devel module debugging functions.
  'dargs' => null,
  'dcp' => null,
  'dd' => null,
  'dfb' => null,
  'dfbt' => null,
  'dpm' => null,
  'dpq' => null,
  'dpr' => null,
  'dprint_r' => null,
  'drupal_debug' => null,
  'dsm' => null,
  'dvm' => null,
  'dvr' => null,
  'kdevel_print_object' => null,
  'kpr' => null,
  'kprint_r' => null,
  'sdpm' => null,
  // Functions which are not available on all
  // PHP builds.
  'fnmatch' => null,
  // Functions which are a security risk.
  'eval' => null,
);