Completed
Pull Request — master (#4852)
by
unknown
15:00
created
src/Codeception/Command/Clean.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
     private function cleanProjectsRecursively(OutputInterface $output, $projectDir)
33 33
     {
34 34
         $logDir = Configuration::logDir();
35
-        $output->writeln("<info>Cleaning up output " . $logDir . "...</info>");
35
+        $output->writeln("<info>Cleaning up output ".$logDir."...</info>");
36 36
         FileSystem::doEmptyDir($logDir);
37 37
 
38 38
         $config = Configuration::config($projectDir);
39 39
         $subProjects = $config['include'];
40 40
         foreach ($subProjects as $subProject) {
41
-            $subProjectDir = $projectDir . $subProject;
41
+            $subProjectDir = $projectDir.$subProject;
42 42
             $this->cleanProjectsRecursively($output, $subProjectDir);
43 43
         }
44 44
     }
Please login to merge, or discard this patch.
src/Codeception/Util/Uri.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
         //If the relative URL does not parse, attempt to parse the entire URL.
25 25
         //PHP Known bug ( https://bugs.php.net/bug.php?id=70942 )
26
-        $parts = ($parts === false)?parse_url($baseUri):$parts;
26
+        $parts = ($parts === false) ?parse_url($baseUri) : $parts;
27 27
         if ($parts === false) {
28 28
             throw new \InvalidArgumentException("Invalid URI $uri");
29 29
         }
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
                 if ($basePath) {
47 47
                     // if it ends with a slash, relative paths are below it
48 48
                     if (preg_match('~/$~', $basePath)) {
49
-                        $path = $basePath . $path;
49
+                        $path = $basePath.$path;
50 50
                     } else {
51 51
                         // remove double slashes
52 52
                         $dir = rtrim(dirname($basePath), '\\/');
53
-                        $path = $dir . '/' . $path;
53
+                        $path = $dir.'/'.$path;
54 54
                     }
55 55
                 } else {
56
-                    $path = '/' . ltrim($path, '/');
56
+                    $path = '/'.ltrim($path, '/');
57 57
                 }
58 58
             }
59 59
             $base = $base->withPath($path);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $base = $base->withFragment($parts['fragment']);
69 69
         }
70 70
 
71
-        return (string) $base;
71
+        return (string)$base;
72 72
     }
73 73
 
74 74
     /**
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
         if (!isset($urlParts['host']) or !isset($urlParts['scheme'])) {
92 92
             throw new \InvalidArgumentException("Wrong URL passes, host and scheme not set");
93 93
         }
94
-        $host = $urlParts['scheme'] . '://' . $urlParts['host'];
94
+        $host = $urlParts['scheme'].'://'.$urlParts['host'];
95 95
         if (isset($urlParts['port'])) {
96
-            $host .= ':' . $urlParts['port'];
96
+            $host .= ':'.$urlParts['port'];
97 97
         }
98 98
         return $host;
99 99
     }
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
         $cutUrl = (string)$uri->withQuery('')->withFragment('');
105 105
 
106 106
         if ($path === '' || $path[0] === '#') {
107
-            return $cutUrl . $path;
107
+            return $cutUrl.$path;
108 108
         }
109 109
 
110
-        return rtrim($cutUrl, '/') . '/'  . ltrim($path, '/');
110
+        return rtrim($cutUrl, '/').'/'.ltrim($path, '/');
111 111
     }
112 112
 }
Please login to merge, or discard this patch.