src/Console/GetWebDriver.php
public function unZip(&$resource)
    {
        $this->info("Unzipping $resource file...");

        $zip = new ZipArchive();
        if (!$zip->open($resource)) {
            throw new \ErrorException("Unable to unzip downloaded file $resource.");
        }

        // Renaming chrome driver
        $zip->extractTo(dirname($resource));
        $zip->close();

        return $this->cleanUp($resource);
    }
public function unZip(&$resource)
    {
        $this->info("Unzipping $resource file...");

        $zip = new ZipArchive();
        if (!$zip->open($resource)) {
            throw new \ErrorException("Unable to unzip downloaded file $resource.");
        }

        // Renaming chrome driver
        $zip->extractTo(dirname($resource));
        $zip->close();

        return $this->cleanUp($resource);
    }
public function unZip ( & $ resource ) { $ this -> info ( "Unzipping $resource file..." ) ; $ zip = new ZipArchive ( ) ; if ( ! $ zip -> open ( $ resource ) ) { throw new \ ErrorException ( "Unable to unzip downloaded file $resource." ) ; } // Renaming chrome driver $ zip -> extractTo ( dirname ( $ resource ) ) ; $ zip -> close ( ) ; return $ this -> cleanUp ( $ resource ) ; }
Unzip the web driver raw file.

@param $resource

@throws \ErrorException

@return $this
Unzip the web driver raw file .