Showing 691 of 1,163 total issues
Function dim
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
dim: function (exp) {
if (!hs.dimmer) {
isNew = true;
hs.dimmer = hs.createElement('div', {
className: 'highslide-dimming highslide-viewport-size',
- 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 htmlPrepareClose
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
htmlPrepareClose: function () {
if (hs.geckoMac) { // bad redraws
if (!hs.mask) hs.mask = hs.createElement('div', null,
{position: 'absolute'}, hs.container);
hs.setStyles(hs.mask, {
- 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 PclTarCreate
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
function PclTarCreate($p_tarname, $p_filelist = '', $p_mode = '', $p_add_dir = '', $p_remove_dir = '')
{
TrFctStart(__FILE__, __LINE__, 'PclTarCreate', "tar=$p_tarname, file='$p_filelist', mode=$p_mode, add_dir='$p_add_dir', remove_dir='$p_remove_dir'");
$v_result = 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 PclTraceAction
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
function PclTraceAction($p_entry)
{
global $g_pcl_trace_level;
global $g_pcl_trace_mode;
global $g_pcl_trace_filename;
- 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 contentLoaded
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
contentLoaded: function () {
try {
if (!this.content) return;
this.content.onload = null;
if (this.onLoadStarted) return;
Method checkVerModule
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function checkVerModule($helper, $source = 'github', $default = 'master')
{
$moduleDirName = \basename(\dirname(__DIR__, 2));
$moduleDirNameUpper = mb_strtoupper($moduleDirName);
$update = '';
Consider simplifying this complex logical expression. Open
if (!hs.container) {
hs.ieLt7 = hs.ie && hs.uaVersion < 7;
hs.ieLt9 = hs.ie && hs.uaVersion < 9;
Function createOverlay
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
createOverlay: function (o) {
var el = o.overlayId,
relToVP = (o.relativeTo == 'viewport' && !/panel$/.test(o.position));
if (typeof el == 'string') el = hs.getNode(el);
if (o.html) el = hs.createElement('div', {innerHTML: o.html});
Function correctRatio
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
correctRatio: function (ratio) {
var x = this.x,
y = this.y,
changed = false,
xSize = Math.min(x.full, x.size),
Function correctRatio
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
correctRatio: function (ratio) {
var x = this.x,
y = this.y,
changed = false,
xSize = Math.min(x.full, x.size),
Method bExtcalUpcomingShow
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
function bExtcalUpcomingShow($options)
{
/** @var Helper $helper */
if (!class_exists(Helper::class)) {
return false;
Function correctRatio
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
correctRatio: function (ratio) {
var x = this.x,
y = this.y,
changed = false,
xSize = Math.min(x.full, x.size),
Method __construct
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
$caption,
$name,
$value = 0,
$min = 0,
$max = 100,
Function showHideElements
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
showHideElements: function (tagName, visibility) {
var els = document.getElementsByTagName(tagName);
var prop = tagName == '*' ? 'overflow' : 'visibility';
for (var i = 0; i < els.length; i++) {
if (prop == 'visibility' || (document.defaultView.getComputedStyle(
Function showHideElements
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
showHideElements: function (tagName, visibility) {
var els = document.getElementsByTagName(tagName);
var prop = tagName == '*' ? 'overflow' : 'visibility';
for (var i = 0; i < els.length; i++) {
if (prop == 'visibility' || (document.defaultView.getComputedStyle(
Function createOverlay
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
createOverlay: function (o) {
var el = o.overlayId,
relToVP = (o.relativeTo == 'viewport' && !/panel$/.test(o.position));
if (typeof el == 'string') el = hs.getNode(el);
if (o.html) el = hs.createElement('div', {innerHTML: o.html});
Function keyHandler
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
keyHandler: function (e) {
if (!e) e = window.event;
if (!e.target) e.target = e.srcElement; // ie
if (typeof e.target.form != 'undefined') return true; // form element has focus
var exp = hs.getExpander();
Function ControlVersion
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
function ControlVersion() {
var version;
var axo;
var e;
Function css
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
css: function (el, prop) {
if (el.style[prop]) {
return el.style[prop];
} else if (document.defaultView) {
return document.defaultView.getComputedStyle(el, null).getPropertyValue(prop);
- 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 getImageMapAreaCorrection
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
getImageMapAreaCorrection: function (area) {
var c = area.coords.split(',');
for (var i = 0; i < c.length; i++) c[i] = parseInt(c[i]);
if (area.shape.toLowerCase() == 'circle') {
- 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"