Code Duplication    Length = 12-12 lines in 2 locations

class.FlipPage.php 1 location

@@ 564-575 (lines=12) @@
561
        return $ret;
562
    }
563
564
    protected function getLinkByName($name, $links)
565
    {
566
        if(is_array($links[$name]))
567
        {
568
            return $this->getDropdown($links[$name], $name);
569
        }
570
        if($links[$name] === false)
571
        {
572
            return '<li>'.$name.'</li>';
573
        }
574
        return '<li>'.$this->createLink($name, $links[$name]).'</li>';
575
    }
576
577
    protected function getLinksMenus()
578
    {

Http/Html/class.FlipPage.php 1 location

@@ 551-562 (lines=12) @@
548
        $ret .= '</ul></li>';
549
        return $ret;
550
    }
551
    protected function getLinkByName($name, $links)
552
    {
553
        if(is_array($links[$name]))
554
        {
555
            return $this->getDropdown($links[$name], $name);
556
        }
557
        if($links[$name] === false)
558
        {
559
            return '<li>'.$name.'</li>';
560
        }
561
        return '<li>'.$this->createLink($name, $links[$name]).'</li>';
562
    }
563
    protected function getLinksMenus()
564
    {
565
        $names = array_keys($this->links);