/** * @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; } }
/** * 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; }