ValidationExtensionServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
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