Code Duplication    Length = 3-3 lines in 7 locations

app/Stats.php 7 locations

@@ 2355-2357 (lines=3) @@
2352
		} else {
2353
			$top10 = implode(' ', $top10);
2354
		}
2355
		if (I18N::direction() === 'rtl') {
2356
			$top10 = str_replace(['[', ']', '(', ')', '+'], ['‏[', '‏]', '‏(', '‏)', '‏+'], $top10);
2357
		}
2358
		if ($type == 'list') {
2359
			return '<ul>' . $top10 . '</ul>';
2360
		}
@@ 2432-2434 (lines=3) @@
2429
		} else {
2430
			$top10 = implode('; ', $top10);
2431
		}
2432
		if (I18N::direction() === 'rtl') {
2433
			$top10 = str_replace(['[', ']', '(', ')', '+'], ['&rlm;[', '&rlm;]', '&rlm;(', '&rlm;)', '&rlm;+'], $top10);
2434
		}
2435
		if ($type === 'list') {
2436
			return '<ul>' . $top10 . '</ul>';
2437
		}
@@ 3276-3278 (lines=3) @@
3273
		} else {
3274
			$top10 = implode('; ', $top10);
3275
		}
3276
		if (I18N::direction() === 'rtl') {
3277
			$top10 = str_replace(['[', ']', '(', ')', '+'], ['&rlm;[', '&rlm;]', '&rlm;(', '&rlm;)', '&rlm;+'], $top10);
3278
		}
3279
		if ($type === 'list') {
3280
			return '<ul>' . $top10 . '</ul>';
3281
		}
@@ 4464-4466 (lines=3) @@
4461
		} else {
4462
			$top10 = implode('; ', $top10);
4463
		}
4464
		if (I18N::direction() === 'rtl') {
4465
			$top10 = str_replace(['[', ']', '(', ')', '+'], ['&rlm;[', '&rlm;]', '&rlm;(', '&rlm;)', '&rlm;+'], $top10);
4466
		}
4467
		if ($type === 'list') {
4468
			return '<ul>' . $top10 . '</ul>';
4469
		}
@@ 4590-4592 (lines=3) @@
4587
		if ($type === 'list') {
4588
			$top10 = implode('', $top10);
4589
		}
4590
		if (I18N::direction() === 'rtl') {
4591
			$top10 = str_replace(['[', ']', '(', ')', '+'], ['&rlm;[', '&rlm;]', '&rlm;(', '&rlm;)', '&rlm;+'], $top10);
4592
		}
4593
		if ($type === 'list') {
4594
			return '<ul>' . $top10 . '</ul>';
4595
		}
@@ 5101-5103 (lines=3) @@
5098
		} else {
5099
			$top10 = implode('; ', $top10);
5100
		}
5101
		if (I18N::direction() === 'rtl') {
5102
			$top10 = str_replace(['[', ']', '(', ')', '+'], ['&rlm;[', '&rlm;]', '&rlm;(', '&rlm;)', '&rlm;+'], $top10);
5103
		}
5104
		if ($type === 'list') {
5105
			return '<ul>' . $top10 . '</ul>';
5106
		}
@@ 5260-5262 (lines=3) @@
5257
		} else {
5258
			$top10 = implode('; ', $top10);
5259
		}
5260
		if (I18N::direction() === 'rtl') {
5261
			$top10 = str_replace(['[', ']', '(', ')', '+'], ['&rlm;[', '&rlm;]', '&rlm;(', '&rlm;)', '&rlm;+'], $top10);
5262
		}
5263
		if ($type === 'list') {
5264
			return '<ul>' . $top10 . '</ul>';
5265
		}