MakeUserServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
eloc 4
c 2
b 0
f 1
dl 0
loc 14
ccs 4
cts 4
cp 1
rs 10

1 Method

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