original_string: public function applyRulesets()
      {
          // List of fields which actually need validation at this time.
          $fields = $this->getActualFields();
  
          foreach ($fields as $field) {
              $rulesets = $this->getRules($field);
              $this->active_field = $field;
              $this->prefix = '';
              $this->caption = '';
              foreach ($rulesets as $rules) {
                  $this->applyRules($field, $rules);
              }
          }
  
          return $this;
      }
code: public function applyRulesets()
      {
          // List of fields which actually need validation at this time.
          $fields = $this->getActualFields();
  
          foreach ($fields as $field) {
              $rulesets = $this->getRules($field);
              $this->active_field = $field;
              $this->prefix = '';
              $this->caption = '';
              foreach ($rulesets as $rules) {
                  $this->applyRules($field, $rules);
              }
          }
  
          return $this;
      }
code_tokens: public function applyRulesets ( ) { // List of fields which actually need validation at this time. $ fields = $ this -> getActualFields ( ) ; foreach ( $ fields as $ field ) { $ rulesets = $ this -> getRules ( $ field ) ; $ this -> active_field = $ field ; $ this -> prefix = '' ; $ this -> caption = '' ; foreach ( $ rulesets as $ rules ) { $ this -> applyRules ( $ field , $ rules ) ; } } return $ this ; }
docstring: Go through the list of defined rules and call the corresponding
  filters and convertors.
docstring_tokens: Go through the list of defined rules and call the corresponding filters and convertors .