RuleSetsServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 2
1
<?php
2
3
namespace Telkins\Validation\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Telkins\Validation\Console\Commands\MakeFieldRuleSet;
7
use Telkins\Validation\Console\Commands\MakeResourceRuleSet;
8
9
class RuleSetsServiceProvider extends ServiceProvider
10
{
11
    public function register()
12
    {
13
        if ($this->app->runningInConsole()) {
14
            $this->commands([
15
                MakeFieldRuleSet::class,
16
                MakeResourceRuleSet::class,
17
            ]);
18
        }
19
    }
20
}
21