ValidationExtensionServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 1 1
A boot() 0 5 1
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class ValidationExtensionServiceProvider extends ServiceProvider
8
{
9
10
    public function register() {}
11
12
    public function boot() {
13
        $this->app->validator->resolver( function( $translator, $data, $rules,
0 ignored issues
show
Bug introduced by
The property validator does not seem to exist on Tests\Laravel\App.
Loading history...
14
                                                   $messages = array(), $customAttributes = array() ) {
15
            return new ValidatorExtended( $translator, $data, $rules, $messages,
16
                $customAttributes );
17
        } );
18
    }
19
}
20