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

BreadcrumbComposer::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * Date: 29/04/2017
5
 * Time: 23:02.
6
 */
7
8
namespace App\Composer;
9
10
use Illuminate\View\View;
11
use App\Classes\Breadcrumbs;
12
13
/**
14
 * Class BreadcrumbComposer.
15
 */
16
class BreadcrumbComposer
17
{
18
    /**
19
     * The breadcrumb class implementation.
20
     *
21
     * @var Breadcrumbs
22
     */
23
    private $breadcrumbs;
24
25
    /**
26
     * Create a new breadcrumb composer.
27
     *
28
     * @param Breadcrumbs $breadcrumbs
29
     * @internal param View $view
30
     */
31
    public function __construct(Breadcrumbs $breadcrumbs)
32
    {
33
        $this->breadcrumbs = $breadcrumbs;
34
    }
35
36
    /**
37
     * Bind data to the view.
38
     *
39
     * @param  View  $view
40
     * @return void
41
     */
42
    public function compose(View $view)
43
    {
44
        $view->with('breadcrumbs', Breadcrumbs::fromCurrentRoute()->limit(3));
45
    }
46
}
47