Skip to content

Commit

Permalink
Merge pull request #15 from cidilabs/chuck/remove-new-link-rules
Browse files Browse the repository at this point in the history
Commenting out redirectlink and brokenlink rules for now
  • Loading branch information
cidilabs authored Oct 29, 2021
2 parents 216dab1 + c91b918 commit 1a2ee4b
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 1a2ee4b

Please sign in to comment.