Code Duplication    Length = 6-6 lines in 2 locations

framework/IO/TTarFileExtractor.php 2 locations

@@ 154-159 (lines=6) @@
151
		  // ----- Look if a local copy need to be done
152
			if ($this->_temp_tarname == '') {
153
				$this->_temp_tarname = uniqid('tar') . '.tmp';
154
				if (!$v_file_from = @fopen($this->_tarname, 'rb')) {
155
					$this->_error('Unable to open in read mode \''
156
							  . $this->_tarname . '\'');
157
					$this->_temp_tarname = '';
158
					return false;
159
				}
160
				if (!$v_file_to = @fopen($this->_temp_tarname, 'wb')) {
161
					$this->_error('Unable to open in write mode \''
162
							  . $this->_temp_tarname . '\'');
@@ 160-165 (lines=6) @@
157
					$this->_temp_tarname = '';
158
					return false;
159
				}
160
				if (!$v_file_to = @fopen($this->_temp_tarname, 'wb')) {
161
					$this->_error('Unable to open in write mode \''
162
							  . $this->_temp_tarname . '\'');
163
					$this->_temp_tarname = '';
164
					return false;
165
				}
166
				while ($v_data = @fread($v_file_from, 1024)) {
167
					@fwrite($v_file_to, $v_data);
168
				}