src/Cornford/Backup/Backup.php
protected function decompressFile($filepath)
	{
		if (!$this->getBackupFilesystemInstance()->checkFunctionExists('gzdecode')) {
			throw new BackupException('The method: "gzdecode" isn\'t currently enabled.');
		}

		$uncompressedFilepath = $this->getUncompressedFilepath($filepath);
		$this->getBackupFilesystemInstance()->writeUncompressedFile($uncompressedFilepath, $filepath);

		return $uncompressedFilepath;
	}
protected function decompressFile($filepath)
	{
		if (!$this->getBackupFilesystemInstance()->checkFunctionExists('gzdecode')) {
			throw new BackupException('The method: "gzdecode" isn\'t currently enabled.');
		}

		$uncompressedFilepath = $this->getUncompressedFilepath($filepath);
		$this->getBackupFilesystemInstance()->writeUncompressedFile($uncompressedFilepath, $filepath);

		return $uncompressedFilepath;
	}
protected function decompressFile ( $ filepath ) { if ( ! $ this -> getBackupFilesystemInstance ( ) -> checkFunctionExists ( 'gzdecode' ) ) { throw new BackupException ( 'The method: "gzdecode" isn\'t currently enabled.' ) ; } $ uncompressedFilepath = $ this -> getUncompressedFilepath ( $ filepath ) ; $ this -> getBackupFilesystemInstance ( ) -> writeUncompressedFile ( $ uncompressedFilepath , $ filepath ) ; return $ uncompressedFilepath ; }
Decompress a file with gzip.

@param string $filepath

@throws BackupException

@return string
Decompress a file with gzip .