Conditions | 3 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function rules() |
||
28 | { |
||
29 | $user = Auth::guard()->user() ?: Auth::guard()->attemptUser(); |
||
30 | |||
31 | return $this->isMethod('post') ? [ |
||
32 | 'phone' => 'required|numeric|exists:'.config('rinvex.fort.tables.users').',phone,id,'.$user->id.',phone_verified,1', |
||
|
|||
33 | 'method' => 'required', |
||
34 | ] : []; |
||
35 | } |
||
36 | } |
||
37 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.