Code Duplication    Length = 3-4 lines in 3 locations

main/newscorm/learnpath.class.php 3 locations

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