Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Test Setup Failed
Pull Request — development (#68)
by José
06:06
created

UserCreated   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 32
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A build() 0 11 1
1
<?php
2
3
namespace GiveBlood\Mail;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Mail\Mailable;
7
use Illuminate\Queue\SerializesModels;
8
use Illuminate\Contracts\Queue\ShouldQueue;
9
use GiveBlood\Modules\Users\User;
10
11
class UserCreated extends Mailable implements ShouldQueue
12
{
13
    use Queueable, SerializesModels;
14
15
    protected $user;
16
17
    /**
18
     * Create a new message instance.
19
     *
20
     */
21
    public function __construct(User $user)
22
    {
23
        $this->user = $user;
24
    }
25
26
    /**
27
     * Build the message.
28
     *
29
     * @return $this
30
     */
31
    public function build()
32
    {
33
        return $this->markdown('email.users.created')
34
            ->with(
35
                [
36
                        'FirstName' => $this->user->first_name,
37
                        'LastName' => $this->user->last_name,
38
                        'UserName' => $this->user->username
39
                        ]
40
            );
41
    }
42
}
43