@@ -37,14 +37,14 @@ discard block |
||
| 37 | 37 | $body = null, |
| 38 | 38 | $version = '1.1' |
| 39 | 39 | ) { |
| 40 | - if (! ($uri instanceof \Psr\Http\Message\UriInterface)) { |
|
| 40 | + if (!($uri instanceof \Psr\Http\Message\UriInterface)) { |
|
| 41 | 41 | $uri = \One\createUriFromString($uri); |
| 42 | 42 | } |
| 43 | 43 | $this->method = strtoupper($method); |
| 44 | 44 | $this->uri = $uri; |
| 45 | 45 | $this->setHeaders($headers); |
| 46 | 46 | $this->protocol = $version; |
| 47 | - if (! $this->hasHeader('Host')) { |
|
| 47 | + if (!$this->hasHeader('Host')) { |
|
| 48 | 48 | $this->updateHostFromUri(); |
| 49 | 49 | } |
| 50 | 50 | if ($body !== '' && $body !== null) { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public function getRequestTarget() |
| 59 | 59 | { |
| 60 | - if (! empty($this->requestTarget)) { |
|
| 60 | + if (!empty($this->requestTarget)) { |
|
| 61 | 61 | return $this->requestTarget; |
| 62 | 62 | } |
| 63 | 63 | $target = $this->uri->getPath(); |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | } |
| 122 | 122 | $new = clone $this; |
| 123 | 123 | $new->uri = $uri; |
| 124 | - if (! $preserveHost) { |
|
| 124 | + if (!$preserveHost) { |
|
| 125 | 125 | $new->updateHostFromUri(); |
| 126 | 126 | } |
| 127 | 127 | return $new; |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $path = self::validateString(parse_url('http://www.foobar.com/' . $path, PHP_URL_PATH)); |
| 58 | 58 | $query = self::validateString((string) self::checkData($_SERVER, 'QUERY_STRING', '')); |
| 59 | 59 | $fragment = ''; |
| 60 | - if (empty($user) && empty($pass) && ! empty($_SERVER['HTTP_AUTHORIZATION'])) { |
|
| 60 | + if (empty($user) && empty($pass) && !empty($_SERVER['HTTP_AUTHORIZATION'])) { |
|
| 61 | 61 | [$user, $password] = explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6), true)); |
| 62 | 62 | } |
| 63 | 63 | return self::createUri($scheme, $host, $port, $user, $pass, $path, $query, $fragment); |