Skip to content

Commit cf01bbf

Browse files
freekmurzeStyleCIBot
authored andcommitted
Applied fixes from StyleCI
1 parent 5648987 commit cf01bbf

File tree

7 files changed

+16
-20
lines changed

7 files changed

+16
-20
lines changed

src/Events/SendingMessage.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
class SendingMessage
88
{
9-
109
protected $notifiable;
1110

1211
/** @var \Illuminate\Notifications\Notification */

src/Pushbullet.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function getPushbulletUrl()
4646
protected function getHeaders()
4747
{
4848
return [
49-
'Access-Token' => $this->token
49+
'Access-Token' => $this->token,
5050
];
5151
}
5252

@@ -63,13 +63,12 @@ public function send($params)
6363
try {
6464
return $this->httpClient->post($url, [
6565
'json' => $params,
66-
'headers' => $this->getHeaders()
66+
'headers' => $this->getHeaders(),
6767
]);
6868
} catch (ClientException $exception) {
6969
throw CouldNotSendNotification::pushbulletRespondedWithAnError($exception);
7070
} catch (Exception $exception) {
7171
throw CouldNotSendNotification::couldNotCommunicateWithPushbullet();
7272
}
7373
}
74-
75-
}
74+
}

src/PushbulletChannel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function send($notifiable, Notification $notification)
4545
return;
4646
}
4747

48-
/** @var \NotificationChannels\Pushbullet\PushbulletMessage $message */
48+
/** @var \NotificationChannels\Pushbullet\PushbulletMessage $message */
4949
$message = $notification->toPushbullet()->target($target);
5050

5151
$this->pushbullet->send($message->toArray());
@@ -67,7 +67,7 @@ protected function getTarget($notifiable)
6767
return $target;
6868
}
6969

70-
$target = (string)$target;
70+
$target = (string) $target;
7171

7272
if (filter_var($target, FILTER_VALIDATE_EMAIL) !== false) {
7373
return new Email($target);

src/PushbulletMessage.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace NotificationChannels\Pushbullet;
44

5-
use NotificationChannels\Pushbullet\Exceptions\CouldNotSendNotification;
65
use NotificationChannels\Pushbullet\Targets\Targetable;
76

87
class PushbulletMessage
@@ -11,7 +10,7 @@ class PushbulletMessage
1110
const TYPE_LINK = 'link';
1211

1312
/**
14-
* Type of message (currently: note or link)
13+
* Type of message (currently: note or link).
1514
*
1615
* @var string
1716
*/
@@ -21,21 +20,21 @@ class PushbulletMessage
2120
protected $target;
2221

2322
/**
24-
* Notification title
23+
* Notification title.
2524
*
2625
* @var string
2726
*/
2827
public $title;
2928

3029
/**
31-
* Notification message
30+
* Notification message.
3231
*
3332
* @var string
3433
*/
3534
public $message;
3635

3736
/**
38-
* Url if notification is of link type
37+
* Url if notification is of link type.
3938
*
4039
* @var string
4140
*/
@@ -148,7 +147,7 @@ public function toArray()
148147
'target' => $this->target->getTarget(),
149148
'type' => $this->type,
150149
'title' => $this->title,
151-
'body' => $this->message
150+
'body' => $this->message,
152151
];
153152

154153
if ($this->type === static::TYPE_LINK) {
@@ -157,5 +156,4 @@ public function toArray()
157156

158157
return $payload;
159158
}
160-
161159
}

src/Targets/Device.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class Device implements Targetable
66
{
77
/**
8-
* Recipient device id
8+
* Recipient device id.
99
*
1010
* @var string
1111
*/
@@ -28,4 +28,4 @@ public function getTarget()
2828
{
2929
return ['device_iden' => $this->deviceId];
3030
}
31-
}
31+
}

src/Targets/Email.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Email implements Targetable
88
{
99
/**
10-
* Recipient email
10+
* Recipient email.
1111
*
1212
* @var string
1313
*/
@@ -28,10 +28,10 @@ public function __construct($email)
2828
}
2929

3030
/**
31-
* @inheritdoc
31+
* {@inheritdoc}
3232
*/
3333
public function getTarget()
3434
{
3535
return ['email' => $this->email];
3636
}
37-
}
37+
}

src/Targets/Targetable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
interface Targetable
66
{
77
/**
8-
* Get proper target object for Pushbullet client
8+
* Get proper target object for Pushbullet client.
99
*
1010
* @return array
1111
*/

0 commit comments

Comments
 (0)