Completed
Pull Request — master (#2)
by Elf
08:15 queued 03:34
created
src/Client.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,8 +98,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Message.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.