Completed
Push — master ( e40d53...6434aa )
by Elf
04:31
created
src/Message.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     {
270 270
         $this->channel = $this->user = null;
271 271
 
272
-        if (! empty($target)) {
272
+        if ( ! empty($target)) {
273 273
             $target = (string) $target;
274 274
 
275 275
             $mark = mb_substr($target, 0, 1);
@@ -340,11 +340,11 @@  discard block
 block discarded – undo
340 340
      */
341 341
     public function addAttachment($attachment)
342 342
     {
343
-        if (! is_array($attachment)) {
343
+        if ( ! is_array($attachment)) {
344 344
             $attachment = $this->getAttachmentPayloadFromArguments(func_get_args());
345 345
         }
346 346
 
347
-        if (! empty($attachment)) {
347
+        if ( ! empty($attachment)) {
348 348
             $attachment += $this->attachmentDefaults;
349 349
 
350 350
             $this->attachments[] = $attachment;
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
                         $images[] = ['url' => $img];
383 383
                     }
384 384
                 }
385
-                if (! empty($images)) {
385
+                if ( ! empty($images)) {
386 386
                     $attachment['images'] = $images;
387 387
                 }
388 388
             } elseif ($index === 3) {
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
                 'user' => $this->getUser(),
535 535
                 'attachments' => $this->getAttachments(),
536 536
             ],
537
-            function ($value, $key) {
537
+            function($value, $key) {
538 538
                 return ! (
539 539
                     is_null($value) ||
540 540
                     ($key === 'markdown' && $value === true) ||
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
      */
579 579
     public function send()
580 580
     {
581
-        if (! $this->client) {
581
+        if ( ! $this->client) {
582 582
             return false;
583 583
         }
584 584
 
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
                 return $this->client->sendMessage($firstArg);
590 590
             }
591 591
 
592
-            if (! is_null($firstArg)) {
592
+            if ( ! is_null($firstArg)) {
593 593
                 $this->setText($firstArg);
594 594
             }
595 595
 
Please login to merge, or discard this patch.