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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 2
c 2
b 0
f 2
lcom 0
cbo 1
dl 0
loc 36
ccs 2
cts 2
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A make() 0 4 1
A guitars() 0 4 1
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