original_string: public function is($value, $rules)
      {
          $valTO = $this->apply($value, $rules);
          if ($valTO->fails()) {
              return false;
          }
  
          return $valTO->getValue();
      }
code: public function is($value, $rules)
      {
          $valTO = $this->apply($value, $rules);
          if ($valTO->fails()) {
              return false;
          }
  
          return $valTO->getValue();
      }
code_tokens: public function is ( $ value , $ rules ) { $ valTO = $ this -> apply ( $ value , $ rules ) ; if ( $ valTO -> fails ( ) ) { return false ; } return $ valTO -> getValue ( ) ; }
docstring: validates a text value, or an array of text values.
  returns the filtered value, or false if validation fails.
  
  @param string|array $value
  @param array|Rules $rules
  @return bool|string
docstring_tokens: validates a text value or an array of text values . returns the filtered value or false if validation fails .