@@ -92,7 +92,7 @@ |
||
| 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 | } |
@@ -264,7 +264,7 @@ |
||
| 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 | } |
@@ -25,7 +25,7 @@ |
||
| 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; |
@@ -89,7 +89,7 @@ |
||
| 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 | } |