Code Duplication    Length = 10-10 lines in 2 locations

app/Stats.php 2 locations

@@ 948-957 (lines=10) @@
945
				I18N::translateContext('unknown people', 'Unknown') . ' - ' . $per_u;
946
947
			return "<img src=\"https://chart.googleapis.com/chart?cht=p3&amp;chd=e:{$chd}&amp;chs={$size}&amp;chco={$color_unknown},{$color_female},{$color_male}&amp;chf=bg,s,ffffff00&amp;chl={$chl}\" width=\"{$sizes[0]}\" height=\"{$sizes[1]}\" alt=\"" . $chart_title . '" title="' . $chart_title . '" />';
948
		} else {
949
			$chd = $this->arrayToExtendedEncoding([4095 * $tot_f / $tot, 4095 * $tot_m / $tot]);
950
			$chl =
951
				I18N::translate('Females') . ' - ' . $per_f . '|' .
952
				I18N::translate('Males') . ' - ' . $per_m;
953
			$chart_title = I18N::translate('Males') . ' - ' . $per_m . I18N::$list_separator .
954
				I18N::translate('Females') . ' - ' . $per_f;
955
956
			return "<img src=\"https://chart.googleapis.com/chart?cht=p3&amp;chd=e:{$chd}&amp;chs={$size}&amp;chco={$color_female},{$color_male}&amp;chf=bg,s,ffffff00&amp;chl={$chl}\" width=\"{$sizes[0]}\" height=\"{$sizes[1]}\" alt=\"" . $chart_title . '" title="' . $chart_title . '" />';
957
		}
958
	}
959
960
	/**
@@ 1063-1072 (lines=10) @@
1060
		$per_d = $this->totalDeceasedPercentage();
1061
		if ($tot == 0) {
1062
			return '';
1063
		} else {
1064
			$chd = $this->arrayToExtendedEncoding([4095 * $tot_l / $tot, 4095 * $tot_d / $tot]);
1065
			$chl =
1066
				I18N::translate('Living') . ' - ' . $per_l . '|' .
1067
				I18N::translate('Dead') . ' - ' . $per_d . '|';
1068
			$chart_title = I18N::translate('Living') . ' - ' . $per_l . I18N::$list_separator .
1069
				I18N::translate('Dead') . ' - ' . $per_d;
1070
1071
			return "<img src=\"https://chart.googleapis.com/chart?cht=p3&amp;chd=e:{$chd}&amp;chs={$size}&amp;chco={$color_living},{$color_dead}&amp;chf=bg,s,ffffff00&amp;chl={$chl}\" width=\"{$sizes[0]}\" height=\"{$sizes[1]}\" alt=\"" . $chart_title . '" title="' . $chart_title . '" />';
1072
		}
1073
	}
1074
1075
	/**