Passed
Push — feature/strategic-response-app... ( 312650 )
by Tristan
05:50
created

StrategicResponseApplicationValidator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
dl 0
loc 11
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A basicInfoSimpleRules() 0 4 1
1
<?php
2
3
namespace App\Services\Validation;
4
5
class StrategicResponseApplicationValidator extends ApplicationValidator
6
{
7
    /**
8
     * OVERRIDE
9
     *
10
     * @return mixed[]
11
     */
12
    protected function basicInfoSimpleRules()
13
    {
14
        return [
15
            'preferred_language_id' => ['required', 'exists:preferred_languages,id'],
16
        ];
17
    }
18
}
19