Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 85a862...11240b )
by Mark
02:23
created

RoleRepository::all()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 4
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Mark
5
 * Date: 12/10/2016
6
 * Time: 20:18.
7
 */
8
9
namespace App\Classes\Repositories;
10
11
use App\Model\Role;
12
use Illuminate\Database\Eloquent\Builder;
13
use Illuminate\Database\Eloquent\Collection;
14
15
/**
16
 * Class RoleRepository.
17
 */
18
class RoleRepository extends Role
19
{
20
21
    /**
22
     * @param int $integer
23
     * @return Role|array|null|\stdClass
24
     */
25
    public function whereID(int $integer)
26
    {
27
        return $this->where('id', $integer)->first();
28
    }
29
30
    /**
31
     * @return Collection|\Illuminate\Support\Collection
32
     */
33
    public function whereRolesGreaterOrEqualToMyAccount()
34
    {
35
        return $this->where('id', '>=', account()->role->id)->get();
36
    }
37
}
38