@@ -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 |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | $this->setChannel(null); |
271 | 271 | $this->setUser(null); |
272 | 272 | |
273 | - if (! empty($target)) { |
|
273 | + if ( ! empty($target)) { |
|
274 | 274 | $target = (string) $target; |
275 | 275 | |
276 | 276 | $mark = mb_substr($target, 0, 1); |
@@ -341,11 +341,11 @@ discard block |
||
341 | 341 | */ |
342 | 342 | public function addAttachment($attachment) |
343 | 343 | { |
344 | - if (! is_array($attachment)) { |
|
344 | + if ( ! is_array($attachment)) { |
|
345 | 345 | $attachment = $this->getAttachmentPayloadFromArguments(func_get_args()); |
346 | 346 | } |
347 | 347 | |
348 | - if (! empty($attachment)) { |
|
348 | + if ( ! empty($attachment)) { |
|
349 | 349 | $attachment += $this->attachmentDefaults; |
350 | 350 | |
351 | 351 | $this->attachments[] = $attachment; |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | $images[] = ['url' => $img]; |
384 | 384 | } |
385 | 385 | } |
386 | - if (! empty($images)) { |
|
386 | + if ( ! empty($images)) { |
|
387 | 387 | $attachment['images'] = $images; |
388 | 388 | } |
389 | 389 | } elseif ($index === 3) { |
@@ -524,7 +524,7 @@ discard block |
||
524 | 524 | 'user' => $this->getUser(), |
525 | 525 | 'attachments' => $this->getAttachments(), |
526 | 526 | ], |
527 | - function ($value, $key) { |
|
527 | + function($value, $key) { |
|
528 | 528 | return ! ( |
529 | 529 | is_null($value) || |
530 | 530 | ($key === 'markdown' && $value === true) || |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | */ |
569 | 569 | public function send() |
570 | 570 | { |
571 | - if (! $this->client) { |
|
571 | + if ( ! $this->client) { |
|
572 | 572 | return false; |
573 | 573 | } |
574 | 574 | |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | return $this->client->sendMessage($firstArg); |
580 | 580 | } |
581 | 581 | |
582 | - if (! is_null($firstArg)) { |
|
582 | + if ( ! is_null($firstArg)) { |
|
583 | 583 | $this->setText($firstArg); |
584 | 584 | } |
585 | 585 |