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.
Test Setup Failed
Push — master ( f88331...3d4ba4 )
by Nikhil
17:08 queued 06:47
created

User::getAvatarAttribute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace App;
4
5
use Illuminate\Foundation\Auth\User as Authenticatable;
6
7
class User extends Authenticatable
8
{
9
    /**
10
     * The attributes that are mass assignable.
11
     *
12
     * @var array
13
     */
14
    protected $fillable = [
15
        'name',
16
        'email',
17
        'password',
18
    ];
19
20
    /**
21
     * The attributes excluded from the model's JSON form.
22
     *
23
     * @var array
24
     */
25
    protected $hidden = [
26
        'password',
27
        'remember_token',
28
    ];
29
30
    /**
31
     * The Gravatar for the user.
32
     *
33
     * @return string
34
     */
35
    public function getAvatarAttribute()
36
    {
37
        return 'http://www.gravatar.com/avatar/'.md5($this->attributes['email']);
38
    }
39
}
40