Code Duplication    Length = 5-5 lines in 3 locations

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

@@ 233-237 (lines=5) @@
230
                    case elgg_echo('missions:title'):
231
                        $name_option = 'title';
232
                        break;
233
                    case elgg_echo('missions:publication_date'):
234
                        $name_option = 'pubdate';
235
                        $operand_option = $array[$form_name.'_'.$place.'_element_operand'];
236
                        $value_option = $array[$form_name.'_'.$place.'_element_value'];
237
                        break;
238
                }
239
                $returner['name'] = $name_option;
240
                $returner['operand'] = $operand_option;
@@ 267-271 (lines=5) @@
264
                    case elgg_echo('missions:organization'):
265
                        $name_option = 'organization';
266
                        break;
267
                    case elgg_echo('missions:end_year'):
268
                        $name_option = 'endyear';
269
                        $operand_option = $array[$form_name.'_'.$place.'_element_operand'];
270
                        $value_option = $array[$form_name.'_'.$place.'_element_value'];
271
                        break;
272
                }
273
                $returner['name'] = $name_option;
274
                $returner['operand'] = $operand_option;
@@ 295-299 (lines=5) @@
292
                    case elgg_echo('missions:field'):
293
                        $name_option = 'field';
294
                        break;
295
                    case elgg_echo('missions:end_year'):
296
                        $name_option = 'endyear';
297
                        $operand_option = $array[$form_name.'_'.$place.'_element_operand'];
298
                        $value_option = $array[$form_name.'_'.$place.'_element_value'];
299
                        break;
300
                }
301
                $returner['name'] = $name_option;
302
                $returner['operand'] = $operand_option;