Code Duplication    Length = 15-16 lines in 2 locations

programs/vacadm.php 1 location

@@ 1158-1173 (lines=16) @@
1155
1156
1157
1158
function absences_updateManagerVacationPersonnel($id_user)
1159
{
1160
    $update = absences_updateVacationPersonnel($id_user);
1161
    
1162
    if(true === $update) {
1163
        return 'changeucol'; // vers la modification du regime
1164
    }
1165
1166
    if (false === $update) {
1167
        return 'modp';
1168
    }
1169
    
1170
    $url = bab_url::get_request('tg');
1171
    $url->idx = 'lper';
1172
    $url->location();
1173
}
1174
1175
1176

programs/vacchart.php 1 location

@@ 384-398 (lines=15) @@
381
382
383
384
function absences_updateVacationChartPersonnel($id_user)
385
{
386
    $update = absences_updateVacationPersonnel($id_user);
387
    if(true === $update) {
388
        return 'changeucol';
389
    }
390
    
391
    if (false === $update) {
392
        return 'modp';
393
    }
394
395
    $url = bab_url::get_request('tg', 'ide');
396
    $url->idx = 'entity_members';
397
    $url->location();
398
}
399
400
401