Code Duplication    Length = 4-4 lines in 2 locations

main/work/work.lib.php 2 locations

@@ 4270-4273 (lines=4) @@
4267
4268
    $currentDate = substr(api_get_local_time(), 0, 10);
4269
4270
    if (!isset($defaults['expires_on'])) {
4271
        $date = substr($currentDate, 0, 10);
4272
        $defaults['expires_on'] = $date.' 23:59';
4273
    }
4274
4275
    if (!isset($defaults['ends_on'])) {
4276
        $date = substr($currentDate, 0, 10);
@@ 4275-4278 (lines=4) @@
4272
        $defaults['expires_on'] = $date.' 23:59';
4273
    }
4274
4275
    if (!isset($defaults['ends_on'])) {
4276
        $date = substr($currentDate, 0, 10);
4277
        $defaults['ends_on'] = $date.' 23:59';
4278
    }
4279
4280
    $form->addElement('date_time_picker', 'expires_on', get_lang('ExpiresAt'));
4281
    $form->addElement('html', '</div>');