Code Duplication    Length = 8-8 lines in 2 locations

Sources/Subs-Package.php 2 locations

@@ 199-206 (lines=8) @@
196
				mktree($destination . '/' . dirname($current['filename']), 0777);
197
198
			// Is this the file we're looking for?
199
			if ($single_file && ($destination == $current['filename'] || $destination == '*/' . basename($current['filename'])))
200
				return $current['data'];
201
			// If we're looking for another file, keep going.
202
			elseif ($single_file)
203
				continue;
204
			// Looking for restricted files?
205
			elseif ($files_to_extract !== null && !in_array($current['filename'], $files_to_extract))
206
				continue;
207
208
			package_put_contents($destination . '/' . $current['filename'], $current['data']);
209
		}
@@ 413-420 (lines=8) @@
410
				mktree($file_info['dir'], 0777);
411
412
			// If we're looking for a specific file, and this is it... ka-bam, baby.
413
			if ($single_file && ($destination == $file_info['filename'] || $destination == '*/' . basename($file_info['filename'])))
414
				return $file_info['data'];
415
			// Oh?  Another file.  Fine.  You don't like this file, do you?  I know how it is.  Yeah... just go away.  No, don't apologize.  I know this file's just not *good enough* for you.
416
			elseif ($single_file)
417
				continue;
418
			// Don't really want this?
419
			elseif ($files_to_extract !== null && !in_array($file_info['filename'], $files_to_extract))
420
				continue;
421
422
			package_put_contents($destination . '/' . $file_info['filename'], $file_info['data']);
423
		}