Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function rules() |
||
38 | { |
||
39 | return [ |
||
40 | 'action' => 'required|unique:'.config('rinvex.fort.tables.abilities').',action,'.$this->get('id').',id,resource,'.$this->get('resource'), |
||
41 | 'resource' => 'required|unique:'.config('rinvex.fort.tables.abilities').',resource,'.$this->get('id').',id,action,'.$this->get('action'), |
||
42 | 'title' => 'required', |
||
43 | ]; |
||
44 | } |
||
45 | |||
59 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.