| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 48 | public function rules() |
||
| 49 | { |
||
| 50 | return $this->isMethod('post') ? [ |
||
| 51 | 'email' => 'required|email|max:255|unique:'.config('rinvex.fort.tables.users').',email', |
||
| 52 | 'username' => 'required|alpha_dash|max:255|unique:'.config('rinvex.fort.tables.users').',username', |
||
| 53 | 'password' => 'required|confirmed|min:'.config('rinvex.fort.passwordreset.minimum_characters'), |
||
| 54 | ] : []; |
||
| 55 | } |
||
| 56 | } |
||
| 57 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.