src/Compress.php
public function extract($file, $destination = false)
    {
        $archive = $this->getArchiver()->open($file);
        if ($archive) {
            $this->getArchiver()->extractTo($destination);
            return $this->getArchiver()->close();
        }
    }
public function extract($file, $destination = false)
    {
        $archive = $this->getArchiver()->open($file);
        if ($archive) {
            $this->getArchiver()->extractTo($destination);
            return $this->getArchiver()->close();
        }
    }
public function extract ( $ file , $ destination = false ) { $ archive = $ this -> getArchiver ( ) -> open ( $ file ) ; if ( $ archive ) { $ this -> getArchiver ( ) -> extractTo ( $ destination ) ; return $ this -> getArchiver ( ) -> close ( ) ; } }
Extracts a compressed file to the destination

@param string $file
The full path to the file to extract
@param string $destination
The destination to extract to
@return bool
Extracts a compressed file to the destination