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::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
}