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.

RelayRepositoryEloquent::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace LBHurtado\Missive\Repositories;
4
5
use LBHurtado\Missive\Models\Relay;
6
use Prettus\Repository\Eloquent\BaseRepository;
7
use Prettus\Repository\Criteria\RequestCriteria;
8
use LBHurtado\Missive\Validators\RelayValidator;
9
10
/**
11
 * Class ContactRepositoryEloquent.
12
 *
13
 * @package namespace App\Missive\Domain\Repositories;
14
 */
15
class RelayRepositoryEloquent extends BaseRepository implements RelayRepository
16
{
17
    /**
18
     * Specify Model class name
19
     *
20
     * @return string
21
     */
22
    public function model()
23
    {
24
        return get_class(app('missive.relay'));
25
    }
26
27
    /**
28
     * Specify Validator class name
29
     *
30
     * @return mixed
31
     */
32
    public function validator()
33
    {
34
35
        return RelayValidator::class;
36
    }
37
38
    /**
39
     * Boot up the repository, pushing criteria
40
     */
41
    public function boot()
42
    {
43
        $this->pushCriteria(app(RequestCriteria::class));
44
    }
45
}
46