Passed
Pull Request — master (#53)
by
unknown
01:19
created
src/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 
93 93
         if ($this->options['oauth_token']) {
94 94
             $plugins[] = new HeaderAppendPlugin([
95
-                'Authorization' => 'Bearer ' . $this->options['oauth_token'],
95
+                'Authorization' => 'Bearer '.$this->options['oauth_token'],
96 96
                 'Content-Type' => 'application/json'
97 97
             ]);
98 98
         }
Please login to merge, or discard this patch.
src/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@
 block discarded – undo
264 264
     /**
265 265
      * @return bool
266 266
      */
267
-    public function getReplaceOriginal():? bool
267
+    public function getReplaceOriginal(): ? bool
268 268
     {
269 269
         return $this->replaceOriginal;
270 270
     }
Please login to merge, or discard this patch.
src/Exception/SlackErrorException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $data = json_decode($this->response->getBody()->getContents(), true);
26 26
         $message = 'Slack error: ';
27 27
 
28
-        foreach($data['response_metadata']['messages']??[] as $item) {
28
+        foreach ($data['response_metadata']['messages']??[] as $item) {
29 29
             $message .= $item.'.';
30 30
         }
31 31
         return $message;
Please login to merge, or discard this patch.
src/Block.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 
90 90
     protected function removeNulls(array $data): array
91 91
     {
92
-        foreach($data as $k => $v) {
92
+        foreach ($data as $k => $v) {
93 93
             if ($v === null || (is_array($v) && count($v) === 0)) {
94 94
                 unset($data[$k]);
95 95
             }
Please login to merge, or discard this patch.