for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
// comment callback functions
/**
* @param $entry_ID
* @param $total_num
*/
function lexikon_com_update($entry_ID, $total_num)
{
$db = \XoopsDatabaseFactory::getDatabaseConnection();
$sql = 'UPDATE ' . $db->prefix('lxentries') . ' SET comments = ' . $total_num . ' WHERE entryID = ' . $entry_ID;
$db->query($sql);
}
* @param $comment
function lexikon_com_approve(&$comment)
$comment
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
function lexikon_com_approve(/** @scrutinizer ignore-unused */ &$comment)
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.