diff --git a/src/Rule/BrokenLink.php b/src/Rule/BrokenLink.php index c0c0475..b2150dd 100644 --- a/src/Rule/BrokenLink.php +++ b/src/Rule/BrokenLink.php @@ -19,14 +19,14 @@ public function id() public function check() { - $links = array(); - foreach ($this->getAllElements('a') as $a) { - $href = $a->getAttribute('href'); - if ($href) { - $links[$href] = $a; - } - } - $this->checkLink($links); + // $links = array(); + // foreach ($this->getAllElements('a') as $a) { + // $href = $a->getAttribute('href'); + // if ($href) { + // $links[$href] = $a; + // } + // } + // $this->checkLink($links); return count($this->issues); } diff --git a/src/Rule/RedirectedLink.php b/src/Rule/RedirectedLink.php index 63e493c..613a5fa 100644 --- a/src/Rule/RedirectedLink.php +++ b/src/Rule/RedirectedLink.php @@ -19,14 +19,14 @@ public function id() public function check() { - $links = array(); - foreach ($this->getAllElements('a') as $a) { - $href = $a->getAttribute('href'); - if ($href) { - $links[$href] = $a; - } - } - $this->checkLink($links); + // $links = array(); + // foreach ($this->getAllElements('a') as $a) { + // $href = $a->getAttribute('href'); + // if ($href) { + // $links[$href] = $a; + // } + // } + // $this->checkLink($links); return count($this->issues); }