Test Failed
Push — master ( 30c99c...b8e71f )
by Travis
02:31
created

RuleSetsServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
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;
0 ignored issues
show
Bug introduced by
The type Telkins\Validation\Conso...nds\MakeResourceRuleSet was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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