for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
* oledrion
*
* @copyright {@link https://xoops.org/ XOOPS Project}
* @license {@link http://www.fsf.org/copyleft/gpl.html GNU public license}
* @author Hervé Thouzard (http://www.herve-thouzard.com/)
* @param $product_id
* @param $total_num
// defined('XOOPS_ROOT_PATH') || die('Restricted access');
function oledrion_com_update($product_id, $total_num)
{
require_once XOOPS_ROOT_PATH . '/modules/oledrion/include/common.php';
global $productsHandler;
if (!is_object($productsHandler)) {
// $handlers = HandlerManager::getInstance();
$productsHandler = $handlers->oledrion_products;
$handlers
}
$productsHandler->updateCommentsCount($product_id, $total_num);
* @param $comment
function oledrion_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 oledrion_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