Test Failed
Push — master ( 32a20c...d8dad0 )
by Andrés
03:33
created

HablameNotification   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A via() 0 3 1
1
<?php
2
3
namespace Andreshg112\HablameSms;
4
5
use Illuminate\Notifications\Notification;
6
7
abstract class HablameNotification extends Notification
8
{
9
    /**
10
     * Get the notification's delivery channels.
11
     *
12
     * @param \Illuminate\Notifications\Notifiable $notifiable
13
     */
14
    public function via($notifiable): array
0 ignored issues
show
Unused Code introduced by
The parameter $notifiable is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

14
    public function via(/** @scrutinizer ignore-unused */ $notifiable): array

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
15
    {
16
        return [HablameChannel::class];
17
    }
18
19
    /**
20
     * Returns the SMS(s) to send through Háblame SMS.
21
     *
22
     * @param \Illuminate\Notifications\Notifiable $notifiable
23
     */
24
    abstract public function toHablameNotification($notifiable): HablameMessage;
25
}
26