Code Duplication    Length = 11-11 lines in 2 locations

class.FlipPage.php 1 location

@@ 521-531 (lines=11) @@
518
519
    }
520
521
    protected function getSiteLinksForHeader()
522
    {
523
        $sites = $this->getSites();
524
        $names = array_keys($sites);
525
        $ret = '';
526
        foreach($names as $name)
527
        {
528
            $ret .= '<li>'.$this->createLink($name, $sites[$name]).'</li>';
529
        }
530
        return $ret;
531
    }
532
533
    /**
534
     * Get the link for the HREF

Http/Html/class.FlipPage.php 1 location

@@ 510-520 (lines=11) @@
507
        $this->addWellKnownCSS(CSS_BOOTSTRAP);
508
        $this->addWellKnownCSS(CSS_FONTAWESOME);
509
    }
510
    protected function getSiteLinksForHeader()
511
    {
512
        $sites = $this->getSites();
513
        $names = array_keys($sites);
514
        $ret = '';
515
        foreach($names as $name)
516
        {
517
            $ret .= '<li>'.$this->createLink($name, $sites[$name]).'</li>';
518
        }
519
        return $ret;
520
    }
521
    /**
522
     * Get the link for the HREF
523
     *