Code Duplication    Length = 4-4 lines in 2 locations

main/work/work.lib.php 2 locations

@@ 4471-4474 (lines=4) @@
4468
4469
    $currentDate = substr(api_get_local_time(), 0, 10);
4470
4471
    if (!isset($defaults['expires_on'])) {
4472
        $date = substr($currentDate, 0, 10);
4473
        $defaults['expires_on'] = $date.' 23:59';
4474
    }
4475
4476
    if (!isset($defaults['ends_on'])) {
4477
        $date = substr($currentDate, 0, 10);
@@ 4476-4479 (lines=4) @@
4473
        $defaults['expires_on'] = $date.' 23:59';
4474
    }
4475
4476
    if (!isset($defaults['ends_on'])) {
4477
        $date = substr($currentDate, 0, 10);
4478
        $defaults['ends_on'] = $date.' 23:59';
4479
    }
4480
4481
    $form->addElement('date_time_picker', 'expires_on', get_lang('ExpiresAt'));
4482
    $form->addElement('html', '</div>');