GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

UserMethod   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A sendPasswordResetNotification() 0 3 1
1
<?php
2
3
namespace App\Models\Traits\Method;
4
5
use App\Notifications\MailResetPasswordToken;
6
7
/**
8
 * Trait UserMethod.
9
 */
10
trait UserMethod
11
{
12
    /**
13
     * Send a password reset email to the user.
14
     */
15
    public function sendPasswordResetNotification($token)
16
    {
17
        $this->notify(new MailResetPasswordToken($token));
0 ignored issues
show
Bug introduced by
It seems like notify() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

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

17
        $this->/** @scrutinizer ignore-call */ 
18
               notify(new MailResetPasswordToken($token));
Loading history...
18
    }
19
}
20