Code Duplication    Length = 10-10 lines in 2 locations

class.FlipPage.php 1 location

@@ 765-774 (lines=10) @@
762
     * @param boolean|string $url The URL to link to
763
     * @param boolean|array $submenu Any submenu items for the dropdown
764
     */
765
    public function addLink($name, $url = false, $submenu = false)
766
    {
767
        if(is_array($submenu))
768
        {
769
            $submenu['_'] = $url;
770
            $this->links[$name] = $submenu;
771
            return;
772
        }
773
        $this->links[$name] = $url;
774
    }
775
776
    /**
777
     * Add the login form to the page

Http/Html/class.FlipPage.php 1 location

@@ 729-738 (lines=10) @@
726
     * @param boolean|string $url The URL to link to
727
     * @param boolean|array $submenu Any submenu items for the dropdown
728
     */
729
    public function addLink($name, $url = false, $submenu = false)
730
    {
731
        if(is_array($submenu))
732
        {
733
            $submenu['_'] = $url;
734
            $this->links[$name] = $submenu;
735
            return;
736
        }
737
        $this->links[$name] = $url;
738
    }
739
740
    /**
741
     * Add the login form to the page