Completed
Pull Request — master (#5)
by
unknown
01:45
created

MakeUserServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 16
c 0
b 0
f 0
wmc 1
lcom 1
cbo 2
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
1
<?php
2
3
namespace Dyrynda\Artisan;
4
5
use Illuminate\Support\ServiceProvider;
6
use Dyrynda\Artisan\Console\Commands\MakeUser;
7
8
class MakeUserServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Register the application services.
12
     *
13
     * @return void
14
     */
15
    public function register()
16
    {
17
        $this->app->singleton('dyrynda.artisan.make:user', function ($app) {
18
            return $app->make(MakeUser::class);
19
        });
20
21
        $this->commands('dyrynda.artisan.make:user');
22
    }
23
}
24