| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | View Code Duplication | public function prePostReset(Request $request){ |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Add recaptcha |
||
| 50 | */ |
||
| 51 | if(env('RECAPTCHA_ENABLED') == 1){ |
||
| 52 | $this->validate($request, ['g-recaptcha-response' => 'required|recaptcha']); |
||
| 53 | } |
||
| 54 | |||
| 55 | return $this->postReset($request); |
||
| 56 | } |
||
| 57 | |||
| 59 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.