Code Duplication    Length = 6-6 lines in 2 locations

app/Module/GoogleMapsModule.php 2 locations

@@ 1460-1465 (lines=6) @@
1457
		$ged_data   = Database::prepare("SELECT i_gedcom FROM `##individuals` WHERE i_gedcom LIKE ? AND i_file=?")
1458
			->execute(array("%\n2 PLAC %", $gedcom_id))
1459
			->fetchOneColumn();
1460
		foreach ($ged_data as $ged_datum) {
1461
			preg_match_all('/\n2 PLAC (.+)/', $ged_datum, $matches);
1462
			foreach ($matches[1] as $match) {
1463
				$place_list[$match] = true;
1464
			}
1465
		}
1466
		$ged_data = Database::prepare("SELECT f_gedcom FROM `##families` WHERE f_gedcom LIKE ? AND f_file=?")
1467
			->execute(array("%\n2 PLAC %", $gedcom_id))
1468
			->fetchOneColumn();
@@ 1469-1474 (lines=6) @@
1466
		$ged_data = Database::prepare("SELECT f_gedcom FROM `##families` WHERE f_gedcom LIKE ? AND f_file=?")
1467
			->execute(array("%\n2 PLAC %", $gedcom_id))
1468
			->fetchOneColumn();
1469
		foreach ($ged_data as $ged_datum) {
1470
			preg_match_all('/\n2 PLAC (.+)/', $ged_datum, $matches);
1471
			foreach ($matches[1] as $match) {
1472
				$place_list[$match] = true;
1473
			}
1474
		}
1475
		// Unique list of places
1476
		$place_list = array_keys($place_list);
1477