ServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 5
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Gurgentil\EloquentFilters;
4
5
use Gurgentil\EloquentFilters\Console\Commands\MakeFilterCommand;
6
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;
7
8
class ServiceProvider extends IlluminateServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13
    public function boot(): void
14
    {
15
        if ($this->app->runningInConsole()) {
16
            $this->commands([
17
                MakeFilterCommand::class,
18
            ]);
19
        }
20
    }
21
}
22