Showing 691 of 1,163 total issues
hs
has 42 functions (exceeds 20 allowed). Consider refactoring. Open
var hs = {
// Language strings
lang: {
cssDirection: 'ltr',
loadingText: 'Loading...',
Calendar_Decorator
has 42 functions (exceeds 20 allowed). Consider refactoring. Open
class Calendar_Decorator
{
/**
* Subclass of Calendar being decorated.
*
Method render
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function render()
{
$ret = '';
$formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
Method getFormatedReccurRule
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getFormatedReccurRule($event_recur_rules)
{
$eventOptions = \explode('|', $event_recur_rules);
switch ($eventOptions[0]) {
Function loadHTML
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
loadHTML: function () {
var s = this.cachedGet || this.xhr.responseText,
regBody;
if (this.pre) hs.cachedGets[this.src] = s;
if (!hs.ie || hs.uaVersion >= 5.5) {
- 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 showHideElements
has a Cognitive Complexity of 37 (exceeds 5 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(
- 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
Method bExtcalMinicalShow
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
function bExtcalMinicalShow($options)
{
global $xoopsUser;
extcal_getDefautminicalOption($options);
prototype
has 40 functions (exceeds 20 allowed). Consider refactoring. Open
hs.Expander.prototype = {
error: function (e) {
if (hs.debug) alert('Line ' + e.lineNumber + ': ' + e.message);
else window.location.href = this.src;
},
Method PclTarHandleDelete
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
function PclTarHandleDelete($p_tarname, $p_file_list, &$p_list_detail, $p_tar_mode)
{
TrFctStart(__FILE__, __LINE__, 'PclTarHandleDelete', "archive='$p_tarname', list, tar_mode=$p_tar_mode");
$v_result = 1;
$v_nb = 0;
Function crossfade
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
crossfade: function (up, to, from) {
if (!up) return;
var exp = this,
last = this.last,
x = this.x,
Function justify
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
justify: function (p, moveOnly) {
var tgtArr, tgt = p.target, dim = p == this.x ? 'x' : 'y';
var hasMovedMin = 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 changeSize
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
changeSize: function (up, to, dur) {
if (this.outline && !this.outlineWhileAnimating) {
if (up) this.outline.setPosition();
else this.outline.destroy();
- 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 crossfade
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
crossfade: function (up, to, from) {
if (!up) return;
var exp = this,
last = this.last,
x = this.x,
Function dragHandler
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
dragHandler: function (e) {
if (!hs.dragArgs) return true;
if (!e) e = window.event;
var a = hs.dragArgs, exp = a.exp;
if (exp.iframe) {
- 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 Thumbstrip
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
hs.Thumbstrip = function (slideshow) {
function add(exp) {
hs.extend(options || {}, {
overlayId: dom,
hsId: 'thumbstrip',
Function Thumbstrip
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
hs.Thumbstrip = function (slideshow) {
function add(exp) {
hs.extend(options || {}, {
overlayId: dom,
hsId: 'thumbstrip',
hs
has 37 functions (exceeds 20 allowed). Consider refactoring. Open
var hs = {
// Language strings
lang: {
cssDirection: 'ltr',
loadingText: 'Loading...',
Function loadImg
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public static function loadImg($REQUEST, &$event_picture1, &$event_picture2)
{
///////////////////////////////////////////////////////////////////////////////
$uploaddir_event = XOOPS_ROOT_PATH . '/uploads/extcal/';
$uploadurl_event = XOOPS_URL . '/uploads/extcal/';
- 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
Method PclTarHandleExtractFile
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
function PclTarHandleExtractFile($p_tar, &$v_header, $p_path, $p_remove_path, $p_tar_mode)
{
TrFctStart(__FILE__, __LINE__, 'PclTarHandleExtractFile', "archive_descr='$p_tar', path=$p_path, remove_path='$p_remove_path', tar_mode=$p_tar_mode");
$v_result = 1;
Calendar
has 36 functions (exceeds 20 allowed). Consider refactoring. Open
class Calendar
{
/**
* Instance of class implementing calendar engine interface.
*