Code Duplication    Length = 3-4 lines in 3 locations

main/newscorm/learnpath.class.php 3 locations

@@ 6952-6955 (lines=4) @@
6949
6950
        $form->addHeader($legend);
6951
6952
        if ($action != 'move') {
6953
            $form->addText('title', get_lang('Title'), true, ['id' => 'idTitle', 'class' => 'learnpath_item_form']);
6954
            $defaults['title'] = $item_title;
6955
        }
6956
6957
        $selectParent = $form->addSelect(
6958
            'parent',
@@ 7911-7914 (lines=4) @@
7908
7909
        $form->addHeader($legend);
7910
7911
        if ($action != 'move') {
7912
            $form->addText('title', get_lang('Title'), true, ['class' => 'learnpath_item_form']);
7913
            $defaults['title'] = $item_title;
7914
        }
7915
7916
        $selectParent = $form->addSelect(
7917
            'parent',
@@ 8120-8122 (lines=3) @@
8117
            $form->addHeader(get_lang('EditCurrentStudentPublication'));
8118
        }
8119
8120
        if ($action != 'move') {
8121
            $form->addText('title', get_lang('Title'), true, ['class' => 'learnpath_item_form', 'id' => 'idTitle']);
8122
        }
8123
8124
        $parentSelect = $form->addSelect(
8125
            'parent',