Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Aug 13, 2024
1 parent 5530455 commit ecdc31d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function extract(string $version, string $archive): string

$binary = null;

$zip = new ZipArchive();
$zip = new ZipArchive;

$zip->open($archive);

Expand Down
4 changes: 2 additions & 2 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function rename_chromedriver_binary(string $binary, string $operatingSystem): st
*/
function download(string $url, string $destination, $proxy = null, bool $verifySsl = true): void
{
$client = new Client();
$client = new Client;

$resource = Utils::tryFopen($destination, 'w');

Expand All @@ -54,7 +54,7 @@ function download(string $url, string $destination, $proxy = null, bool $verifyS
*/
function fetch(string $url, $proxy = null, bool $verifySsl = true): string
{
$client = new Client();
$client = new Client;

$response = $client->get($url, array_merge([
'verify' => $verifySsl,
Expand Down
6 changes: 3 additions & 3 deletions tests/UpdateCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class UpdateCommandTest extends TestCase
public function it_can_update_to_specific_version()
{
$app = new Application('Dusk Updater', '1.0.0');
$app->add(new UpdateCommand());
$app->add(new UpdateCommand);

$command = $app->find('update');

Expand All @@ -38,7 +38,7 @@ public function it_can_update_to_specific_version()
public function it_can_update_to_major_version()
{
$app = new Application('Dusk Updater', '1.0.0');
$app->add(new UpdateCommand());
$app->add(new UpdateCommand);

$command = $app->find('update');

Expand All @@ -59,7 +59,7 @@ public function it_cant_update_to_invalid_version()
$this->expectExceptionMessage('Unable to retrieve ChromeDriver [74.0.3729].');

$app = new Application('Dusk Updater', '1.0.0');
$app->add(new UpdateCommand());
$app->add(new UpdateCommand);

$command = $app->find('update');

Expand Down

0 comments on commit ecdc31d

Please sign in to comment.