@@ -98,8 +98,7 @@ discard block |
||
98 | 98 | public function getMessageDefaults($option = null) |
99 | 99 | { |
100 | 100 | return is_null($option) ? |
101 | - $this->messageDefaults : |
|
102 | - (isset($this->messageDefaults[$option]) ? $this->messageDefaults[$option] : null); |
|
101 | + $this->messageDefaults : (isset($this->messageDefaults[$option]) ? $this->messageDefaults[$option] : null); |
|
103 | 102 | } |
104 | 103 | |
105 | 104 | /** |
@@ -177,7 +176,7 @@ discard block |
||
177 | 176 | */ |
178 | 177 | protected function getHttpClient() |
179 | 178 | { |
180 | - if (! ($this->httpClient instanceof HttpClient)) { |
|
179 | + if ( ! ($this->httpClient instanceof HttpClient)) { |
|
181 | 180 | $this->httpClient = new HttpClient; |
182 | 181 | } |
183 | 182 |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | $this->setChannel(null); |
290 | 290 | $this->setUser(null); |
291 | 291 | |
292 | - if (! empty($target)) { |
|
292 | + if ( ! empty($target)) { |
|
293 | 293 | $target = (string) $target; |
294 | 294 | |
295 | 295 | $mark = mb_substr($target, 0, 1); |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | $attachment = $this->getAttachmentPayloadFromArguments(func_get_args()); |
365 | 365 | } |
366 | 366 | |
367 | - if (! empty($attachment)) { |
|
367 | + if ( ! empty($attachment)) { |
|
368 | 368 | $attachment += $this->attachmentDefaults; |
369 | 369 | |
370 | 370 | $this->attachments[] = $attachment; |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | $images[] = $value; |
403 | 403 | } |
404 | 404 | } |
405 | - if (! empty($images)) { |
|
405 | + if ( ! empty($images)) { |
|
406 | 406 | $attachment['images'] = $images; |
407 | 407 | } |
408 | 408 | } |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | 'channel' => $this->getChannel(), |
569 | 569 | 'user' => $this->getUser(), |
570 | 570 | 'attachments' => $this->getAttachments(), |
571 | - ], function ($value, $key) { |
|
571 | + ], function($value, $key) { |
|
572 | 572 | return ! (is_null($value) || |
573 | 573 | ($key === 'markdown' && $value === true) || |
574 | 574 | (is_array($value) && empty($value))); |
@@ -609,7 +609,7 @@ discard block |
||
609 | 609 | */ |
610 | 610 | public function send() |
611 | 611 | { |
612 | - if (! $this->client) { |
|
612 | + if ( ! $this->client) { |
|
613 | 613 | return false; |
614 | 614 | } |
615 | 615 | |
@@ -620,7 +620,7 @@ discard block |
||
620 | 620 | return $this->client->sendMessage($firstArg); |
621 | 621 | } |
622 | 622 | |
623 | - if (! is_null($firstArg)) { |
|
623 | + if ( ! is_null($firstArg)) { |
|
624 | 624 | $this->setText($firstArg); |
625 | 625 | } |
626 | 626 |