Passed
Branch master (8cdb92)
by Robin
03:09
created
Category
app/Commands/Site/Secure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Commands/Site/Nginx.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,15 +35,15 @@  discard block
 block discarded – undo
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
 block discarded – undo
53 53
             $types
54 54
         )->open();
55 55
 
56
-        if (! $option) {
56
+        if (!$option) {
57 57
             return;
58 58
         }
59 59
 
Please login to merge, or discard this patch.
app/Commands/Site/Php.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Commands/Site/ListSites.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,16 +34,16 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Commands/Site/Unsecure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Commands/Domain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
app/Commands/Images/UseSet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
49 49
             $sets
50 50
         )->open();
51 51
 
52
-        if (! $option) {
52
+        if (!$option) {
53 53
             return;
54 54
         }
55 55
 
Please login to merge, or discard this patch.
app/Commands/Begin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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]);
Please login to merge, or discard this patch.
app/Commands/Home.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.