| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 15 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 9 | public function validate($attribute, $value, $parameters, $validator)  | 
            ||
| 10 |     { | 
            ||
| 11 | $client = new Client();  | 
            ||
| 12 | |||
| 13 |         $response = $client->post('https://www.google.com/recaptcha/api/siteverify', | 
            ||
| 14 | ['form_params'=>  | 
            ||
| 15 | [  | 
            ||
| 16 |                     'secret' => env('GOOGLE_RECAPTCHA_SECRET'), | 
            ||
| 17 | 'response' => $value  | 
            ||
| 18 | ]  | 
            ||
| 19 | ]  | 
            ||
| 20 | );  | 
            ||
| 21 | |||
| 22 | $body = json_decode((string)$response->getBody());  | 
            ||
| 23 | return $body->success;  | 
            ||
| 24 | }  | 
            ||
| 25 | }  | 
            
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.