Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function send(NotifiableInterface $recipient, NotificationInterface $notification) |
||
33 | { |
||
34 | /** @var DatabaseMessage $message */ |
||
35 | $message = $notification->exportFor('database'); |
||
|
|||
36 | list($notifiableType, $notifiableId) = $recipient->routeNotificationFor('database'); |
||
37 | $this->model->insert(true, [ |
||
38 | 'level' => $message->level, |
||
39 | 'subject' => $message->subject, |
||
40 | 'body' => $message->body, |
||
41 | 'notifiable_type' => $notifiableType, |
||
42 | 'notifiable_id' => $notifiableId, |
||
43 | ]); |
||
45 | } |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.