Code Duplication    Length = 8-12 lines in 2 locations

mod/missions/lib/missions-searching.php 2 locations

@@ 246-253 (lines=8) @@
243
            }
244
            break;
245
246
        case elgg_echo('missions:skill'):
247
            if(trim($array[$form_name.'_'.$place.'_element']) != '') {
248
                $returner['name'] = 'title';
249
                $returner['operand'] = 'LIKE';
250
                $returner['value'] = '%' . $array[$form_name.'_'.$place.'_element'].'%';
251
                $returner['extra_option'] = 'MySkill';
252
            }
253
            break;
254
255
        case elgg_echo('missions:experience'):
256
            if(trim($array[$form_name.'_'.$place.'_element_value']) != '') {
@@ 451-462 (lines=12) @@
448
            }
449
            break;
450
451
        case elgg_echo('missions:department'):
452
            if (trim($array[$form_name.'_'.$place.'_element']) != '') {
453
                if(get_current_language() == 'fr') {
454
                    $returner['name'] = 'department_path_french';
455
                }
456
                else {
457
                    $returner['name'] = 'department_path_english';
458
                }
459
                $returner['operand'] = 'LIKE';
460
                $returner['value'] = '%' . $array[$form_name.'_'.$place.'_element'] . '%';
461
            }
462
            break;
463
464
        case elgg_echo('missions:work_remotely'):
465
            $returner['name'] = 'remotely';