ServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 2
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