Esempio n. 1
0
 /**
  *
  */
 public function __construct($name = NULL)
 {
     // Build the list of PHP blacklisted functions.
     $this->checks[] = '/var_dump\\(/';
     $this->checks[] = '/print_r\\(/';
     $this->checks[] = '/die\\(/';
     // Blacklist Drupal's built-in debugging function.
     $this->checks[] = '/debug\\(/';
     // Blacklist Devel's debugging functions.
     $this->checks[] = '/dpm\\(/';
     $this->checks[] = '/krumo\\(/';
     $this->checks[] = '/dpr\\(/';
     $this->checks[] = '/dsm\\(/';
     $this->checks[] = '/dd\\(/';
     $this->checks[] = '/ddebug_backtrace\\(/';
     $this->checks[] = '/dpq\\(/';
     $this->checks[] = '/dprint_r\\(/';
     $this->checks[] = '/drupal_debug\\(/';
     $this->checks[] = '/dsm\\(/';
     $this->checks[] = '/dvm\\(/';
     $this->checks[] = '/dvr\\(/';
     $this->checks[] = '/kpr\\(/';
     $this->checks[] = '/kprint_r\\(/';
     $this->checks[] = '/kdevel_print_object\\(/';
     $this->checks[] = '/kdevel_print_object\\(/';
     // Blacklist code conflicts resulting from Git merge.
     $this->checks[] = '/<<<<<<</';
     $this->checks[] = '/>>>>>>>/';
     // Blacklist Javascript debugging functions.
     $this->checks[] = '/console.log\\(/';
     $this->checks[] = '/alert\\(/';
     parent::__construct($name);
 }