Showing 370 of 370 total issues
Method Rect
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function Rect($x,$y,$w,$h,$style='')
Method AddCIDFonts
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function AddCIDFonts($family,$name,$cw,$CMap,$registry)
Method MakeFont
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function MakeFont($fontfile,$afmfile,$enc='cp1252',$patch=array(),$type='TrueType')
Method AddCIDFonts
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function AddCIDFonts($family,$name,$cw,$CMap,$registry)
Method mylinks_search
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function mylinks_search($queryarray, $andor, $limit, $offset, $userid)
Method _block
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function _block($xbeg, $xlen, $ybeg, $ylen, &$edits)
Method _diag
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function _diag($xoff, $xlim, $yoff, $ylim, $nchunks)
Method mylinks_cleanVars
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public static function mylinks_cleanVars(&$global, $key, $default = '', $type = 'int', $limit = null)
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct($total_items, $items_perpage, $current_start, $start_name = 'start', $extra_arg = '')
Function SetDisplayMode
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function SetDisplayMode($zoom,$layout='continuous')
{
//Set display mode in viewer
if($zoom=='fullpage' || $zoom=='fullwidth' || $zoom=='real' || $zoom=='default' || !is_string($zoom))
$this->ZoomMode=$zoom;
- 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 encoding
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function encoding(&$text, $in_charset)
{
$out_charset = $GLOBALS['valid_pfd_charset'];
if (empty($in_charset) || empty($out_charset) || !strcasecmp($out_charset, $in_charset)) return;
- 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 encoding
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function encoding(&$text, $in_charset)
{
$out_charset = $GLOBALS['valid_pfd_charset'];
if (empty($in_charset) || empty($out_charset) || !strcasecmp($out_charset, $in_charset)) return;
- 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 _encoding
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function _encoding(&$text, $in_charset, $out_charset)
{
if(function_exists('xoopschina_convert_encoding')) {
$text = xoopschina_convert_encoding($text, $in_charset, $out_charset);
- 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 CheckTTF
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function CheckTTF($file)
{
//Check if font license allows embedding
$f=fopen($file,'rb');
if(!$f)
- 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 SetDrawColor
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function SetDrawColor($r,$g=-1,$b=-1)
{
//Set color for all stroking operations
if(($r==0 && $g==0 && $b==0) || $g==-1)
$this->DrawColor=sprintf('%.3f G',$r/255);
- 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 ReadMap
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function ReadMap($enc)
{
//Read a map file
$file=__DIR__.'/'.strtolower($enc).'.map';
$a=file($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
Function encoding
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function encoding(&$text, $in_charset)
{
$out_charset = $GLOBALS['valid_pfd_charset'];
if (empty($in_charset) || empty($out_charset) || !strcasecmp($out_charset, $in_charset)) return;
- 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 load
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function load($lpData, &$hdrLen)
{
$hdrLen = 0;
$this->m_lpVer = substr($lpData, 0, 6);
- 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 SetFillColor
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function SetFillColor($r,$g=-1,$b=-1)
{
//Set color for all filling operations
if(($r==0 && $g==0 && $b==0) || $g==-1)
$this->FillColor=sprintf('%.3f g',$r/255);
- 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 encoding
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function encoding(&$text, $in_charset)
{
$out_charset = $GLOBALS['valid_pfd_charset'];
if (empty($in_charset) || empty($out_charset) || !strcasecmp($out_charset, $in_charset)) return;
- 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"