Completed
Pull Request — master (#19)
by Şəhriyar
14:06 queued 09:06
created

RegistrarServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
c 1
b 1
f 0
lcom 1
cbo 2
dl 0
loc 30
ccs 3
cts 5
cp 0.6
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
A provides() 0 4 1
1
<?php namespace App\Providers;
2
3
use Illuminate\Support\ServiceProvider;
4
5
class RegistrarServiceProvider extends ServiceProvider
6
{
7
    /**
8
     * Deferring the loading of a provider improves performance of the application,
9
     * since it is not loaded from the filesystem on every request.
10
     *
11
     * @var bool
12
     */
13
    protected $defer = true;
14
15
    /**
16
     * Register any application services.
17
     *
18
     * @return void
19
     */
20 46
    public function register()
21
    {
22 46
        $this->app->bind(\App\Contracts\Registrar::class, \App\Services\Registrar::class);
23 46
    }
24
25
    /**
26
     * Get the services provided by the provider.
27
     *
28
     * @return array
29
     */
30
    public function provides()
31
    {
32
        return [\App\Contracts\Registrar::class];
33
    }
34
}
35