@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | 'storage/logs', |
22 | 22 | ]); |
23 | 23 | set('log_files', 'storage/logs/*.log'); |
24 | -set('laravel_version', function () { |
|
24 | +set('laravel_version', function() { |
|
25 | 25 | $result = run('{{bin/php}} {{release_or_current_path}}/artisan --version'); |
26 | 26 | preg_match_all('/(\d+\.?)+/', $result, $matches); |
27 | 27 | return $matches[0][0] ?? 5.5; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | function artisan($command, $options = []) |
46 | 46 | { |
47 | - return function () use ($command, $options) { |
|
47 | + return function() use ($command, $options) { |
|
48 | 48 | |
49 | 49 | // Ensure the artisan command is available on the current version. |
50 | 50 | $versionTooEarly = array_key_exists('min', $options) |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | task('artisan:key:generate', artisan('key:generate')); |
103 | 103 | |
104 | 104 | desc('Generates the application key for new deployments'); |
105 | -task('artisan:create_key', function () { |
|
105 | +task('artisan:create_key', function() { |
|
106 | 106 | if (has('new_deployment')) { |
107 | 107 | invoke('artisan:key:generate'); |
108 | 108 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $deployer->hosts->set($aliases[0], $host); |
75 | 75 | return $host; |
76 | 76 | } else { |
77 | - $hosts = array_map(function ($hostname) use ($deployer): Host { |
|
77 | + $hosts = array_map(function($hostname) use ($deployer): Host { |
|
78 | 78 | $host = new Host($hostname); |
79 | 79 | $deployer->hosts->set($hostname, $host); |
80 | 80 | return $host; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | $deployer->hosts->set($host->getAlias(), $host); |
97 | 97 | return $host; |
98 | 98 | } else { |
99 | - $hosts = array_map(function ($hostname) use ($deployer): Localhost { |
|
99 | + $hosts = array_map(function($hostname) use ($deployer): Localhost { |
|
100 | 100 | $host = new Localhost($hostname); |
101 | 101 | $deployer->hosts->set($host->getAlias(), $host); |
102 | 102 | return $host; |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | { |
334 | 334 | $currentBecome = get('become'); |
335 | 335 | set('become', $user); |
336 | - return function () use ($currentBecome) { |
|
336 | + return function() use ($currentBecome) { |
|
337 | 337 | set('become', $currentBecome); |
338 | 338 | }; |
339 | 339 | } |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | } |
393 | 393 | } |
394 | 394 | $options = array_merge($namedArguments, $options); |
395 | - $run = function ($command, $options = []): string { |
|
395 | + $run = function($command, $options = []): string { |
|
396 | 396 | $host = currentHost(); |
397 | 397 | |
398 | 398 | $command = parse($command); |