@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | $name = $this->argument('site') ?: Site::nameFromPath($this->cli->currentWorkingDirectory()); |
33 | 33 | |
34 | - if (! $name) { |
|
34 | + if (!$name) { |
|
35 | 35 | throw new \Exception("Site '{$name}' not found."); |
36 | 36 | } |
37 | 37 |
@@ -35,15 +35,15 @@ discard block |
||
35 | 35 | $currentNginxConf = $site->nginx_conf; |
36 | 36 | |
37 | 37 | $nginxFileLocations = collect(view()->getFinder()->getPaths()) |
38 | - ->map(function ($location) { |
|
39 | - return $location.'/nginx'; |
|
38 | + ->map(function($location) { |
|
39 | + return $location . '/nginx'; |
|
40 | 40 | })->toArray(); |
41 | 41 | |
42 | 42 | $types = collect(iterator_to_array( |
43 | 43 | Finder::create() |
44 | 44 | ->in($nginxFileLocations) |
45 | 45 | ->directories() |
46 | - ))->mapWithKeys(function (\SplFileInfo $file) use ($currentNginxConf) { |
|
46 | + ))->mapWithKeys(function(\SplFileInfo $file) use ($currentNginxConf) { |
|
47 | 47 | $conf = $file->getFilename(); |
48 | 48 | return [$conf => $conf . ($conf == $currentNginxConf ? ' (current)' : '')]; |
49 | 49 | })->sort()->toArray(); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $types |
54 | 54 | )->open(); |
55 | 55 | |
56 | - if (! $option) { |
|
56 | + if (!$option) { |
|
57 | 57 | return; |
58 | 58 | } |
59 | 59 |
@@ -37,12 +37,12 @@ |
||
37 | 37 | $option = $this->menu( |
38 | 38 | 'Available PHP versions', |
39 | 39 | PhpVersion::pluck('version_number', 'id') |
40 | - ->map(function ($version) use ($currentVersion) { |
|
40 | + ->map(function($version) use ($currentVersion) { |
|
41 | 41 | return $version . ($version == $currentVersion ? ' (current)' : ''); |
42 | 42 | })->toArray() |
43 | 43 | )->open(); |
44 | 44 | |
45 | - if (! $option) { |
|
45 | + if (!$option) { |
|
46 | 46 | return; |
47 | 47 | } |
48 | 48 |
@@ -34,16 +34,16 @@ |
||
34 | 34 | $sites = Site::with('php_version') |
35 | 35 | ->orderBy('name', 'asc') |
36 | 36 | ->get() |
37 | - ->map(function ($site) { |
|
37 | + ->map(function($site) { |
|
38 | 38 | return [ |
39 | 39 | $site->name, |
40 | 40 | $site->php_version->version_number, |
41 | 41 | $site->nginx_conf, |
42 | - $site->scheme.$site->url, |
|
42 | + $site->scheme . $site->url, |
|
43 | 43 | ]; |
44 | 44 | }); |
45 | 45 | |
46 | 46 | $this->table($headers, $sites); |
47 | - $this->info('The default PHP version is '. PHPVersion::defaultVersion()->version_number); |
|
47 | + $this->info('The default PHP version is ' . PHPVersion::defaultVersion()->version_number); |
|
48 | 48 | } |
49 | 49 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | $name = $this->argument('site') ?: Site::nameFromPath($this->cli->currentWorkingDirectory()); |
33 | 33 | |
34 | - if (! $name) { |
|
34 | + if (!$name) { |
|
35 | 35 | throw new \Exception("Site '{$name}' not found."); |
36 | 36 | } |
37 | 37 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | $domain = $this->argument('domain'); |
32 | 32 | |
33 | - if (! $domain) { |
|
33 | + if (!$domain) { |
|
34 | 34 | $this->info(sprintf("The current domain is '%s'", setting('domain'))); |
35 | 35 | return; |
36 | 36 | } |
@@ -33,14 +33,14 @@ discard block |
||
33 | 33 | $current = $this->porter->getDockerImageSet()->getName(); |
34 | 34 | |
35 | 35 | if ($this->option('show')) { |
36 | - $this->info("The current image set is: ".$current); |
|
36 | + $this->info("The current image set is: " . $current); |
|
37 | 37 | |
38 | 38 | return; |
39 | 39 | } |
40 | 40 | |
41 | 41 | $sets = app(ImageSetRepository::class) |
42 | 42 | ->availableImageSets() |
43 | - ->mapWithKeys(function ($set) use ($current) { |
|
43 | + ->mapWithKeys(function($set) use ($current) { |
|
44 | 44 | return [$set => $set . ($current == $set ? ' (current)' : '')]; |
45 | 45 | })->toArray(); |
46 | 46 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $sets |
50 | 50 | )->open(); |
51 | 51 | |
52 | - if (! $option) { |
|
52 | + if (!$option) { |
|
53 | 53 | return; |
54 | 54 | } |
55 | 55 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $force = $this->option('force'); |
32 | 32 | $home = realpath($this->argument('home') ?: $this->cli->currentWorkingDirectory()); |
33 | 33 | |
34 | - if (! $force && Database::exists()) { |
|
34 | + if (!$force && Database::exists()) { |
|
35 | 35 | $this->error("Already began, so we've stopped to avoid wiping your settings."); |
36 | 36 | $this->error("If you definitely want to continue, you can force with the --force flag."); |
37 | 37 | return; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $this->line("================"); |
43 | 43 | $this->line(""); |
44 | 44 | |
45 | - if (! file_exists(config('porter.library_path'))) { |
|
45 | + if (!file_exists(config('porter.library_path'))) { |
|
46 | 46 | mkdir(config('porter.library_path')); |
47 | 47 | } |
48 | 48 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | Database::ensureExists($force); |
52 | 52 | |
53 | - $this->info("Your Porter settings are stored in ".config('porter.library_path')); |
|
53 | + $this->info("Your Porter settings are stored in " . config('porter.library_path')); |
|
54 | 54 | $this->info(""); |
55 | 55 | |
56 | 56 | $this->callSilent('home', ['path' => $home]); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function handle(): void |
29 | 29 | { |
30 | 30 | if ($this->option('show')) { |
31 | - $this->info("Home is currently: ". setting('home')); |
|
31 | + $this->info("Home is currently: " . setting('home')); |
|
32 | 32 | return; |
33 | 33 | } |
34 | 34 |