Passed
Push — master ( 617e52...ff4e9f )
by Arthur
35:51
created

ScriptServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 22
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A register() 0 5 1
1
<?php
2
3
namespace Modules\Script\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Modules\Script\Contracts\ScriptServiceContract;
7
use Modules\Script\Services\ScriptService;
8
9
class ScriptServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Boot the service provider.
13
     *
14
     * @return void
15
     */
16 127
    public function boot()
17
    {
18
       //
19 127
    }
20
21
    /**
22
     * Register the service provider.
23
     *
24
     * @return void
25
     */
26 127
    public function register()
27
    {
28 127
        $this->app->bind(
29 127
                    ScriptServiceContract::class,
30 127
                    ScriptService::class
31
                );
32 127
    }
33
}
34