Code Duplication    Length = 12-13 lines in 2 locations

app/Models/ProjectDuplicationModel.php 2 locations

@@ 27-38 (lines=12) @@
24
     *
25
     * @return string[]
26
     */
27
    public function getOptionalSelection()
28
    {
29
        return [
30
            'categoryModel',
31
            'projectPermissionModel',
32
            'actionModel',
33
            'swimlaneModel',
34
            'tagDuplicationModel',
35
            'projectMetadataModel',
36
            'projectTaskDuplicationModel',
37
        ];
38
    }
39
40
    /**
41
     * Get list of all possible models to duplicate.
@@ 45-57 (lines=13) @@
42
     *
43
     * @return string[]
44
     */
45
    public function getPossibleSelection()
46
    {
47
        return [
48
            'boardModel',
49
            'categoryModel',
50
            'projectPermissionModel',
51
            'actionModel',
52
            'swimlaneModel',
53
            'tagDuplicationModel',
54
            'projectMetadataModel',
55
            'projectTaskDuplicationModel',
56
        ];
57
    }
58
59
    /**
60
     * Get a valid project name for the duplication.