Code Duplication    Length = 14-14 lines in 2 locations

class.FlipPage.php 1 location

@@ 549-562 (lines=14) @@
546
        return '#';
547
    }
548
549
    protected function getDropdown($link, $name)
550
    {
551
        $ret = '<li class="dropdown">';
552
        $href = $this->getHrefForDropdown($link);
553
        $ret .= '<a href="'.$href.'" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">'.$name.' <span class="caret"></span></a>';
554
        $ret .= '<ul class="dropdown-menu">';
555
        $subNames = array_keys($link);
556
        foreach($subNames as $subName)
557
        {
558
            $ret .= $this->getLinkByName($subName, $link);
559
        }
560
        $ret .= '</ul></li>';
561
        return $ret;
562
    }
563
564
    protected function getLinkByName($name, $links)
565
    {

Http/Html/class.FlipPage.php 1 location

@@ 537-550 (lines=14) @@
534
        return '#';
535
    }
536
537
    protected function getDropdown($link, $name)
538
    {
539
        $ret = '<li class="dropdown">';
540
        $href = $this->getHrefForDropdown($link);
541
        $ret .= '<a href="'.$href.'" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">'.$name.' <span class="caret"></span></a>';
542
        $ret .= '<ul class="dropdown-menu">';
543
        $subNames = array_keys($link);
544
        foreach($subNames as $subName)
545
        {
546
            $ret .= $this->getLinkByName($subName, $link);
547
        }
548
        $ret .= '</ul></li>';
549
        return $ret;
550
    }
551
    protected function getLinkByName($name, $links)
552
    {
553
        if(is_array($links[$name]))