Code Duplication    Length = 7-7 lines in 2 locations

main/lp/learnpath.class.php 2 locations

@@ 7333-7339 (lines=7) @@
7330
        $arrLP = isset($this->arrMenu) ? $this->arrMenu : null;
7331
        unset($this->arrMenu);
7332
7333
        if ($action == 'add') {
7334
            $legend = get_lang('CreateTheForum');
7335
        } elseif ($action == 'move') {
7336
            $legend = get_lang('MoveTheCurrentForum');
7337
        } else {
7338
            $legend = get_lang('EditCurrentForum');
7339
        }
7340
7341
        $form = new FormValidator(
7342
            'forum_form',
@@ 7547-7553 (lines=7) @@
7544
        );
7545
        $defaults = [];
7546
7547
        if ($action == 'add') {
7548
            $legend = get_lang('CreateTheForum');
7549
        } elseif ($action == 'move') {
7550
            $legend = get_lang('MoveTheCurrentForum');
7551
        } else {
7552
            $legend = get_lang('EditCurrentForum');
7553
        }
7554
7555
        $form->addHeader($legend);
7556
        $selectParent = $form->addSelect(