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 ( 7fd57f...ddf3cc )
by Mark
02:55
created

ActivityRepository   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A paginate() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Marky
5
 * Date: 19/01/2018
6
 * Time: 23:48
7
 */
8
9
namespace App\Classes\Repositories;
10
11
use Illuminate\Support\Collection;
12
use Illuminate\Database\Eloquent\Builder;
13
use App\Model\Activity;
14
15
/**
16
 * Class ActivityRepository
17
 *
18
 * @package App\Classes\Repositories
19
 */
20
class ActivityRepository extends BaseRepository
21
{
22
    /**
23
     * @var Activity|Builder|Collection
24
     */
25
    protected $model;
26
27
    /**
28
     * PageRepository constructor.
29
     *
30
     * @param Activity $model
31
     */
32
    public function __construct(Activity $model)
33
    {
34
        $this->model = $model;
35
    }
36
37
    public function paginate($count = 25)
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
38
    {
39
        return $this->model->orderByDesc('created_at')->paginate($count);
40
    }
41
}