Code Duplication    Length = 13-13 lines in 2 locations

main/inc/lib/formvalidator/FormValidator.class.php 2 locations

@@ 685-697 (lines=13) @@
682
     *
683
     * @return HTML_QuickForm_button
684
     */
685
    public function addButtonPreview($label, $name = 'submit', $createElement = false)
686
    {
687
        return $this->addButton(
688
            $name,
689
            $label,
690
            'search',
691
            'primary',
692
            null,
693
            null,
694
            array(),
695
            $createElement
696
        );
697
    }
698
699
    /**
700
     * Returns a button with the primary color and a copy (double sheet) icon
@@ 707-719 (lines=13) @@
704
     *
705
     * @return HTML_QuickForm_button
706
     */
707
    public function addButtonCopy($label, $name = 'submit', $createElement = false)
708
    {
709
        return $this->addButton(
710
            $name,
711
            $label,
712
            'copy',
713
            'primary',
714
            null,
715
            null,
716
            array(),
717
            $createElement
718
        );
719
    }
720
721
    /**
722
     * @param string $name