ValidationRulesServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
1
<?php
2
3
namespace Spatie\ValidationRules;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class ValidationRulesServiceProvider extends ServiceProvider
8
{
9 144
    public function boot()
10
    {
11 144
        $this->publishes([
12 144
            __DIR__.'/../resources/lang' => resource_path('lang/vendor/validationRules'),
13
        ]);
14
15 144
        $this->loadTranslationsFrom(__DIR__.'/../resources/lang/', 'validationRules');
16 144
    }
17
}
18