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

ArticleRepository   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A paginateEnabled() 0 4 1
A whereSlug() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Mark
5
 * Date: 20/04/2016
6
 * Time: 13:05.
7
 */
8
9
namespace App\Classes\Repositories;
10
11
use App\Model\Article;
12
use Illuminate\Support\Collection;
13
use Illuminate\Database\Eloquent\Builder;
14
15
/**
16
 * Class NewsRepository.
17
 */
18
class ArticleRepository extends Article
19
{
20
    /**
21
     * @param int $integer
22
     * @return mixed
23
     */
24
    public function paginateEnabled($integer = 7)
25
    {
26
        return $this->where('publish', true)->paginate($integer);
27
    }
28
29
    /**
30
     * @param $string
31
     * @return Article
32
     */
33
    public function whereSlug($string) : Article
34
    {
35
        return $this->where('slug', $string)->first();
36
    }
37
}
38