@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | private function buildGetUri(array $data) : string |
| 154 | 154 | { |
| 155 | 155 | $glue = strpos($this->uri, '?') !== false ? '&' : '?'; |
| 156 | - return $this->uri . $glue . http_build_query($data); |
|
| 156 | + return $this->uri.$glue.http_build_query($data); |
|
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | /** |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | if (!isset($this->availableFormatter[$this->contentType])) { |
| 173 | - throw new Exception('no default formatter for content-type: ' . $this->contentType); |
|
| 173 | + throw new Exception('no default formatter for content-type: '.$this->contentType); |
|
| 174 | 174 | } |
| 175 | 175 | $class = $this->availableFormatter[$this->contentType]; |
| 176 | 176 | return new $class(); |
@@ -214,12 +214,12 @@ discard block |
||
| 214 | 214 | ]; |
| 215 | 215 | |
| 216 | 216 | if (!empty($body)) { |
| 217 | - $headers[] = 'Content-Type: ' . $this->contentType; |
|
| 217 | + $headers[] = 'Content-Type: '.$this->contentType; |
|
| 218 | 218 | $options['http']['content'] = $body; |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | if (!empty($this->username)) { |
| 222 | - $headers[] = 'Authorization: Basic ' . base64_encode($this->username . ':' . $this->password); |
|
| 222 | + $headers[] = 'Authorization: Basic '.base64_encode($this->username.':'.$this->password); |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | $options['http']['header'] = implode("\r\n", $headers); |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | try { |
| 229 | 229 | file_get_contents($uri, false, $context); |
| 230 | 230 | } catch (\Throwable $t) { |
| 231 | - throw new Exception('could not reach webhook: ' . $this->uri); |
|
| 231 | + throw new Exception('could not reach webhook: '.$this->uri); |
|
| 232 | 232 | } |
| 233 | 233 | } |
| 234 | 234 | } |