| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | View Code Duplication | public function prePostEmail(Request $request){ |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Add recaptcha |
||
| 38 | */ |
||
| 39 | if(env('RECAPTCHA_ENABLED') == 1){ |
||
| 40 | $this->validate($request, ['g-recaptcha-response' => 'required|recaptcha']); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $this->postEmail($request); |
||
| 44 | } |
||
| 45 | |||
| 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.