Code Duplication    Length = 7-7 lines in 2 locations

app/Stats.php 2 locations

@@ 1521-1527 (lines=7) @@
1518
			return $placelist;
1519
		} elseif ($parent > 0) {
1520
			// used by placehierarchy googlemap module
1521
			if ($what == 'INDI') {
1522
				$join = " JOIN `##individuals` ON pl_file = i_file AND pl_gid = i_id";
1523
			} elseif ($what == 'FAM') {
1524
				$join = " JOIN `##families` ON pl_file = f_file AND pl_gid = f_id";
1525
			} else {
1526
				$join = "";
1527
			}
1528
			$rows = $this->runSql(
1529
				" SELECT SQL_CACHE" .
1530
				" p_place AS place," .
@@ 1544-1550 (lines=7) @@
1541
1542
			return $rows;
1543
		} else {
1544
			if ($what == 'INDI') {
1545
				$join = " JOIN `##individuals` ON pl_file = i_file AND pl_gid = i_id";
1546
			} elseif ($what == 'FAM') {
1547
				$join = " JOIN `##families` ON pl_file = f_file AND pl_gid = f_id";
1548
			} else {
1549
				$join = "";
1550
			}
1551
			$rows = $this->runSql(
1552
				" SELECT SQL_CACHE" .
1553
				" p_place AS country," .