Exemplo n.º 1
0
 /**
  * @param string $href
  *
  * @return bool
  */
 private function isHyperRefIgnored($href)
 {
     $file_path = $this->getFilePathWithRootDir($href);
     if (file_exists($file_path)) {
         return $this->search->isPathIgnored($file_path);
     } else {
         return true;
     }
 }
Exemplo n.º 2
0
 /**
  * Return whether the entry is valid
  *
  * @return bool
  */
 public function isValid()
 {
     $is_valid = false;
     if ($this->_search->isValid()) {
         if (!empty($this->_filepath)) {
             if (!$this->_search->isPathIgnored($this->_filepath) && file_exists($this->_filepath)) {
                 $is_valid = true;
             }
         }
     }
     return $is_valid;
 }