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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A whereID() 0 4 1
A firstKey() 0 4 1
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