| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | public function rules() |
||
| 54 | { |
||
| 55 | return [ |
||
| 56 | 'email' => 'required|email|max:255|unique:'.config('rinvex.fort.tables.users').',email,'.$this->get('id'), |
||
| 57 | 'username' => 'required|max:255|unique:'.config('rinvex.fort.tables.users').',username,'.$this->get('id'), |
||
| 58 | 'phone' => 'required|numeric|unique:'.config('rinvex.fort.tables.users').',phone,'.$this->get('id'), |
||
| 59 | 'password' => 'sometimes|required|min:6|confirmed', |
||
| 60 | ]; |
||
| 61 | } |
||
| 62 | } |
||
| 63 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.