Skip to content

Commit

Permalink
Commenting out redirectlink and brokenlink rules for now, since the f…
Browse files Browse the repository at this point in the history
…ront-end isn't ready to support it.
  • Loading branch information
webchuckweb committed Oct 29, 2021
1 parent 216dab1 commit c91b918
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions src/Rule/BrokenLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
16 changes: 8 additions & 8 deletions src/Rule/RedirectedLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c91b918

Please sign in to comment.