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

basicInfoSimpleRules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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