Code Duplication    Length = 4-4 lines in 2 locations

main/work/work.lib.php 2 locations

@@ 4290-4293 (lines=4) @@
4287
4288
    $currentDate = substr(api_get_local_time(), 0, 10);
4289
4290
    if (!isset($defaults['expires_on'])) {
4291
        $date = substr($currentDate, 0, 10);
4292
        $defaults['expires_on'] = $date.' 23:59';
4293
    }
4294
4295
    if (!isset($defaults['ends_on'])) {
4296
        $date = substr($currentDate, 0, 10);
@@ 4295-4298 (lines=4) @@
4292
        $defaults['expires_on'] = $date.' 23:59';
4293
    }
4294
4295
    if (!isset($defaults['ends_on'])) {
4296
        $date = substr($currentDate, 0, 10);
4297
        $defaults['ends_on'] = $date.' 23:59';
4298
    }
4299
4300
    $form->addElement('date_time_picker', 'expires_on', get_lang('ExpiresAt'));
4301
    $form->addElement('html', '</div>');