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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 29
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A compose() 0 3 1
A __construct() 0 3 1
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