Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
59 | 4 | public function toArray($notifiable) |
|
60 | { |
||
61 | 4 | $subject = TechTips::find($this->tipID)->subject; |
|
62 | |||
63 | return [ |
||
64 | 4 | 'type' => 'warning', |
|
65 | 4 | 'message' => $this->name.' commented on your Tech Tip', |
|
66 | 4 | 'link' => url(route( |
|
67 | 4 | 'tips.details', |
|
68 | [ |
||
69 | 4 | 'id' => $this->tipID, |
|
70 | 4 | 'name' => urlencode($subject) |
|
71 | ] |
||
76 |