Code Duplication    Length = 4-4 lines in 3 locations

src/dbo/events.php 3 locations

@@ 224-227 (lines=4) @@
221
222
    switch ($event_type)
223
    {
224
        case EVENT_RECORD_CREATED:
225
            $state = state_find($event_param);
226
            $res = ustrprocess(get_html_resource(RES_EVENT_RECORD_CREATED_ID, $locale), ustr2html($state['state_name']));
227
            break;
228
229
        case EVENT_RECORD_ASSIGNED:
230
            $account = account_find($event_param);
@@ 238-241 (lines=4) @@
235
            $res = get_html_resource(RES_EVENT_RECORD_MODIFIED_ID, $locale);
236
            break;
237
238
        case EVENT_RECORD_STATE_CHANGED:
239
            $state = state_find($event_param);
240
            $res = ustrprocess(get_html_resource(RES_EVENT_RECORD_STATE_CHANGED_ID, $locale), ustr2html($state['state_name']));
241
            break;
242
243
        case EVENT_RECORD_POSTPONED:
244
            $res = ustrprocess(get_html_resource(RES_EVENT_RECORD_POSTPONED_ID, $locale), get_date($event_param, $locale));
@@ 251-254 (lines=4) @@
248
            $res = get_html_resource(RES_EVENT_RECORD_RESUMED_ID, $locale);
249
            break;
250
251
        case EVENT_RECORD_REOPENED:
252
            $state = state_find($event_param);
253
            $res = ustrprocess(get_html_resource(RES_EVENT_RECORD_REOPENED_ID, $locale), ustr2html($state['state_name']));
254
            break;
255
256
        case EVENT_COMMENT_ADDED:
257
            $res = get_html_resource(RES_EVENT_COMMENT_ADDED_ID, $locale);