Skip to content

Commit ae4341d

Browse files
authored
Merge pull request #3 from laravel-notification-channels/analysis-zY6KNd
Applied fixes from StyleCI
2 parents 5561175 + 974e29a commit ae4341d

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/MessagebirdChannel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class MessagebirdChannel
1515
{
16-
/** @var \MessageBird\Client */
16+
/** @var \MessageBird\Client */
1717
protected $client;
1818

1919
public function __construct(Client $client)
@@ -29,8 +29,6 @@ public function __construct(Client $client)
2929
*
3030
* @throws \NotificationChannels\MessageBird\Exceptions\CouldNotSendNotification
3131
*/
32-
33-
3432
public function send($notifiable, Notification $notification)
3533
{
3634
$shouldSendMessage = event(new SendingMessage($notifiable, $notification), [], true) !== false;

src/MessagebirdMessage.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66

77
class MessagebirdMessage extends Message
88
{
9-
109
public static function create($body = '', $originator = null, $recipients = null)
1110
{
1211
return new static($body, $originator, $recipients);
1312
}
1413

1514
public function __construct($body = '', $originator = null, $recipients = null)
1615
{
17-
if (!empty($body)) {
16+
if (! empty($body)) {
1817
$this->body(trim($body));
1918
}
2019

@@ -29,7 +28,7 @@ public function setOriginator($originator)
2928

3029
public function setRecipients($recipients = null)
3130
{
32-
if (!$recipients) {
31+
if (! $recipients) {
3332
$recipients = config('services.messagebird.recipients');
3433
}
3534

@@ -40,6 +39,5 @@ public function setRecipients($recipients = null)
4039
$this->recipients = $recipients;
4140

4241
return $this;
43-
4442
}
45-
}
43+
}

0 commit comments

Comments
 (0)