示例#1
0
 /**
  * @param string $url
  */
 private function verifyUrl($url)
 {
     if (!filter_Var($url, FILTER_VALIDATE_URL)) {
         UrlParserException::invalidUrl($url);
     }
 }
 /**
  * 
  * @param boolean $ignoreVendorExtensionIssues
  * @return \webignition\CssValidatorOutput\Parser
  */
 public function setIgnoreVendorExtensionIssues($ignoreVendorExtensionIssues)
 {
     $this->ignoreVendorExtensionIssues = filter_Var($ignoreVendorExtensionIssues, FILTER_VALIDATE_BOOLEAN);
     return $this;
 }
示例#3
0
 /**
  * @param string $uri
  *
  * @throws Exceptions\InvalidURIException
  */
 public function setURI($uri)
 {
     $uri = filter_Var($uri, FILTER_VALIDATE_URL);
     if ($uri === false) {
         throw new InvalidURIException();
     }
     $this->uri = $uri;
 }