Code Duplication    Length = 4-4 lines in 2 locations

main/work/work.lib.php 2 locations

@@ 4248-4251 (lines=4) @@
4245
4246
    $currentDate = substr(api_get_local_time(), 0, 10);
4247
4248
    if (!isset($defaults['expires_on'])) {
4249
        $date = substr($currentDate, 0, 10);
4250
        $defaults['expires_on'] = $date.' 23:59';
4251
    }
4252
4253
    if (!isset($defaults['ends_on'])) {
4254
        $date = substr($currentDate, 0, 10);
@@ 4253-4256 (lines=4) @@
4250
        $defaults['expires_on'] = $date.' 23:59';
4251
    }
4252
4253
    if (!isset($defaults['ends_on'])) {
4254
        $date = substr($currentDate, 0, 10);
4255
        $defaults['ends_on'] = $date.' 23:59';
4256
    }
4257
4258
    $form->addElement('date_time_picker', 'expires_on', get_lang('ExpiresAt'));
4259
    $form->addElement('html', '</div>');