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.

Sale::guitar()   A
last analyzed

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 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\Database\Eloquent;
6
7
/**
8
 * App\Sale.
9
 *
10
 * @property int $id
11
 * @property int $guitar_id
12
 * @property string $name
13
 * @property string $address
14
 * @property int $shop_id
15
 * @property \Carbon\Carbon $created_at
16
 * @property \Carbon\Carbon $updated_at
17
 * @property \Carbon\Carbon $deleted_at
18
 * @property-read \App\Guitar $guitar
19
 * @property-read \App\Shop $shop
20
 * @method static \Illuminate\Database\Query\Builder|\App\Sale whereId($value)
21
 * @method static \Illuminate\Database\Query\Builder|\App\Sale whereGuitarId($value)
22
 * @method static \Illuminate\Database\Query\Builder|\App\Sale whereName($value)
23
 * @method static \Illuminate\Database\Query\Builder|\App\Sale whereAddress($value)
24
 * @method static \Illuminate\Database\Query\Builder|\App\Sale whereShopId($value)
25
 * @method static \Illuminate\Database\Query\Builder|\App\Sale whereCreatedAt($value)
26
 * @method static \Illuminate\Database\Query\Builder|\App\Sale whereUpdatedAt($value)
27
 * @method static \Illuminate\Database\Query\Builder|\App\Sale whereDeletedAt($value)
28
 * @mixin \Eloquent
29
 */
30
class Sale extends Eloquent\Model
31
{
32
    use Eloquent\SoftDeletes;
33
34
    /**
35
     * @var array
36
     */
37
    protected $dates = ['deleted_at'];
38
39
    /**
40
     * The attributes that are not mass assignable.
41
     *
42
     * @var array
43
     */
44
    protected $guarded = [];
45
46
    /**
47
     * Guitar that was sold.
48
     *
49
     * @return Eloquent\Relations\BelongsTo
50
     */
51
    public function guitar()
52
    {
53
        return $this->belongsTo(Guitar::class);
54
    }
55
56
    /**
57
     * Shop this guitar was sold to.
58
     *
59
     * @return Eloquent\Relations\BelongsTo
60
     */
61
    public function shop()
62
    {
63
        return $this->belongsTo(Shop::class);
64
    }
65
}
66