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.

VerifyNewEmail   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 1
A __construct() 0 3 1
1
<?php
2
3
namespace ProtoneMedia\LaravelVerifyNewEmail\Mail;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Contracts\Queue\ShouldQueue;
7
use Illuminate\Database\Eloquent\Model;
8
use Illuminate\Mail\Mailable;
9
use Illuminate\Queue\SerializesModels;
10
11
class VerifyNewEmail extends Mailable implements ShouldQueue
12
{
13
    use Queueable, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by ProtoneMedia\LaravelVeri...ail\Mail\VerifyNewEmail: $id, $relations, $class, $keyBy
Loading history...
14
15
    /**
16
     * @var \Illuminate\Database\Eloquent\Model
17
     */
18
    public $pendingUserEmail;
19
20
    /**
21
     * Create a new message instance.
22
     *
23
     * @return void
24
     */
25
    public function __construct(Model $pendingUserEmail)
26
    {
27
        $this->pendingUserEmail = $pendingUserEmail;
28
    }
29
30
    /**
31
     * Build the message.
32
     *
33
     * @return $this
34
     */
35
    public function build()
36
    {
37
        $this->subject(__('Verify Email Address'));
0 ignored issues
show
Bug introduced by
It seems like __('Verify Email Address') can also be of type array and array; however, parameter $subject of Illuminate\Mail\Mailable::subject() does only seem to accept string, maybe add an additional type check? ( Ignorable by Annotation )

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

37
        $this->subject(/** @scrutinizer ignore-type */ __('Verify Email Address'));
Loading history...
38
39
        return $this->markdown('verify-new-email::verifyNewEmail', [
40
            'url' => $this->pendingUserEmail->verificationUrl(),
41
        ]);
42
    }
43
}
44