Code Duplication    Length = 8-8 lines in 2 locations

app/Models/TaskRecurrenceModel.php 2 locations

@@ 40-47 (lines=8) @@
37
     *
38
     * @return array
39
     */
40
    public function getRecurrenceTriggerList()
41
    {
42
        return [
43
            TaskModel::RECURRING_TRIGGER_FIRST_COLUMN => t('When task is moved from first column'),
44
            TaskModel::RECURRING_TRIGGER_LAST_COLUMN  => t('When task is moved to last column'),
45
            TaskModel::RECURRING_TRIGGER_CLOSE        => t('When task is closed'),
46
        ];
47
    }
48
49
    /**
50
     * Return the list options to calculate recurrence due date.
@@ 67-74 (lines=8) @@
64
     *
65
     * @return array
66
     */
67
    public function getRecurrenceTimeframeList()
68
    {
69
        return [
70
            TaskModel::RECURRING_TIMEFRAME_DAYS   => t('Day(s)'),
71
            TaskModel::RECURRING_TIMEFRAME_MONTHS => t('Month(s)'),
72
            TaskModel::RECURRING_TIMEFRAME_YEARS  => t('Year(s)'),
73
        ];
74
    }
75
76
    /**
77
     * Duplicate recurring task.