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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A allLinkableObjects() 0 6 1
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
}