Code Duplication    Length = 7-7 lines in 2 locations

main/lp/learnpath.class.php 2 locations

@@ 7381-7387 (lines=7) @@
7378
        $arrLP = isset($this->arrMenu) ? $this->arrMenu : null;
7379
        unset($this->arrMenu);
7380
7381
        if ($action == 'add') {
7382
            $legend = get_lang('CreateTheForum');
7383
        } elseif ($action == 'move') {
7384
            $legend = get_lang('MoveTheCurrentForum');
7385
        } else {
7386
            $legend = get_lang('EditCurrentForum');
7387
        }
7388
7389
        $form = new FormValidator(
7390
            'forum_form',
@@ 7595-7601 (lines=7) @@
7592
        );
7593
        $defaults = [];
7594
7595
        if ($action == 'add') {
7596
            $legend = get_lang('CreateTheForum');
7597
        } elseif ($action == 'move') {
7598
            $legend = get_lang('MoveTheCurrentForum');
7599
        } else {
7600
            $legend = get_lang('EditCurrentForum');
7601
        }
7602
7603
        $form->addHeader($legend);
7604
        $selectParent = $form->addSelect(