Code Duplication    Length = 5-5 lines in 2 locations

framework/IO/TTarFileExtractor.php 2 locations

@@ 254-258 (lines=5) @@
251
			return true;
252
		}
253
254
		if (strlen($v_binary_data) != 512) {
255
			$v_header['filename'] = '';
256
			$this->_error('Invalid block size : ' . strlen($v_binary_data));
257
			return false;
258
		}
259
260
		// ----- Calculate the checksum
261
		$v_checksum = 0;
@@ 482-486 (lines=5) @@
479
				if ($v_extract_file) {
480
					if ($v_header['typeflag'] == "5") {
481
						if (!@file_exists($v_header['filename'])) {
482
							if (!@mkdir($v_header['filename'], PRADO_CHMOD)) {
483
								$this->_error('Unable to create directory {'
484
								  . $v_header['filename'] . '}');
485
								return false;
486
							}
487
							chmod($v_header['filename'], PRADO_CHMOD);
488
						}
489
					} else {