for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Module: XoopsTube
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* PHP version 5
* @param $videoload_id
* @param $total_num
* @author XOOPS Development Team
* @copyright 2001-2016 XOOPS Project (https://xoops.org)
* @license GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
* @link https://xoops.org/
* @since 1.0.6
* @category Module
* @package Xoopstube
*/
// comment callback functions
function xtubeUpdateComment($videoload_id, $total_num)
{
$db = \XoopsDatabaseFactory::getDatabaseConnection();
$sql = 'UPDATE ' . $db->prefix('xoopstube_videos') . ' SET comments=' . $total_num . ' WHERE lid=' . $videoload_id;
$db->query($sql);
}
* @param $comment
function xtubeApproveComment(&$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 xtubeApproveComment(/** @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.