Skip to content

Commit

Permalink
chore: fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
asciito authored and github-actions[bot] committed Oct 22, 2023
1 parent 23cbe48 commit 6b2cb86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Commands/DriverManagerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
use Illuminate\Process\PendingProcess;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Process;

use Illuminate\Support\Str;

use function Laravel\Prompts\error;
use function Laravel\Prompts\info;
use function Laravel\Prompts\intro;
Expand All @@ -31,9 +31,9 @@ class DriverManagerCommand extends Command
];

protected array $commands = [
'start' => "./chromedriver --log-level=ALL --port=9515 &",
'start' => './chromedriver --log-level=ALL --port=9515 &',
'pid' => "ps aux | grep '[c]hromedriver --log-level=ALL --port=9515' | awk '{print $2}'",
'stop' => 'kill -9 {pid}'
'stop' => 'kill -9 {pid}',
];
public function handle(): int
Expand Down Expand Up @@ -144,7 +144,7 @@ protected function command(string $cmd): PendingProcess
return Process::command($cmd)->path($this->getChromeDriverDirectory());
}

protected function getProcessID(): int|null
protected function getProcessID(): ?int
{
$process = $this->command($this->commands['pid'])->run();

Expand Down

0 comments on commit 6b2cb86

Please sign in to comment.