From 14ef830462943ad40c7409c778144231bd7713d8 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Tue, 27 Aug 2024 09:15:10 +0100 Subject: [PATCH] style: update Pint --- composer.json | 2 +- src/Drivers/Chrome.php | 2 +- src/LaravelConsoleDuskServiceProvider.php | 2 +- src/Manager.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index ec45f43..ad9d149 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "nunomaduro/laravel-console-task": "^1.9" }, "require-dev": { - "laravel/pint": "^1.15.1" + "laravel/pint": "^1.17" }, "autoload": { "psr-4": { diff --git a/src/Drivers/Chrome.php b/src/Drivers/Chrome.php index 4464f38..5f5982d 100644 --- a/src/Drivers/Chrome.php +++ b/src/Drivers/Chrome.php @@ -32,7 +32,7 @@ public static function afterClass(Closure $callback): void public function getDriver() { - $options = (new ChromeOptions())->addArguments( + $options = (new ChromeOptions)->addArguments( array_filter(array_merge( config('laravel-console-dusk.driver.chrome.options', []), [$this->runHeadless()] diff --git a/src/LaravelConsoleDuskServiceProvider.php b/src/LaravelConsoleDuskServiceProvider.php index c90c671..0e824d5 100644 --- a/src/LaravelConsoleDuskServiceProvider.php +++ b/src/LaravelConsoleDuskServiceProvider.php @@ -39,7 +39,7 @@ public function register(): void $this->mergeConfigFrom(__DIR__.'/../config/laravel-console-dusk.php', 'laravel-console-dusk'); $this->app->bind(ManagerContract::class, function ($app) { - return new Manager(); + return new Manager; }); $this->commands([ diff --git a/src/Manager.php b/src/Manager.php index 1f113fe..cfa08cc 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -22,8 +22,8 @@ class Manager implements ManagerContract public function __construct(?DriverContract $driver = null, ?ConsoleBrowserFactoryContract $browserFactory = null) { - $this->driver = $driver ?: new Chrome(); - $this->browserFactory = $browserFactory ?: new ConsoleBrowserFactory(); + $this->driver = $driver ?: new Chrome; + $this->browserFactory = $browserFactory ?: new ConsoleBrowserFactory; } public function browse(Command $command, Closure $callback): void