| Conditions | 1 |
| Paths | 1 |
| Total Lines | 3 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php $conn = mysqli_connect($config['db_host'], $config['db_user'], $config['db_pass'], $config['db_name']); ?> |
||
| 3 | function validateCaptcha($privatekey, $response) { |
||
| 4 | $responseData = json_decode(file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$privatekey.'&response='.$response)); |
||
| 5 | return $responseData->success; |
||
| 6 | } |
||
| 9 | ?> |
||
This check compares calls to functions or methods with their respective definitions. If the call has less arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.