Passed
Push — 0.6 ( a96f06...3caceb )
by Philippe
04:03
created

MigrateServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 5
c 1
b 0
f 0
dl 0
loc 18
ccs 7
cts 7
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A register() 0 6 2
1
<?php
2
3
namespace Thinktomorrow\AssetLibrary;
4
5
use Illuminate\Support\ServiceProvider;
6
use Thinktomorrow\AssetLibrary\Commands\ImageToAssetMigrateCommand;
7
8
class MigrateServiceProvider extends ServiceProvider
9
{
10 78
    public function boot()
11
    {
12
        
13 78
    }
14
15
    /**
16
     * Bootstrap any application services.
17
     *
18
     * @return void
19
     */
20 78
    public function register()
21
    {
22 78
        if($this->app->runningInConsole()) {
23 78
            $this->app->bind('command.assetlibrary:migrate-image', ImageToAssetMigrateCommand::class);
24 78
            $this->commands([
25 78
                'command.assetlibrary:migrate-image',
26
            ]);
27
        }
28 78
    }
29
}
30