Showing 706 of 6,805 total issues
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct($graph, $xmin = 0, $xmax = 10, $ymin = 0, $ymax = 10)
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct($width = 300, $height = 200, $cachedName = '', $timeout = 0, $inline = 1)
Method _normalizeTestGroup
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
private function _normalizeTestGroup($filename, &$ownFixtures = [], $example_title = 'file_iterator', $debug = false, $attributes = [])
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct($aWidth = 300, $aHeight = 200, $aCachedName = '', $aTimeOut = 0, $aInline = true)
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct($aWidth = 300, $aHeight = 200, $aCachedName = '', $timeout = 0, $inline = 1)
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct($aWidth = 0, $aHeight = 0, $aCachedName = '', $aTimeOut = 0, $aInline = true)
Method SetScale
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function SetScale($aAxisType, $aYMin = 1, $aYMax = 1, $aXMin = 1, $aXMax = 1)
Method Stroke
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function Stroke($pos, $aAxisAngle, &$grid, $title, $lf)
Method SetScale
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function SetScale($axtype, $ymin = 1, $ymax = 1, $dummy1 = null, $dumy2 = null)
Method AutoScale
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function AutoScale($img, $min, $max, $maxsteps, $majend = true)
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct($aWidth = null, $aHeight = null, $aCachedName = '', $aTimeOut = 0, $aInline = true)
Method renameIfDimensionsDontMatch
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public static function renameIfDimensionsDontMatch($exampleRoot, $filename, $__width, $__height, $size)
Function Stroke
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function Stroke($aImg, $aScale)
{
$d = $aScale->NormalizeDate($this->iStart);
if ($d < $aScale->iStartDate || $d > $aScale->iEndDate) {
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 Legend
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function Legend($aGraph)
{
if (!$this->showLegend) {
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 SetFont
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function SetFont($family, $style = FS_NORMAL, $size = 10)
{
$this->font_family = $family;
$this->font_style = $style;
$this->font_size = $size * SUPERSAMPLING_SCALE;
- 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 GetImg
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function GetImg($aMark, $aIdx)
{
$n = $this->an[$aMark];
if (is_string($aIdx)) {
if (!in_array($aIdx, $this->colors, true)) {
- 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 __construct
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function __construct($datax, $datay, $attraction_factor = 1)
{
// Adding control point multiple time will raise their attraction power over the curve
$this->n = safe_count($datax);
if ($this->n !== safe_count($datay)) {
- 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 SetCSIMTarget
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function SetCSIMTarget($aTarget, $aAlt = null, $aAutoTarget = false)
{
$m = $this->iSize[0];
$n = $this->iSize[1];
$csim = '';
- 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 GetTicksFromMinMax
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public static function GetTicksFromMinMax($aMin, $aMax, $aType, $aMinor = false, $aEndPoints = false)
{
self::$starthour = date('G', $aMin);
self::$startmonth = date('n', $aMin);
self::$startday = date('j', $aMin);
- 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 GetHeight
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function GetHeight($aImg)
{
if ($this->iIcon !== null) {
if ($this->iIconConstrain[0] == TIMG_WIDTH) {
$this->iIcon->SetScale(1);
- 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"