| 1 | <?php |
||
| 10 | class NewFileUpload extends Notification implements ShouldQueue |
||
| 11 | { |
||
| 12 | use Queueable; |
||
| 13 | protected $details; |
||
| 14 | |||
| 15 | // Constructor receives the file link details |
||
| 16 | 2 | public function __construct($details) |
|
| 20 | |||
| 21 | // Notification is sent via email and dashboard notification |
||
| 22 | 2 | public function via($notifiable) |
|
| 26 | |||
| 27 | // Email notification |
||
| 28 | public function toMail($notifiable) |
||
| 39 | |||
| 40 | // Dashboard notification |
||
| 41 | public function toArray($notifiable) |
||
| 53 | } |
||
| 54 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.