MakeUserServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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