original_string: public function email(array $options) {
          if (empty($this->elementData) || filter_var($this->elementData, FILTER_VALIDATE_EMAIL)) {
              $this->elementData = filter_var($this->elementData, FILTER_SANITIZE_EMAIL);
              return true;
          }
  
          $this->addError($this->checkMessage('Invalid email adddress', $options));
          return false;
      }
code: public function email(array $options) {
          if (empty($this->elementData) || filter_var($this->elementData, FILTER_VALIDATE_EMAIL)) {
              $this->elementData = filter_var($this->elementData, FILTER_SANITIZE_EMAIL);
              return true;
          }
  
          $this->addError($this->checkMessage('Invalid email adddress', $options));
          return false;
      }
code_tokens: public function email ( array $ options ) { if ( empty ( $ this -> elementData ) || filter_var ( $ this -> elementData , FILTER_VALIDATE_EMAIL ) ) { $ this -> elementData = filter_var ( $ this -> elementData , FILTER_SANITIZE_EMAIL ) ; return true ; } $ this -> addError ( $ this -> checkMessage ( 'Invalid email adddress' , $ options ) ) ; return false ; }
docstring: Checks if the value of the element is a valid email address
  @param string $name Name of the element to filter
  @param  array $options Keys may include [message]
  @return boolean
docstring_tokens: Checks if the value of the element is a valid email address