GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( b2510c...ee0bb8 )
by
unknown
12:46
created

BreadcrumbsServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 37.5%

Importance

Changes 0
Metric Value
dl 0
loc 32
c 0
b 0
f 0
ccs 3
cts 8
cp 0.375
rs 10
wmc 2
lcom 1
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A provides() 0 7 1
A register() 0 6 1
1
<?php
2
3
namespace SleepingOwl\Admin\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class BreadcrumbsServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Indicates if loading of the provider is deferred.
11
     *
12
     * @var bool
13
     */
14
    protected $defer = true;
15
16
    /**
17
     * Register the service provider.
18
     *
19
     * @return void
20
     */
21
    public function register()
22
    {
23 285
        $this->app->singleton('sleeping_owl.breadcrumbs', function () {
24
            return $this->app->make(\SleepingOwl\Admin\Templates\Breadcrumbs::class);
25 285
        });
26 285
    }
27
28
    /**
29
     * @return array
30
     */
31
    public function provides()
32
    {
33
        return [
34
            'sleeping_owl.breadcrumbs',
35
            'SleepingOwl\Admin\Contracts\Template\Breadcrumbs',
36
        ];
37
    }
38
}
39