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

SettingsRepository::__construct()   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 1
dl 4
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Mark
5
 * Date: 11/03/2016
6
 * Time: 17:35.
7
 */
8
9
namespace App\Classes\Repositories;
10
11
use App\Model\Setting;
12
use Illuminate\Support\Collection;
13
use Illuminate\Database\Eloquent\Builder;
14
15
/**
16
 * Class SettingsRepository.
17
 */
18
class SettingsRepository extends Setting
19
{
20
21
    /**
22
     * Return a single model where the integer matches.
23
     *
24
     * @param $integer
25
     * @return SettingsRepository|array|\Illuminate\Database\Eloquent\Model
26
     */
27
    public function whereID(int $integer)
28
    {
29
        return $this->where('id', $integer)->first();
30
    }
31
32
    /**
33
     * @param string $string
34
     * @return Setting
35
     */
36
    public function firstKey(string $string)
37
    {
38
        return $this->where('key', $string)->first();
39
    }
40
}
41