Code Duplication    Length = 2-2 lines in 2 locations

Sources/Packages.php 1 location

@@ 1603-1604 (lines=2) @@
1600
1601
		while ($package = readdir($dir))
1602
		{
1603
			if ($package == '.' || $package == '..' || $package == 'temp' || (!(is_dir($packagesdir . '/' . $package) && file_exists($packagesdir . '/' . $package . '/package-info.xml')) && substr(strtolower($package), -7) != '.tar.gz' && substr(strtolower($package), -4) != '.tgz' && substr(strtolower($package), -4) != '.zip'))
1604
				continue;
1605
1606
			$skip = false;
1607
			foreach ($context['modification_types'] as $type)

Sources/PackageGet.php 1 location

@@ 693-694 (lines=2) @@
690
	{
691
		while ($package = readdir($dir))
692
		{
693
			if ($package == '.' || $package == '..' || $package == 'temp' || $package == $packageName || (!(is_dir($packagesdir . '/' . $package) && file_exists($packagesdir . '/' . $package . '/package-info.xml')) && substr(strtolower($package), -7) != '.tar.gz' && substr(strtolower($package), -4) != '.tgz' && substr(strtolower($package), -4) != '.zip'))
694
				continue;
695
696
			$packageInfo = getPackageInfo($package);
697
			if (!is_array($packageInfo))