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
Branch development (184ec4)
by butschster
06:08
created

BreadcrumbsServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 50%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
A provides() 0 7 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 283
        $this->app->singleton('sleeping_owl.breadcrumbs', function () {
24 283
            return $this->app->make(\SleepingOwl\Admin\Templates\Breadcrumbs::class);
25 283
        });
26 283
    }
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