diff --git a/cli/Valet/Brew.php b/cli/Valet/Brew.php index 33d597b..b5f1768 100644 --- a/cli/Valet/Brew.php +++ b/cli/Valet/Brew.php @@ -38,9 +38,7 @@ class Brew const BREW_DISABLE_AUTO_CLEANUP = 'HOMEBREW_NO_INSTALL_CLEANUP=1'; - public function __construct(public CommandLine $cli, public Filesystem $files) - { - } + public function __construct(public CommandLine $cli, public Filesystem $files) {} /** * Ensure the formula exists in the current Homebrew configuration. diff --git a/cli/Valet/CommandLine.php b/cli/Valet/CommandLine.php index 3d18418..25dd994 100644 --- a/cli/Valet/CommandLine.php +++ b/cli/Valet/CommandLine.php @@ -51,8 +51,7 @@ public function runAsUser(string $command, ?callable $onError = null): string */ public function runCommand(string $command, ?callable $onError = null): string { - $onError = $onError ?: function () { - }; + $onError = $onError ?: function () {}; // Symfony's 4.x Process component has deprecated passing a command string // to the constructor, but older versions (which Valet's Composer diff --git a/cli/Valet/Composer.php b/cli/Valet/Composer.php index 60068d5..e85e36b 100644 --- a/cli/Valet/Composer.php +++ b/cli/Valet/Composer.php @@ -6,9 +6,7 @@ class Composer { - public function __construct(public CommandLine $cli) - { - } + public function __construct(public CommandLine $cli) {} public function installed(string $namespacedPackage): bool { diff --git a/cli/Valet/Configuration.php b/cli/Valet/Configuration.php index da876c7..ad06675 100644 --- a/cli/Valet/Configuration.php +++ b/cli/Valet/Configuration.php @@ -4,9 +4,7 @@ class Configuration { - public function __construct(public Filesystem $files) - { - } + public function __construct(public Filesystem $files) {} /** * Install the Valet configuration file. diff --git a/cli/Valet/Diagnose.php b/cli/Valet/Diagnose.php index 4dd9cf6..160a451 100644 --- a/cli/Valet/Diagnose.php +++ b/cli/Valet/Diagnose.php @@ -55,9 +55,7 @@ class Diagnose public $progressBar; - public function __construct(public CommandLine $cli, public Filesystem $files) - { - } + public function __construct(public CommandLine $cli, public Filesystem $files) {} /** * Run diagnostics. diff --git a/cli/Valet/DnsMasq.php b/cli/Valet/DnsMasq.php index a0d74eb..60b3ad1 100644 --- a/cli/Valet/DnsMasq.php +++ b/cli/Valet/DnsMasq.php @@ -10,9 +10,7 @@ class DnsMasq public $resolverPath = '/etc/resolver'; - public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files, public Configuration $configuration) - { - } + public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files, public Configuration $configuration) {} /** * Install and configure DnsMasq. diff --git a/cli/Valet/Expose.php b/cli/Valet/Expose.php index abb1428..922cec5 100644 --- a/cli/Valet/Expose.php +++ b/cli/Valet/Expose.php @@ -7,9 +7,7 @@ class Expose { - public function __construct(public Composer $composer, public CommandLine $cli) - { - } + public function __construct(public Composer $composer, public CommandLine $cli) {} public function currentTunnelUrl(?string $domain = null): ?string { diff --git a/cli/Valet/Nginx.php b/cli/Valet/Nginx.php index 9c383b6..12cc8a4 100644 --- a/cli/Valet/Nginx.php +++ b/cli/Valet/Nginx.php @@ -10,9 +10,7 @@ class Nginx const NGINX_CONF = BREW_PREFIX.'/etc/nginx/nginx.conf'; public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files, - public Configuration $configuration, public Site $site) - { - } + public Configuration $configuration, public Site $site) {} /** * Install the configuration files for Nginx. diff --git a/cli/Valet/Ngrok.php b/cli/Valet/Ngrok.php index 245ce5a..5214e66 100644 --- a/cli/Valet/Ngrok.php +++ b/cli/Valet/Ngrok.php @@ -13,9 +13,7 @@ class Ngrok 'http://127.0.0.1:4041/api/tunnels', ]; - public function __construct(public CommandLine $cli, public Brew $brew) - { - } + public function __construct(public CommandLine $cli, public Brew $brew) {} /** * Get the current tunnel URL from the Ngrok API. diff --git a/cli/Valet/PhpFpm.php b/cli/Valet/PhpFpm.php index 9c5e86c..e8d8057 100644 --- a/cli/Valet/PhpFpm.php +++ b/cli/Valet/PhpFpm.php @@ -12,9 +12,7 @@ class PhpFpm 'shivammathur/php', ]; - public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files, public Configuration $config, public Site $site, public Nginx $nginx) - { - } + public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files, public Configuration $config, public Site $site, public Nginx $nginx) {} /** * Install and configure PhpFpm. diff --git a/cli/Valet/Site.php b/cli/Valet/Site.php index 587d51f..2ae6765 100644 --- a/cli/Valet/Site.php +++ b/cli/Valet/Site.php @@ -9,9 +9,7 @@ class Site { - public function __construct(public Brew $brew, public Configuration $config, public CommandLine $cli, public Filesystem $files) - { - } + public function __construct(public Brew $brew, public Configuration $config, public CommandLine $cli, public Filesystem $files) {} /** * Get the name of the site. diff --git a/cli/Valet/Status.php b/cli/Valet/Status.php index c68c528..4f52bb8 100644 --- a/cli/Valet/Status.php +++ b/cli/Valet/Status.php @@ -10,9 +10,7 @@ class Status public $debugInstructions = []; - public function __construct(public Configuration $config, public Brew $brew, public CommandLine $cli, public Filesystem $files) - { - } + public function __construct(public Configuration $config, public Brew $brew, public CommandLine $cli, public Filesystem $files) {} /** * Check the status of the entire Valet ecosystem and return a status boolean diff --git a/cli/Valet/Upgrader.php b/cli/Valet/Upgrader.php index 9129344..d7e42a9 100644 --- a/cli/Valet/Upgrader.php +++ b/cli/Valet/Upgrader.php @@ -7,9 +7,7 @@ class Upgrader { - public function __construct(public Filesystem $files) - { - } + public function __construct(public Filesystem $files) {} /** * Run all the upgrades that should be run every time Valet commands are run. diff --git a/cli/Valet/Valet.php b/cli/Valet/Valet.php index 35910cc..38d7b87 100644 --- a/cli/Valet/Valet.php +++ b/cli/Valet/Valet.php @@ -8,9 +8,7 @@ class Valet { public $valetBin = BREW_PREFIX.'/bin/valet'; - public function __construct(public CommandLine $cli, public Filesystem $files) - { - } + public function __construct(public CommandLine $cli, public Filesystem $files) {} /** * Symlink the Valet Bash script into the user's local bin. diff --git a/cli/includes/facades.php b/cli/includes/facades.php index 32cf54a..3e929ed 100644 --- a/cli/includes/facades.php +++ b/cli/includes/facades.php @@ -23,48 +23,18 @@ public static function __callStatic(string $method, array $parameters): mixed } } -class Brew extends Facade -{ -} -class Nginx extends Facade -{ -} -class CommandLine extends Facade -{ -} -class Composer extends Facade -{ -} -class Configuration extends Facade -{ -} -class Diagnose extends Facade -{ -} -class DnsMasq extends Facade -{ -} -class Expose extends Facade -{ -} -class Filesystem extends Facade -{ -} -class Ngrok extends Facade -{ -} -class PhpFpm extends Facade -{ -} -class Site extends Facade -{ -} -class Status extends Facade -{ -} -class Upgrader extends Facade -{ -} -class Valet extends Facade -{ -} +class Brew extends Facade {} +class Nginx extends Facade {} +class CommandLine extends Facade {} +class Composer extends Facade {} +class Configuration extends Facade {} +class Diagnose extends Facade {} +class DnsMasq extends Facade {} +class Expose extends Facade {} +class Filesystem extends Facade {} +class Ngrok extends Facade {} +class PhpFpm extends Facade {} +class Site extends Facade {} +class Status extends Facade {} +class Upgrader extends Facade {} +class Valet extends Facade {}