Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Jul 24, 2024
1 parent 68ceaf5 commit bcc6cdb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected function extract(string $version, string $archive): string
throw new RuntimeException("Unable to extract {$archive} without --install-dir");
}

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

$zip->open($archive);

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

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

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 @@ -39,7 +39,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 @@ -61,7 +61,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 bcc6cdb

Please sign in to comment.