Conditions | 1 |
Paths | 1 |
Total Lines | 37 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
31 | public function rules() |
||
32 | { |
||
33 | |||
34 | return array_merge( |
||
35 | parent::rules(), |
||
36 | [ |
||
37 | [ |
||
38 | [ |
||
39 | 'handle' |
||
40 | ], |
||
41 | HandleValidator::class |
||
42 | ], |
||
43 | [ |
||
44 | [ |
||
45 | 'handle' |
||
46 | ], |
||
47 | 'required' |
||
48 | ], |
||
49 | [ |
||
50 | [ |
||
51 | 'handle' |
||
52 | ], |
||
53 | 'string', |
||
54 | 'max' => 255 |
||
55 | ], |
||
56 | [ |
||
57 | [ |
||
58 | 'handle' |
||
59 | ], |
||
60 | 'safe', |
||
61 | 'on' => [ |
||
62 | ElementHelper::SCENARIO_DEFAULT |
||
63 | ] |
||
64 | ] |
||
65 | ] |
||
66 | ); |
||
67 | } |
||
68 | |||
83 |