ServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
dl 0
loc 19
rs 10
c 1
b 0
f 1
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 2 1
A boot() 0 5 2
1
<?php
2
3
namespace Orkhanahmadov\EloquentRepository;
4
5
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
6
use Orkhanahmadov\EloquentRepository\Console\RepositoryMakeCommand;
7
8
class ServiceProvider extends BaseServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13
    public function boot()
14
    {
15
        if ($this->app->runningInConsole()) {
16
            $this->commands([
17
                RepositoryMakeCommand::class,
18
            ]);
19
        }
20
    }
21
22
    /**
23
     * Register the application services.
24
     */
25
    public function register()
26
    {
27
        //
28
    }
29
}
30