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