Code Duplication    Length = 6-6 lines in 2 locations

app/Controller/AdvancedSearchController.php 2 locations

@@ 290-295 (lines=6) @@
287
				} elseif (substr($field, 0, 4) == 'NAME') {
288
					$indi_name = true;
289
				} elseif (strpos($field, ':DATE') !== false) {
290
					if (substr($field, 0, 4) == 'FAMS') {
291
						$fam_date      = true;
292
						$spouse_family = true;
293
					} else {
294
						$indi_date = true;
295
					}
296
				} elseif (strpos($field, ':PLAC') !== false) {
297
					if (substr($field, 0, 4) == 'FAMS') {
298
						$fam_plac      = true;
@@ 297-302 (lines=6) @@
294
						$indi_date = true;
295
					}
296
				} elseif (strpos($field, ':PLAC') !== false) {
297
					if (substr($field, 0, 4) == 'FAMS') {
298
						$fam_plac      = true;
299
						$spouse_family = true;
300
					} else {
301
						$indi_plac = true;
302
					}
303
				} elseif ($field == 'FAMS:NOTE') {
304
					$spouse_family = true;
305
				}