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.

ContactRepositoryEloquent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 31
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A model() 0 4 1
A validator() 0 5 1
A boot() 0 4 1
1
<?php
2
3
namespace LBHurtado\Missive\Repositories;
4
5
use LBHurtado\Missive\Models\Contact;
6
use Prettus\Repository\Eloquent\BaseRepository;
7
use Prettus\Repository\Criteria\RequestCriteria;
8
use LBHurtado\Missive\Validators\ContactValidator;
9
10
/**
11
 * Class ContactRepositoryEloquent.
12
 *
13
 * @package namespace App\Missive\Domain\Repositories;
14
 */
15
class ContactRepositoryEloquent extends BaseRepository implements ContactRepository
16
{
17
    /**
18
     * Specify Model class name
19
     *
20
     * @return string
21
     */
22
    public function model()
23
    {
24
        return get_class(app('missive.contact'));
25
    }
26
27
    /**
28
     * Specify Validator class name
29
     *
30
     * @return mixed
31
     */
32
    public function validator()
33
    {
34
35
        return ContactValidator::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