Code Duplication    Length = 5-5 lines in 3 locations

app/Stats.php 3 locations

@@ 5073-5077 (lines=5) @@
5070
	 * @return string
5071
	 */
5072
	public function noChildrenFamiliesList($params = []) {
5073
		if (isset($params[0]) && $params[0] != '') {
5074
			$type = strtolower($params[0]);
5075
		} else {
5076
			$type = 'list';
5077
		}
5078
		$rows = $this->runSql(
5079
			" SELECT SQL_CACHE f_id AS family" .
5080
			" FROM `##families` AS fam" .
@@ 5124-5128 (lines=5) @@
5121
		} else {
5122
			$size = '220x200';
5123
		}
5124
		if (isset($params[1]) && $params[1] != '') {
5125
			$year1 = $params[1];
5126
		} else {
5127
			$year1 = -1;
5128
		}
5129
		if (isset($params[2]) && $params[2] != '') {
5130
			$year2 = $params[2];
5131
		} else {
@@ 5129-5133 (lines=5) @@
5126
		} else {
5127
			$year1 = -1;
5128
		}
5129
		if (isset($params[2]) && $params[2] != '') {
5130
			$year2 = $params[2];
5131
		} else {
5132
			$year2 = -1;
5133
		}
5134
		$sizes = explode('x', $size);
5135
		if ($year1 >= 0 && $year2 >= 0) {
5136
			$years = " married.d_year BETWEEN '{$year1}' AND '{$year2}' AND";