Passed
Push — master ( 8a6050...5a6ead )
by Andrii
11:18
created
src/components/Composer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
     public function autoload()
13 13
     {
14
-        $path =  $this->getPath('vendor/autoload.php');
14
+        $path = $this->getPath('vendor/autoload.php');
15 15
         if (!file_exists($path)) {
16 16
             $this->run('update');
17 17
         }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function getCmd(): string
32 32
     {
33
-        return 'composer' . ($this->dir ? " -d $dir" : '');
33
+        return 'composer'.($this->dir ? " -d $dir" : '');
34 34
     }
35 35
 
36 36
     public function getPath(string $file): string
@@ -39,6 +39,6 @@  discard block
 block discarded – undo
39 39
             return $file;
40 40
         }
41 41
 
42
-        return $this->dir ? $this->dir . DIRECTORY_SEPARATOR . $file : $file;
42
+        return $this->dir ? $this->dir.DIRECTORY_SEPARATOR.$file : $file;
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
src/components/Deployer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     {
15 15
         $path = trim($path);
16 16
         if (strncmp($path, '/', 1) !== 0) {
17
-            $path = getcwd() . '/' . $path;
17
+            $path = getcwd().'/'.$path;
18 18
         }
19 19
         if (!file_exists($path)) {
20 20
             throw new \Exception("no env file at $path");
@@ -217,11 +217,11 @@  discard block
 block discarded – undo
217 217
         if (file_exists($path)) {
218 218
             return $path;
219 219
         }
220
-        $path = __DIR__ . DIRECTORY_SEPARATOR . $file;
220
+        $path = __DIR__.DIRECTORY_SEPARATOR.$file;
221 221
         if (file_exists($path)) {
222 222
             return $path;
223 223
         }
224
-        $path = __DIR__ . DIRECTORY_SEPARATOR . basename($file);
224
+        $path = __DIR__.DIRECTORY_SEPARATOR.basename($file);
225 225
         if (file_exists($path)) {
226 226
             return $path;
227 227
         }
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
         if (strncmp($file, '/', 1) === 0) {
273 273
             $path = $file;
274 274
         } else {
275
-            $path = $this->dir . DIRECTORY_SEPARATOR . $file;
275
+            $path = $this->dir.DIRECTORY_SEPARATOR.$file;
276 276
         }
277 277
 
278 278
         return $this->extractCwd($path);
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         $cwd = $this->getCwd();
284 284
         $len = strlen($cwd);
285 285
         if (strncmp($path, $cwd, $len) === 0) {
286
-            $path = substr($path, $len+1);
286
+            $path = substr($path, $len + 1);
287 287
         }
288 288
 
289 289
         return $path;
Please login to merge, or discard this patch.