Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | 3 | public function send($notifiable, Notification $notification) |
|
35 | { |
||
36 | 3 | if (! $to = $notifiable->routeNotificationFor('every8d')) { |
|
37 | 1 | return; |
|
38 | } |
||
39 | |||
40 | 2 | $message = $notification->toEvery8d($notifiable); |
|
41 | |||
42 | 2 | if (is_string($message)) { |
|
43 | 1 | $message = new Every8dMessage($message); |
|
44 | 1 | } |
|
45 | |||
46 | 2 | return $this->client->send([ |
|
47 | 2 | 'subject' => $message->subject, |
|
48 | 2 | 'to' => $to, |
|
49 | 2 | 'text' => trim($message->content), |
|
50 | 2 | ]); |
|
51 | } |
||
52 | } |
||
53 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.