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.

Profile   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 49
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A theme() 0 3 1
A user() 0 3 1
1
<?php
2
3
namespace App\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Profile extends Model
8
{
9
    /**
10
     * The database table used by the model.
11
     *
12
     * @var string
13
     */
14
    protected $table = 'profiles';
15
16
    /**
17
     * The attributes that are not mass assignable.
18
     *
19
     * @var array
20
     */
21
    protected $guarded = [
22
        'id',
23
    ];
24
25
    /**
26
     * Fillable fields for a Profile.
27
     *
28
     * @var array
29
     */
30
    protected $fillable = [];
31
32
    protected $casts = [
33
        'theme_id' => 'integer',
34
    ];
35
36
    /**
37
     * A profile belongs to a user.
38
     *
39
     * @return mixed
40
     */
41
    public function user()
42
    {
43
        return $this->belongsTo('App\Models\User');
44
    }
45
46
    /**
47
     * Profile Theme Relationships.
48
     *
49
     * @var array
50
     *
51
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
52
     */
53
    public function theme()
54
    {
55
        return $this->hasOne('App\Models\Theme');
56
    }
57
}
58