for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* Module: SmartFAQ
* Author: The SmartFactory <www.smartfactory.ca>
* Licence: GNU
* @param $faq_id
* @param $total_num
*/
function smartfaq_com_update($faq_id, $total_num): void
{
$db = \XoopsDatabaseFactory::getDatabaseConnection();
$sql = 'UPDATE ' . $db->prefix('smartfaq_faq') . ' SET comments = ' . $total_num . ' WHERE faqid = ' . $faq_id;
$db->query($sql);
}
* @param $comment
function smartfaq_com_approve(&$comment): void
$comment
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
function smartfaq_com_approve(/** @scrutinizer ignore-unused */ &$comment): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
// notification mail here
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.