From c91b91816a7fe0261521aea877ab5d3a05a141b3 Mon Sep 17 00:00:00 2001 From: Chuck Crandall Date: Fri, 29 Oct 2021 11:13:08 -0600 Subject: [PATCH] Commenting out redirectlink and brokenlink rules for now, since the front-end isn't ready to support it. --- src/Rule/BrokenLink.php | 16 ++++++++-------- src/Rule/RedirectedLink.php | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) 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); }