1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 00:40:06 +01:00

Fix code styling

This commit is contained in:
driesvints
2024-06-18 16:58:03 +00:00
committed by github-actions[bot]
parent 42ba0b20ad
commit 2c3e2f3da1
15 changed files with 29 additions and 86 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -6,9 +6,7 @@
class Composer
{
public function __construct(public CommandLine $cli)
{
}
public function __construct(public CommandLine $cli) {}
public function installed(string $namespacedPackage): bool
{

View File

@@ -4,9 +4,7 @@
class Configuration
{
public function __construct(public Filesystem $files)
{
}
public function __construct(public Filesystem $files) {}
/**
* Install the Valet configuration file.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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
{

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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

View File

@@ -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.

View File

@@ -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.

View File

@@ -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 {}