Code Duplication    Length = 5-5 lines in 2 locations

app/Stats.php 2 locations

@@ 3945-3949 (lines=5) @@
3942
3943
			return '<img src="' . "https://chart.googleapis.com/chart?cht=bvg&amp;chs={$sizes[0]}x{$sizes[1]}&amp;chm=D,FF0000,2,0,3,1|{$chmm}{$chmf}&amp;chf=bg,s,ffffff00|c,s,ffffff00&amp;chtt=" . rawurlencode($chtt) . "&amp;chd={$chd}&amp;chco=0000FF,FFA0CB,FF0000&amp;chbh=20,3&amp;chxt=x,x,y,y&amp;chxl=" . rawurlencode($chxl) . '&amp;chdl=' . rawurlencode(I18N::translate('Males') . '|' . I18N::translate('Females') . '|' . I18N::translate('Average age')) . "\" width=\"{$sizes[0]}\" height=\"{$sizes[1]}\" alt=\"" . I18N::translate('Average age in century of marriage') . '" title="' . I18N::translate('Average age in century of marriage') . '" />';
3944
		} else {
3945
			if ($year1 >= 0 && $year2 >= 0) {
3946
				$years = " married.d_year BETWEEN {$year1} AND {$year2} AND ";
3947
			} else {
3948
				$years = '';
3949
			}
3950
			$rows = $this->runSql(
3951
				"SELECT SQL_CACHE " .
3952
				" fam.f_id, " .
@@ 5135-5139 (lines=5) @@
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";
5137
		} else {
5138
			$years = '';
5139
		}
5140
		$max  = 0;
5141
		$tot  = 0;
5142
		$rows = $this->runSql(