original_string: public function applyFilters($value, $rules = array())
      {
          $valueTO = $this->valueTO->forge($value);
          // loop through all the rules to validate $value.
          foreach ($rules as $rule => $parameter) {
              // skip rules with option as FALSE.
              if ($parameter === false) {
                  continue;
              }
              $this->filter->apply($rule, $valueTO, $parameter);
  
              // loop break.
              if ($valueTO->getBreak()) {
                  break;
              }
          }
  
          return $valueTO;
      }
code: public function applyFilters($value, $rules = array())
      {
          $valueTO = $this->valueTO->forge($value);
          // loop through all the rules to validate $value.
          foreach ($rules as $rule => $parameter) {
              // skip rules with option as FALSE.
              if ($parameter === false) {
                  continue;
              }
              $this->filter->apply($rule, $valueTO, $parameter);
  
              // loop break.
              if ($valueTO->getBreak()) {
                  break;
              }
          }
  
          return $valueTO;
      }
code_tokens: public function applyFilters ( $ value , $ rules = array ( ) ) { $ valueTO = $ this -> valueTO -> forge ( $ value ) ; // loop through all the rules to validate $value. foreach ( $ rules as $ rule => $ parameter ) { // skip rules with option as FALSE. if ( $ parameter === false ) { continue ; } $ this -> filter -> apply ( $ rule , $ valueTO , $ parameter ) ; // loop break. if ( $ valueTO -> getBreak ( ) ) { break ; } } return $ valueTO ; }
docstring: apply filters on a single value.
  
  @param string      $value
  @param array|Rules $rules
  @return ValueTO
docstring_tokens: apply filters on a single value .