Showing 272 of 370 total issues
Method SJISMultiCell
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function SJISMultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
Method AddCIDFont
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function AddCIDFont($family,$style,$name,$cw,$CMap,$registry)
Method MultiCell
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function MultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
Function b_system_topposters_edit
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function b_system_topposters_edit($options)
{
include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
$inputtag = "<input type='text' name='options[]' value='" . (int)$options[0] . "'>";
$form = sprintf(_MB_SYSTEM_DISPLAY, $inputtag);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method AddCIDFont
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function AddCIDFont($family,$style,$name,$cw,$CMap,$registry)
Method MultiCell
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function MultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
Method MultiCell
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function MultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
Method MBMultiCell
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function MBMultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
Method MBMultiCell
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function MBMultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
Function deInterlace
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function deInterlace()
{
$data = $this->m_data;
for($i = 0; $i < 4; $i++) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method MultiCell
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function MultiCell($w,$h,$txt,$border=0,$align='J',$fill=0)
Method AddCIDFont
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function AddCIDFont($family,$style,$name,$cw,$CMap,$registry)
Avoid deeply nested control flow statements. Open
if ('' == $shotAttribution) {
$shotAttribution = $shotObj->getAttribution(true);
}
Function __construct
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public function __construct()
{
global $xoopsConfig;
// language file
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Avoid deeply nested control flow statements. Open
if ($pid != 0 && !in_array($pid, array_keys($item_ids))) {
// one of the parent items were not selected, so skip this item
$msg[] = sprintf(_MD_AM_PERMADDNG, '<strong>' . $perm_name . '</strong>', '<strong>' . $perm_data['itemname'][$item_id] . '</strong>', '<strong>' . $group_list[$group_id] . '</strong>') . ' (' . _MD_AM_PERMADDNGP . ')';
continue 2;
}
Function ml_wfd_letters
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function ml_wfd_letters()
{
global $xoopsDB, $xoopsModule;
xoops_loadLanguage('main', $xoopsModule->getVar('dirname'));
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function linksConfigMenu
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function linksConfigMenu()
{
global $xoopsDB, $myts, $myCatTree, $xoopsModule;
$mylinksCatHandler = xoops_getModuleHandler('category', $xoopsModule->getVar('dirname'));
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function mylinks_get_new
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function mylinks_get_new($param)
{
$modulename = basename(dirname(__DIR__));
include_once XOOPS_ROOT_PATH . "/modules/{$modulename}/include/feeddata.inc.php";
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function addLink
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function addLink()
{
global $xoopsDB, $myts, $xoopsUser, $xoopsModule;
$cid = MylinksUtility::mylinks_cleanVars($_POST, 'cid', 0, 'int', array('min' => 0));
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getrank
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function getrank($url)
{
$pagerank = '0';
$ch = '6' . GoogleCH(strord('info:' . $url));
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"