Viddler::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
ccs 6
cts 6
cp 1
cc 1
eloc 4
nc 1
nop 0
crap 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