Skip to content
Permalink
Browse files

Removed else statement from controller

  • Loading branch information...
tbuteler committed Mar 24, 2016
1 parent 4877a27 commit ba5fecd0770b593e994d435c08f926872f3bec20
Showing with 5 additions and 8 deletions.
  1. +5 −8 src/Controller.php
@@ -28,15 +28,12 @@ protected function isGroup($var)
protected function addLink($link, $lastmod = null, $priority = null, $changefreq = null)
{
if ($this->isGroup($link)) {
foreach ($link as $l) {
$this->addLink($l, $lastmod, $priority, $changefreq);
}
} else {
if (!$this->isGroup($link)) {
return $this->sitemap->addLink($link, $lastmod, $priority, $changefreq);
}
$this->sitemap->addLink($link, $lastmod, $priority, $changefreq);
foreach ($link as $l) {
$this->addLink($l, $lastmod, $priority, $changefreq);
}
}

0 comments on commit ba5fecd

Please sign in to comment.
You can’t perform that action at this time.