Showing 272 of 370 total issues
Method MakeFont
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function MakeFont($fontfile,$afmfile,$enc='cp1252',$patch=array(),$type='TrueType')
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 Link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function Link($x,$y,$w,$h,$link)
Method AddCIDFonts
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function AddCIDFonts($family,$name,$cw,$CMap,$registry)
Method AddCIDFonts
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function AddCIDFonts($family,$name,$cw,$CMap,$registry)
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 _block
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function _block($xbeg, $xlen, $ybeg, $ylen, &$edits)
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 = '')
Method mylinks_search
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function mylinks_search($queryarray, $andor, $limit, $offset, $userid)
Method _diag
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function _diag($xoff, $xlim, $yoff, $ylim, $nchunks)
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 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 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 = $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 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"