Code Duplication    Length = 8-9 lines in 2 locations

src/reminders/create.php 1 location

@@ 144-151 (lines=8) @@
141
142
    $error = reminder_validate($name, $subject);
143
144
    if ($error == NO_ERROR)
145
    {
146
        $error = reminder_create($name,
147
                                 $subject,
148
                                 $state_id,
149
                                 ($group_id < 0 ? NULL      : $group_id),
150
                                 ($group_id < 0 ? $group_id : REMINDER_FLAG_GROUP));
151
    }
152
153
    switch ($error)
154
    {

src/reminders/modify.php 1 location

@@ 86-94 (lines=9) @@
83
84
    $error = reminder_validate($name, $subject);
85
86
    if ($error == NO_ERROR)
87
    {
88
        $error = reminder_modify($id,
89
                                 $name,
90
                                 $subject,
91
                                 $state_id,
92
                                 ($group_id < 0 ? NULL      : $group_id),
93
                                 ($group_id < 0 ? $group_id : REMINDER_FLAG_GROUP));
94
    }
95
96
    switch ($error)
97
    {