| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 30 | function adslight_com_update($usid, $total_num): void |
||
| 31 | { |
||
| 32 | /** @var \XoopsMySQLDatabase $xoopsDB */ |
||
| 33 | $xoopsDB = \XoopsDatabaseFactory::getDatabaseConnection(); |
||
| 34 | $sql = 'UPDATE ' . $xoopsDB->prefix('adslight_listing') . " SET comments = {$total_num} WHERE usid = {$usid}"; |
||
| 35 | $xoopsDB->query($sql); |
||
| 36 | } |
||
| 46 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.