Viddler   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
A boot() 0 7 1
1
<?php
2
3
namespace LeadThread\Viddler\Upload\Providers;
4
5
use Illuminate\Support\ServiceProvider as Provider;
6
use LeadThread\Viddler\Upload\Service;
7
8
class Viddler extends Provider
9
{
10 30
    public function register()
11
    {
12 30
        $this->mergeConfigFrom(__DIR__ . '/../../config/viddler.php', 'viddler');
13
14 30
        $this->app->singleton('viddler', function () {
15 21
            return new Service;
16 30
        });
17 30
    }
18
19 30
    public function boot()
20
    {
21 30
        $this->publishes([
22 30
            __DIR__.'/../../migrations/2016_01_01_000000_create_videos_tables.php' => base_path('database/migrations/2016_01_01_000000_create_videos_tables.php'),
23 30
            __DIR__ . '/../../config/viddler.php' => base_path('config/viddler.php'),
24 30
        ]);
25 30
    }
26
}
27