Passed
Push — master ( 216b36...013ae1 )
by Zing
05:38
created

PhoneNumber   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A routeNotificationForSms() 0 3 1
1
<?php
2
3
namespace Zing\LaravelSms;
4
5
use Illuminate\Notifications\Notifiable;
6
7
class PhoneNumber extends \Overtrue\EasySms\PhoneNumber
8
{
9
    use Notifiable;
0 ignored issues
show
Bug introduced by
The trait Illuminate\Notifications\Notifiable requires the property $email which is not provided by Zing\LaravelSms\PhoneNumber.
Loading history...
10
11 1
    public function routeNotificationForSms($notification)
0 ignored issues
show
Unused Code introduced by
The parameter $notification 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

11
    public function routeNotificationForSms(/** @scrutinizer ignore-unused */ $notification)

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...
12
    {
13 1
        return $this;
14
    }
15
}
16