@@ -335,7 +335,7 @@ |
||
335 | 335 | } elseif (is_array($attachment)) { |
336 | 336 | $attachmentObject = new Attachment($attachment); |
337 | 337 | |
338 | - if (! isset($attachment['mrkdwn_in'])) { |
|
338 | + if ( ! isset($attachment['mrkdwn_in'])) { |
|
339 | 339 | $attachmentObject->setMarkdownFields($this->getMarkdownInAttachments()); |
340 | 340 | } |
341 | 341 |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * Slack's Markdown-like language. |
224 | 224 | * |
225 | 225 | * @param bool $value |
226 | - * @return void |
|
226 | + * @return Message |
|
227 | 227 | */ |
228 | 228 | public function setAllowMarkdown($value) |
229 | 229 | { |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | /** |
236 | 236 | * Enable Markdown formatting for the message. |
237 | 237 | * |
238 | - * @return void |
|
238 | + * @return Message |
|
239 | 239 | */ |
240 | 240 | public function enableMarkdown() |
241 | 241 | { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | /** |
248 | 248 | * Disable Markdown formatting for the message. |
249 | 249 | * |
250 | - * @return void |
|
250 | + * @return Message |
|
251 | 251 | */ |
252 | 252 | public function disableMarkdown() |
253 | 253 | { |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | * in Slack's Markdown-like language. |
273 | 273 | * |
274 | 274 | * @param array $fields |
275 | - * @return void |
|
275 | + * @return Message |
|
276 | 276 | */ |
277 | 277 | public function setMarkdownInAttachments(array $fields) |
278 | 278 | { |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | * Send the message. |
391 | 391 | * |
392 | 392 | * @param string $text The text to send |
393 | - * @return void |
|
393 | + * @return Message |
|
394 | 394 | */ |
395 | 395 | public function send($text = null) |
396 | 396 | { |
@@ -374,8 +374,7 @@ |
||
374 | 374 | } |
375 | 375 | } |
376 | 376 | return $this->guzzle->post($this->endpoint, ['form_params' => $payload]); |
377 | - } |
|
378 | - else { |
|
377 | + } else { |
|
379 | 378 | $encoded = json_encode($payload, JSON_UNESCAPED_UNICODE); |
380 | 379 | |
381 | 380 | if ($encoded === false) { |
@@ -411,7 +411,7 @@ |
||
411 | 411 | $payload['attachments'] = $this->getAttachmentsAsArrays($message); |
412 | 412 | |
413 | 413 | $payload = array_filter($payload, function($item) { |
414 | - return !empty($item); |
|
414 | + return ! empty($item); |
|
415 | 415 | }); |
416 | 416 | |
417 | 417 | return $payload; |
@@ -252,7 +252,7 @@ |
||
252 | 252 | /** |
253 | 253 | * Set the callback_id. |
254 | 254 | * |
255 | - * @param string $fallback |
|
255 | + * @param string $callback_id |
|
256 | 256 | * @return $this |
257 | 257 | */ |
258 | 258 | public function setCallbackId($callback_id) { |
@@ -735,7 +735,7 @@ |
||
735 | 735 | $data['actions'] = $this->getActionsAsArrays(); |
736 | 736 | |
737 | 737 | $data = array_filter($data, function($item) { |
738 | - return !empty($item); |
|
738 | + return ! empty($item); |
|
739 | 739 | }); |
740 | 740 | |
741 | 741 | return $data; |
@@ -148,7 +148,7 @@ |
||
148 | 148 | ]; |
149 | 149 | |
150 | 150 | $ret = array_filter($ret, function($item) { |
151 | - return !empty($item); |
|
151 | + return ! empty($item); |
|
152 | 152 | }); |
153 | 153 | |
154 | 154 | return $ret; |
@@ -230,7 +230,7 @@ |
||
230 | 230 | } |
231 | 231 | |
232 | 232 | $ret = array_filter($ret, function($item) { |
233 | - return !empty($item); |
|
233 | + return ! empty($item); |
|
234 | 234 | }); |
235 | 235 | |
236 | 236 | return $ret; |
@@ -148,7 +148,7 @@ |
||
148 | 148 | ]; |
149 | 149 | |
150 | 150 | $ret = array_filter($ret, function($item) { |
151 | - return !empty($item); |
|
151 | + return ! empty($item); |
|
152 | 152 | }); |
153 | 153 | |
154 | 154 | return $ret; |