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

LinkRepository::allLinkableObjects()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Marky
5
 * Date: 19/01/2018
6
 * Time: 12:46
7
 */
8
9
namespace App\Classes\Repositories;
10
11
use App\Classes\Interfaces\Linkable;
12
use App\Model\Link;
13
use Illuminate\Support\Collection;
14
15
/**
16
 * Class LinkRepository
17
 *
18
 * @package App\Classes\Repositories
19
 */
20
class LinkRepository extends BaseRepository
21
{
22
    /**
23
     * @var Link
24
     */
25
    protected $model;
26
27
    /**
28
     * PageRepository constructor.
29
     *
30
     * @param Link $model
31
     */
32
    public function __construct(Link $model)
33
    {
34
        $this->model = $model;
35
    }
36
37
    /**
38
     * @return Collection
39
     */
40
    public function allLinkableObjects() : Collection
41
    {
42
        $pages = app(PageRepository::class)->all();
43
44
        return collect($pages);
45
    }
46
}