Passed
Push — master ( 9459d7...5cb77e )
by Berend
20:54 queued 14:26
created
src/ServerRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,10 +103,10 @@
 block discarded – undo
103 103
 		}
104 104
 
105 105
 		$scheme = isset($this->getServerParams()['HTTPS']) ? 'https://' : 'http://';
106
-		$host = isset($this->getServerParams()['HTTP_HOST']) ? $scheme . $this->getServerParams()['HTTP_HOST'] : '';
106
+		$host = isset($this->getServerParams()['HTTP_HOST']) ? $scheme.$this->getServerParams()['HTTP_HOST'] : '';
107 107
 		$path = isset($this->getServerParams()['REQUEST_URI']) ? $this->getServerParams()['REQUEST_URI'] : '';
108 108
 
109
-		return new URI($host . $path);
109
+		return new URI($host.$path);
110 110
 	}
111 111
 
112 112
 	/**
Please login to merge, or discard this patch.
src/URI.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 				$scheme = $this->getScheme();
133 133
 
134 134
 				if ($scheme) {
135
-					$result .= $scheme . static::DELIMITER_SCHEME;
135
+					$result .= $scheme.static::DELIMITER_SCHEME;
136 136
 				}
137 137
 
138 138
 				if ($end === static::SCHEME) {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 				$username = $this->getUserInfo();
147 147
 
148 148
 				if ($username && $this->getHost()) {
149
-					$result .= static::DELIMITER_AUTHORITY . $username . static::DELIMITER_USER;
149
+					$result .= static::DELIMITER_AUTHORITY.$username.static::DELIMITER_USER;
150 150
 				}
151 151
 
152 152
 				if ($end === static::USERNAME) {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 				$port = $this->getPort();
175 175
 
176 176
 				if ($port !== null && $this->getHost()) {
177
-					$result .= static::DELIMITER_PORT . $port;
177
+					$result .= static::DELIMITER_PORT.$port;
178 178
 				}
179 179
 
180 180
 				if ($end === static::PORT || $end === static::AUTHORITY) {
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 				$query = $this->getQuery();
219 219
 
220 220
 				if ($query) {
221
-					$result .= static::DELIMITER_QUERY . $query;
221
+					$result .= static::DELIMITER_QUERY.$query;
222 222
 				}
223 223
 
224 224
 				if ($end === static::QUERY) {
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 				$fragment = $this->getFragment();
232 232
 
233 233
 				if ($fragment) {
234
-					$result .= static::DELIMITER_FRAGMENT . $fragment;
234
+					$result .= static::DELIMITER_FRAGMENT.$fragment;
235 235
 				}
236 236
 
237 237
 				// no break
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 		$result = $this->username;
292 292
 
293 293
 		if ($this->password !== null) {
294
-			$result .= static::DELIMITER_PASSWORD . $this->password;
294
+			$result .= static::DELIMITER_PASSWORD.$this->password;
295 295
 		}
296 296
 
297 297
 		return $result;
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
 			$result .= static::DELIMITER_PATH;
401 401
 		}
402 402
 
403
-		return $result . $this->getFile();
403
+		return $result.$this->getFile();
404 404
 	}
405 405
 
406 406
 	/**
Please login to merge, or discard this patch.
src/Request.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 		$result = $this->getUri()->getPath() ?: URI::DELIMITER_PATH;
61 61
 
62 62
 		if ($this->getUri()->getQuery()) {
63
-			$result .= URI::DELIMITER_QUERY . $this->getUri()->getQuery();
63
+			$result .= URI::DELIMITER_QUERY.$this->getUri()->getQuery();
64 64
 		}
65 65
 
66 66
 		return $result;
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
 		if (!$preserveHost && ($host = $uri->getHost())) {
143 143
 			if ($uri->getPort() !== null) {
144
-				$host .= URI::DELIMITER_PORT . $uri->getPort();
144
+				$host .= URI::DELIMITER_PORT.$uri->getPort();
145 145
 			}
146 146
 
147 147
 			$this->setHeader('Host', $host);
Please login to merge, or discard this patch.
src/ServerResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@
 block discarded – undo
45 45
 	public function send()
46 46
 	{
47 47
 		if ($this->getProtocolVersion() && $this->getStatusCode()) {
48
-			header(static::VERSION_DELIMITER . $this->getProtocolVersion() . ' ' . $this->getStatusCode() . ' ' . $this->getReasonPhrase());
48
+			header(static::VERSION_DELIMITER.$this->getProtocolVersion().' '.$this->getStatusCode().' '.$this->getReasonPhrase());
49 49
 		}
50 50
 
51 51
 		foreach ($this->getHeaders() as $key => $value) {
52
-			header($key . static::HEADER_DELIMITER . implode(static::HEADER_VALUE_DELIMITER, $value));
52
+			header($key.static::HEADER_DELIMITER.implode(static::HEADER_VALUE_DELIMITER, $value));
53 53
 		}
54 54
 
55 55
 		echo $this->getBody();
Please login to merge, or discard this patch.
src/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 		if ($name !== null) {
50 50
 			session_name($name);
51 51
 		}
52
-		if ($domain){
52
+		if ($domain) {
53 53
 			preg_match("/[^\.\/]+\.[^\.\/]+$/", $_SERVER['HTTP_HOST'], $matches);
54 54
 			session_set_cookie_params(0, '/', $matches[0]);
55 55
 		}
Please login to merge, or discard this patch.