Code Duplication    Length = 2-2 lines in 3 locations

Sources/Subs-Package.php 3 locations

@@ 1911-1912 (lines=2) @@
1908
		if (in_array($entryname, array('.', '..')))
1909
			continue;
1910
1911
		if (isset($package_ftp))
1912
			$ftp_file = strtr($destination . '/' . $entryname, array($_SESSION['pack_ftp']['root'] => ''));
1913
1914
		if (is_file($source . '/' . $entryname))
1915
		{
@@ 2721-2722 (lines=2) @@
2718
			$package_cache = false;
2719
	}
2720
2721
	if (isset($package_ftp))
2722
		$ftp_file = strtr($filename, array($_SESSION['pack_ftp']['root'] => ''));
2723
2724
	if (!file_exists($filename) && isset($package_ftp))
2725
		$package_ftp->create_file($ftp_file);
@@ 2775-2776 (lines=2) @@
2772
	// First, let's check permissions!
2773
	foreach ($package_cache as $filename => $data)
2774
	{
2775
		if (isset($package_ftp))
2776
			$ftp_file = strtr($filename, array($_SESSION['pack_ftp']['root'] => ''));
2777
2778
		if (!file_exists($filename) && isset($package_ftp))
2779
			$package_ftp->create_file($ftp_file);