Code Duplication    Length = 5-5 lines in 2 locations

app/Stats.php 2 locations

@@ 4454-4458 (lines=5) @@
4451
			if ($family->canShow()) {
4452
				if ($type === 'list') {
4453
					$top10[] = '<li><a href="' . $family->getHtmlUrl() . '">' . $family->getFullName() . '</a> - ' . I18N::plural('%s child', '%s children', $rows[$c]['tot'], I18N::number($rows[$c]['tot']));
4454
				} else {
4455
					$top10[] = '<a href="' . $family->getHtmlUrl() . '">' . $family->getFullName() . '</a> - ' . I18N::plural('%s child', '%s children', $rows[$c]['tot'], I18N::number($rows[$c]['tot']));
4456
				}
4457
			}
4458
		}
4459
		if ($type === 'list') {
4460
			$top10 = implode('', $top10);
4461
		} else {
@@ 5250-5254 (lines=5) @@
5247
			if ($family->canShow()) {
5248
				if ($type === 'list') {
5249
					$top10[] = '<li><a href="' . $family->getHtmlUrl() . '">' . $family->getFullName() . '</a> - ' . I18N::plural('%s grandchild', '%s grandchildren', $row['tot'], I18N::number($row['tot']));
5250
				} else {
5251
					$top10[] = '<a href="' . $family->getHtmlUrl() . '">' . $family->getFullName() . '</a> - ' . I18N::plural('%s grandchild', '%s grandchildren', $row['tot'], I18N::number($row['tot']));
5252
				}
5253
			}
5254
		}
5255
		if ($type === 'list') {
5256
			$top10 = implode('', $top10);
5257
		} else {