Showing 1,049 of 26,336 total issues
Function setPosition
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
setPosition: function (pos, offset, vis, dur, easing) {
Function setPosition
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
setPosition: function (pos, offset, vis, dur, easing) {
Function createElement
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
createElement: function (tag, attribs, styles, parent, nopad) {
Function createElement
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
createElement: function (tag, attribs, styles, parent, nopad) {
Method _diag
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function _diag($xoff, $xlim, $yoff, $ylim, $nchunks)
Method startElementHandler
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function startElementHandler($fname, $tagname, $attributes, $line, $lineno)
Method _block
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function _block($xbeg, $xlen, $ybeg, $ylen, &$edits)
Method get_xoops_search_result
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function get_xoops_search_result($keywords, $andor, $limit, $offset, $uid)
Method get_time_desc_for_a_day
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
$event,
$tzoffset,
$border_for_2400,
$justify = true,
$admission = true
Method ImageColorAllocateAlphaSafe
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
Method ImprovedImageRotate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
&$gdimg_source,
$rotate_angle = 0,
$config_background_hexcolor = 'FFFFFF',
$bg = null,
&$phpThumbObject
Method Crop
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function Crop(&$gdimg, $left = 0, $right = 0, $top = 0, $bottom = 0)
Method ImageBorder
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function ImageBorder(&$gdimg, $border_width, $radius_x, $radius_y, $hexcolor_border)
Function htmlGetSize
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
htmlGetSize: function () {
if (this.iframe && !this.objectHeight) { // loadtime before
this.iframe.style.height = this.body.style.height = this.getIframePageHeight() + 'px';
}
this.innerContent.appendChild(hs.clearing);
- 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 isRelated
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Calendar.isRelated = function (el, evt) {
var related = evt.relatedTarget;
if (!related) {
var type = evt.type;
if (type == "mouseover") {
- 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 showMonthsCombo
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Calendar.showMonthsCombo = function () {
var cal = Calendar._C;
if (!cal) {
return false;
}
- 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 destroyObject
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
destroyObject: function () {
if (hs.ie && this.iframe)
try {
this.iframe.contentWindow.document.body.innerHTML = '';
} catch (e) {
- 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 deletePic
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function deletePic(url, p, e, m, n) {
var xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); //IF ie7+, FF, Chrome, Opera, Safari, ... ELSE IE6, IE5
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200 && xmlhttp.responseText > -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"
Further reading
Function getExpander
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
getExpander: function (el, expOnly) {
if (typeof el == 'undefined') return hs.expanders[hs.focusKey] || null;
if (typeof el == 'number') return hs.expanders[el] || null;
if (typeof el == 'string') el = hs.$(el);
return hs.expanders[hs.getWrapperKey(el, expOnly)] || null;
- 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 getParam
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
getParam: function (a, param) {
a.getParams = a.onclick;
var p = a.getParams ? a.getParams() : null;
a.getParams = null;
- 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"