Completed
Push — master ( b4c8e6...4832b2 )
by Sebastian
10:13 queued 01:46
created
src/Log/Webhook.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.