Passed
Branch master (8cdb92)
by Robin
03:09
created
Category
app/Support/Console/Cli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $process = new Process($command);
34 34
 
35 35
         try {
36
-            $process->mustRun(function ($type, $buffer) {
36
+            $process->mustRun(function($type, $buffer) {
37 37
                 echo $buffer;
38 38
             });
39 39
         } catch (ProcessFailedException $e) {
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         try {
55 55
             $process->setTty(true);
56
-            $process->mustRun(function ($type, $buffer) {
56
+            $process->mustRun(function($type, $buffer) {
57 57
                 echo $buffer;
58 58
             });
59 59
         } catch (ProcessFailedException $e) {
Please login to merge, or discard this patch.
app/Support/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  */
13 13
 function setting($key = null, $default = null)
14 14
 {
15
-    if (! $key) {
15
+    if (!$key) {
16 16
         return Setting::all()->pluck('value', 'name');
17 17
     }
18 18
 
Please login to merge, or discard this patch.
app/Support/Mechanics/MacOs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $command = "sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain {$pem}";
22 22
         $this->commands[] = $command;
23 23
 
24
-        if($this->isTesting()) {
24
+        if ($this->isTesting()) {
25 25
             $this->console->info("Did not trust CA during testing.");
26 26
             return;
27 27
         }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $command = "sudo security add-trusted-cert -d -r trustAsRoot -k /Library/Keychains/System.keychain {$crt}";
43 43
         $this->commands[] = $command;
44 44
 
45
-        if($this->isTesting()) {
45
+        if ($this->isTesting()) {
46 46
             $this->console->info("Did not trust Certificate during testing.");
47 47
             return;
48 48
         }
Please login to merge, or discard this patch.
app/Support/Mechanics/Windows.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
     {
16 16
         $bag = app(ServerBag::class);
17 17
 
18
-        return $bag->get('HOME') ?? $bag->get('HOMEDRIVE').$bag->get('HOMEPATH');
18
+        return $bag->get('HOME') ?? $bag->get('HOMEDRIVE') . $bag->get('HOMEPATH');
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
app/Support/Images/ImageSetRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function getImageRepository($imageSetName)
39 39
     {
40 40
         foreach (array_reverse($this->locations) as $location) {
41
-            $path = $location.'/'.$imageSetName;
41
+            $path = $location . '/' . $imageSetName;
42 42
             if (is_dir($path)) {
43 43
                 return new ImageRepository($path, $imageSetName);
44 44
             }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function availableImageSets()
56 56
     {
57 57
         return collect($this->locations)
58
-            ->flatMap(function ($location) {
58
+            ->flatMap(function($location) {
59 59
                 try {
60 60
                     return iterator_to_array(
61 61
                         Finder::create()->in($location)->depth(1)->directories()
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                     return null;
65 65
                 }
66 66
             })->filter()
67
-            ->map(function (SplFileInfo $directory) {
67
+            ->map(function(SplFileInfo $directory) {
68 68
                 return $directory->getRelativePathname();
69 69
             })->unique();
70 70
     }
Please login to merge, or discard this patch.
app/Support/Dnsmasq/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 {
8 8
     public function updateDomain($from, $to)
9 9
     {
10
-        $filePath = config('porter.library_path').'/config/dnsmasq/dnsmasq.conf';
10
+        $filePath = config('porter.library_path') . '/config/dnsmasq/dnsmasq.conf';
11 11
 
12 12
         $newConfig = preg_replace("/\/.{$from}\//", "/.{$to}/", file_get_contents($filePath));
13 13
 
Please login to merge, or discard this patch.
app/Support/Database/Database.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
      */
15 15
     public static function ensureExists($forceRefresh = false)
16 16
     {
17
-        if (! is_dir(static::databaseDirectory())) {
17
+        if (!is_dir(static::databaseDirectory())) {
18 18
             mkdir(static::databaseDirectory(), 0777, true);
19 19
         }
20 20
 
21
-        if (! static::exists()) {
21
+        if (!static::exists()) {
22 22
             touch(static::databasePath());
23 23
             static::refresh();
24 24
 
Please login to merge, or discard this patch.
app/Commands/Php/PhpDefault.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             PhpVersion::pluck('version_number', 'id')->toArray()
34 34
         )->open();
35 35
 
36
-        if (! $option) {
36
+        if (!$option) {
37 37
             return;
38 38
         }
39 39
 
Please login to merge, or discard this patch.
app/Commands/Php/ListVersions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $versions = PhpVersion::orderBy('name', 'asc')
36 36
             ->get()
37
-            ->map(function ($version) use ($activeVersions) {
37
+            ->map(function($version) use ($activeVersions) {
38 38
                 return [
39 39
                     $version->version_number,
40 40
                     $version->default ? 'yes' : '-',
Please login to merge, or discard this patch.