Passed
Push — master ( 28d04d...66d975 )
by Ben
07:16
created
src/Root.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function get()
53 53
     {
54
-        return $this->composeScheme() .
55
-                $this->host() .
54
+        return $this->composeScheme().
55
+                $this->host().
56 56
                 ($this->port() ? ':'.$this->port : null);
57 57
     }
58 58
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     private static function parse(string $url)
115 115
     {
116
-        if (in_array($url, ['//','/'])) {
116
+        if (in_array($url, ['//', '/'])) {
117 117
             return [
118 118
                 'scheme' => null,
119 119
                 'host' => null,
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
             return $parsed['host'];
162 162
         }
163 163
 
164
-        if (! isset($parsed['path'])) {
164
+        if ( ! isset($parsed['path'])) {
165 165
             return null;
166 166
         }
167 167
 
Please login to merge, or discard this patch.
src/Url.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
 
127 127
     private function delocalizePath(array $available_locales)
128 128
     {
129
-        if (! $this->parsedUrl->hasPath()) {
129
+        if ( ! $this->parsedUrl->hasPath()) {
130 130
             return;
131 131
         }
132 132
 
Please login to merge, or discard this patch.
src/ParsedUrl.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@
 block discarded – undo
33 33
 
34 34
     public function get(): string
35 35
     {
36
-        $result = $this->root->get() .
37
-            ($this->hasPath() ? '/' . $this->path() : '') .
38
-            ($this->hasQuery() ? '?' . $this->query() : '') .
39
-            ($this->hasHash() ? '#' . $this->hash() : '');
36
+        $result = $this->root->get().
37
+            ($this->hasPath() ? '/'.$this->path() : '').
38
+            ($this->hasQuery() ? '?'.$this->query() : '').
39
+            ($this->hasHash() ? '#'.$this->hash() : '');
40 40
 
41 41
         return str_replace('///', '//', $result);
42 42
     }
Please login to merge, or discard this patch.