MultiAuthServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 62.5%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 24
ccs 5
cts 8
cp 0.625
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 2
A provides() 0 3 1
1
<?php
2
3
namespace Bmatovu\MultiAuth;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class MultiAuthServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     */
12 5
    public function boot()
13
    {
14 5
        if (! $this->app->runningInConsole()) {
15
            return;
16
        }
17
18 5
        $this->commands([
19 5
            Console\InstallCommand::class,
20 5
        ]);
21
    }
22
23
    /**
24
     * Get the services provided by the provider.
25
     *
26
     * @return array
27
     */
28
    public function provides()
29
    {
30
        return [Console\InstallCommand::class];
31
    }
32
}
33