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 Failed
Branch development (3f6f83)
by José
04:51
created

User::campaigns()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace DoeSangue\Models;
4
5
use Illuminate\Notifications\Notifiable;
6
use Illuminate\Foundation\Auth\User as Authenticatable;
7
use DoeSangue\Models\Campaign;
8
use DoeSangue\Models\Donor;
9
10
class User extends Authenticatable
11
{
12
    use Notifiable;
13
14
    /**
15
     * The attributes that are mass assignable.
16
     *
17
     * @var array
18
     */
19
    protected $fillable = [
20
                            'first_name',
21
                            'last_name',
22
                            'email',
23
                            'username',
24
                            'phone',
25
                            'bio',
26
                            'password',
27
                          ];
28
29
    /**
30
     * The attributes that should be hidden for arrays.
31
     *
32
     * @var array
33
     */
34
    protected $hidden = [
35
                          'password',
36
                          'remember_token',
37
                          'created_at',
38
                          'updated_at'
39
                        ];
40
41
    public function campaigns()
42
    {
43
      return $this->hasMany(Campaign::class);
44
    }
45
46
    public function donor()
47
    {
48
      return $this->hasOne(Donor::class);
49
    }
50
}
51