Code Duplication    Length = 3-4 lines in 3 locations

main/newscorm/learnpath.class.php 3 locations

@@ 6961-6964 (lines=4) @@
6958
6959
        $form->addHeader($legend);
6960
6961
        if ($action != 'move') {
6962
            $form->addText('title', get_lang('Title'), true, ['id' => 'idTitle', 'class' => 'learnpath_item_form']);
6963
            $defaults['title'] = $item_title;
6964
        }
6965
6966
        $selectParent = $form->addSelect(
6967
            'parent',
@@ 7920-7923 (lines=4) @@
7917
7918
        $form->addHeader($legend);
7919
7920
        if ($action != 'move') {
7921
            $form->addText('title', get_lang('Title'), true, ['class' => 'learnpath_item_form']);
7922
            $defaults['title'] = $item_title;
7923
        }
7924
7925
        $selectParent = $form->addSelect(
7926
            'parent',
@@ 8129-8131 (lines=3) @@
8126
            $form->addHeader(get_lang('EditCurrentStudentPublication'));
8127
        }
8128
8129
        if ($action != 'move') {
8130
            $form->addText('title', get_lang('Title'), true, ['class' => 'learnpath_item_form', 'id' => 'idTitle']);
8131
        }
8132
8133
        $parentSelect = $form->addSelect(
8134
            'parent',