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.
Completed
Push — master ( 14aa9d...8c82e7 )
by Nikhil
18:50 queued 08:11
created

Model::guitars()   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 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent;
6
7
class Model extends Eloquent\Model
8
{
9
    /**
10
     * We do not want any timestamps.
11
     *
12
     * @var bool
13
     */
14
    public $timestamps = false;
15
16
    /**
17
     * The attributes that are not mass assignable.
18
     *
19
     * @var array
20
     */
21
    protected $guarded = [];
22
23
    /**
24
     * Make of this model.
25
     *
26
     * @return Eloquent\Relations\BelongsTo
27
     */
28 1
    public function make()
29
    {
30 1
        return $this->belongsTo(Make::class);
31
    }
32
33
    /**
34
     * Guitars of this model.
35
     *
36
     * @return Eloquent\Relations\HasMany
37
     */
38
    public function guitars()
39
    {
40
        return $this->hasMany(Guitar::class);
41
    }
42
}
43