From 33641614cc3de78cf610de4d29d74f2c41165af1 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sun, 17 Apr 2022 09:40:37 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/Commands/HydeServeCommand.php | 43 +++++++++++++++---------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/src/Commands/HydeServeCommand.php b/src/Commands/HydeServeCommand.php index f75f0c53..08f82c76 100644 --- a/src/Commands/HydeServeCommand.php +++ b/src/Commands/HydeServeCommand.php @@ -32,36 +32,35 @@ class HydeServeCommand extends Command public function handle(): int { if (! $this->canRunServer()) { - $this->error('Could not start the server.'); + $this->error('Could not start the server.'); - return 1; - } + return 1; + } - $this->line('Starting the server... Press Ctrl+C to stop'); + $this->line('Starting the server... Press Ctrl+C to stop'); - $this->warn('This feature is experimental. Please report any issues on GitHub.'); + $this->warn('This feature is experimental. Please report any issues on GitHub.'); - $port = $this->option('port'); - $host = $this->option('host'); - passthru("php -S $host:$port " . Hyde::path('vendor/hyde/realtime-compiler/server.php')); + $port = $this->option('port'); + $host = $this->option('host'); + passthru("php -S $host:$port ".Hyde::path('vendor/hyde/realtime-compiler/server.php')); return 0; } - /** - * Check if the server can be started. - * - * @return bool - */ - protected function canRunServer(): bool - { - - if (! file_exists(Hyde::path('vendor/hyde/realtime-compiler/server.php'))) { - $this->warn('The realtime compiler extension is not installed.'); + /** + * Check if the server can be started. + * + * @return bool + */ + protected function canRunServer(): bool + { + if (! file_exists(Hyde::path('vendor/hyde/realtime-compiler/server.php'))) { + $this->warn('The realtime compiler extension is not installed.'); - return false; - } + return false; + } - return true; - } + return true; + } }