original_string: public function xssFunc($data)
      {
          if (!\is_array($data)) {
              return Security::detectXss($data);
          }
  
          $results = Security::detectXssFromArray($data);
          $results_parts = array_map(function($value, $key) {
              return $key.': \''.$value . '\'';
          }, array_values($results), array_keys($results));
  
          return implode(', ', $results_parts);
      }
code: public function xssFunc($data)
      {
          if (!\is_array($data)) {
              return Security::detectXss($data);
          }
  
          $results = Security::detectXssFromArray($data);
          $results_parts = array_map(function($value, $key) {
              return $key.': \''.$value . '\'';
          }, array_values($results), array_keys($results));
  
          return implode(', ', $results_parts);
      }
code_tokens: public function xssFunc ( $ data ) { if ( ! \ is_array ( $ data ) ) { return Security :: detectXss ( $ data ) ; } $ results = Security :: detectXssFromArray ( $ data ) ; $ results_parts = array_map ( function ( $ value , $ key ) { return $ key . ': \'' . $ value . '\'' ; } , array_values ( $ results ) , array_keys ( $ results ) ) ; return implode ( ', ' , $ results_parts ) ; }
docstring: Allow quick check of a string for XSS Vulnerabilities
  
  @param string|array $data
  @return bool|string|array
docstring_tokens: Allow quick check of a string for XSS Vulnerabilities