Passed
Pull Request — master (#53)
by
unknown
05:24
created

getFederationWithPresidentAndCountry()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Repositories\Eloquent;
4
5
use App\Federation;
6
7
class FederationRepository extends BaseRepository
8
{
9
10
11
    /**
12
     * Specify Model class name
13
     *
14
     * @return mixed
15
     */
16
    function model()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
17
    {
18
        return Federation::class;
19
    }
20
21
    public function getFederationWithPresidentAndCountry()
22
    {
23
        return Federation::with('president', 'country');
24
    }
25
26
}    
27