Code Duplication    Length = 6-6 lines in 2 locations

Sources/Packages.php 2 locations

@@ 1741-1746 (lines=6) @@
1738
					$context['available_modification'][md5($package)] = $packageInfo;
1739
				}
1740
				// Avatar package.
1741
				elseif ($packageInfo['type'] == 'avatar')
1742
				{
1743
					$sort_id[$packageInfo['type']]++;
1744
					$packages['avatar'][strtolower($packageInfo[$sort])] = md5($package);
1745
					$context['available_avatar'][md5($package)] = $packageInfo;
1746
				}
1747
				// Language package.
1748
				elseif ($packageInfo['type'] == 'language')
1749
				{
@@ 1748-1753 (lines=6) @@
1745
					$context['available_avatar'][md5($package)] = $packageInfo;
1746
				}
1747
				// Language package.
1748
				elseif ($packageInfo['type'] == 'language')
1749
				{
1750
					$sort_id[$packageInfo['type']]++;
1751
					$packages['language'][strtolower($packageInfo[$sort])] = md5($package);
1752
					$context['available_language'][md5($package)] = $packageInfo;
1753
				}
1754
				// This might be a 3rd party section.
1755
				elseif (isset($sort_id[$packageInfo['type']], $packages[$packageInfo['type']], $context['available_' . $packageInfo['type']]))
1756
				{