original_string: public function createValidator(Array $simpleRules = array()) {
      $validator = new Validator();
      
      if (count($simpleRules) > 0) {
        $validator->addSimpleRules($simpleRules);
      }
      return $validator;
    }
code: public function createValidator(Array $simpleRules = array()) {
      $validator = new Validator();
      
      if (count($simpleRules) > 0) {
        $validator->addSimpleRules($simpleRules);
      }
      return $validator;
    }
code_tokens: public function createValidator ( Array $ simpleRules = array ( ) ) { $ validator = new Validator ( ) ; if ( count ( $ simpleRules ) > 0 ) { $ validator -> addSimpleRules ( $ simpleRules ) ; } return $ validator ; }
docstring: Erstellt einen Validator mit den SimpleRules
  
  'field'=>'nes'
  
  $validator->validate('field', $formValue);
docstring_tokens: Erstellt einen Validator mit den SimpleRules