| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 21 | function publisher_com_update($itemId, $totalNum): void |
||
| 22 | { |
||
| 23 | global $xoopsModule; |
||
| 24 | /** @var \XoopsMySQLDatabase $db */ |
||
| 25 | $db = \XoopsDatabaseFactory::getDatabaseConnection(); |
||
| 26 | $sql = 'UPDATE ' . $db->prefix($xoopsModule->getVar('dirname', 'n') . '_items') . ' SET comments = ' . $totalNum . ' WHERE itemid = ' . $itemId; |
||
| 27 | $db->query($sql); |
||
| 28 | } |
||
| 37 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.