Skip to content

Commit 2c3e2f3

Browse files
driesvintsgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent 42ba0b2 commit 2c3e2f3

15 files changed

+29
-86
lines changed

cli/Valet/Brew.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ class Brew
3838

3939
const BREW_DISABLE_AUTO_CLEANUP = 'HOMEBREW_NO_INSTALL_CLEANUP=1';
4040

41-
public function __construct(public CommandLine $cli, public Filesystem $files)
42-
{
43-
}
41+
public function __construct(public CommandLine $cli, public Filesystem $files) {}
4442

4543
/**
4644
* Ensure the formula exists in the current Homebrew configuration.

cli/Valet/CommandLine.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ public function runAsUser(string $command, ?callable $onError = null): string
5151
*/
5252
public function runCommand(string $command, ?callable $onError = null): string
5353
{
54-
$onError = $onError ?: function () {
55-
};
54+
$onError = $onError ?: function () {};
5655

5756
// Symfony's 4.x Process component has deprecated passing a command string
5857
// to the constructor, but older versions (which Valet's Composer

cli/Valet/Composer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
class Composer
88
{
9-
public function __construct(public CommandLine $cli)
10-
{
11-
}
9+
public function __construct(public CommandLine $cli) {}
1210

1311
public function installed(string $namespacedPackage): bool
1412
{

cli/Valet/Configuration.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
class Configuration
66
{
7-
public function __construct(public Filesystem $files)
8-
{
9-
}
7+
public function __construct(public Filesystem $files) {}
108

119
/**
1210
* Install the Valet configuration file.

cli/Valet/Diagnose.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ class Diagnose
5555

5656
public $progressBar;
5757

58-
public function __construct(public CommandLine $cli, public Filesystem $files)
59-
{
60-
}
58+
public function __construct(public CommandLine $cli, public Filesystem $files) {}
6159

6260
/**
6361
* Run diagnostics.

cli/Valet/DnsMasq.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ class DnsMasq
1010

1111
public $resolverPath = '/etc/resolver';
1212

13-
public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files, public Configuration $configuration)
14-
{
15-
}
13+
public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files, public Configuration $configuration) {}
1614

1715
/**
1816
* Install and configure DnsMasq.

cli/Valet/Expose.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
class Expose
99
{
10-
public function __construct(public Composer $composer, public CommandLine $cli)
11-
{
12-
}
10+
public function __construct(public Composer $composer, public CommandLine $cli) {}
1311

1412
public function currentTunnelUrl(?string $domain = null): ?string
1513
{

cli/Valet/Nginx.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ class Nginx
1010
const NGINX_CONF = BREW_PREFIX.'/etc/nginx/nginx.conf';
1111

1212
public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files,
13-
public Configuration $configuration, public Site $site)
14-
{
15-
}
13+
public Configuration $configuration, public Site $site) {}
1614

1715
/**
1816
* Install the configuration files for Nginx.

cli/Valet/Ngrok.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ class Ngrok
1313
'http://127.0.0.1:4041/api/tunnels',
1414
];
1515

16-
public function __construct(public CommandLine $cli, public Brew $brew)
17-
{
18-
}
16+
public function __construct(public CommandLine $cli, public Brew $brew) {}
1917

2018
/**
2119
* Get the current tunnel URL from the Ngrok API.

cli/Valet/PhpFpm.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class PhpFpm
1212
'shivammathur/php',
1313
];
1414

15-
public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files, public Configuration $config, public Site $site, public Nginx $nginx)
16-
{
17-
}
15+
public function __construct(public Brew $brew, public CommandLine $cli, public Filesystem $files, public Configuration $config, public Site $site, public Nginx $nginx) {}
1816

1917
/**
2018
* Install and configure PhpFpm.

0 commit comments

Comments
 (0)