@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | { |
57 | 57 | $path = $this->info['path'] ?? ''; |
58 | 58 | |
59 | - if(strpos($path, '@') !== false) |
|
59 | + if (strpos($path, '@') !== false) |
|
60 | 60 | { |
61 | 61 | $this->info['path'] = str_replace(' ', '', $path); |
62 | 62 | } |
@@ -64,14 +64,14 @@ discard block |
||
64 | 64 | |
65 | 65 | private function filterScheme() : void |
66 | 66 | { |
67 | - if($this->hasScheme()) |
|
67 | + if ($this->hasScheme()) |
|
68 | 68 | { |
69 | 69 | $this->setScheme(strtolower($this->getScheme())); |
70 | 70 | } |
71 | 71 | else |
72 | 72 | { |
73 | 73 | $scheme = URISchemes::detectScheme($this->url); |
74 | - if(!empty($scheme)) { |
|
74 | + if (!empty($scheme)) { |
|
75 | 75 | $this->setScheme(URISchemes::resolveSchemeName($scheme)); |
76 | 76 | } |
77 | 77 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | private function filterAuth() : void |
81 | 81 | { |
82 | - if(!$this->hasAuth()) { |
|
82 | + if (!$this->hasAuth()) { |
|
83 | 83 | return; |
84 | 84 | } |
85 | 85 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | |
92 | 92 | private function filterHost() : void |
93 | 93 | { |
94 | - if(!$this->hasHost()) |
|
94 | + if (!$this->hasHost()) |
|
95 | 95 | { |
96 | 96 | return; |
97 | 97 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | private function filterPath() : void |
106 | 106 | { |
107 | - if($this->hasPath()) { |
|
107 | + if ($this->hasPath()) { |
|
108 | 108 | $this->setPath($this->getPath()); |
109 | 109 | } |
110 | 110 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | { |
114 | 114 | $host = $this->getPath(); |
115 | 115 | |
116 | - if(empty($host) || !URLHosts::isHostKnown($host)) |
|
116 | + if (empty($host) || !URLHosts::isHostKnown($host)) |
|
117 | 117 | { |
118 | 118 | return; |
119 | 119 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $this->setHost($host); |
122 | 122 | $this->removePath(); |
123 | 123 | |
124 | - if(!$this->hasScheme()) { |
|
124 | + if (!$this->hasScheme()) { |
|
125 | 125 | $this->setSchemeHTTPS(); |
126 | 126 | } |
127 | 127 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $this->info['params'] = array(); |
132 | 132 | |
133 | 133 | $query = $this->getQuery(); |
134 | - if(empty($query)) { |
|
134 | + if (empty($query)) { |
|
135 | 135 | return; |
136 | 136 | } |
137 | 137 |