Showing 691 of 1,163 total issues
Function onGraphicLoad
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
onGraphicLoad: function () {
var o = this.offset = this.graphic.width / 4,
pos = [[0, 0], [0, -4], [-2, 0], [0, -8], 0, [-2, -8], [0, -2], [0, -6], [-2, -2]],
dim = {height: (2 * o) + 'px', width: (2 * o) + 'px'};
for (var i = 0; i <= 8; i++) {
Method _makeXMLSlideshowConf
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
function _makeXMLSlideshowConf($options)
{
// create a new \XML document
$doc = new DomDocument('1.0');
$doc->formatOutput = true;
Function createOverlay
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
createOverlay: function (o) {
var el = o.overlayId;
if (typeof el == 'string') el = hs.getNode(el);
if (o.html) el = hs.createElement('div', {innerHTML: o.html});
if (!el || typeof el == 'string') return;
Method __construct
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __construct($form, $startTS = 0, $endTS = 0)
{
$startTS = (int)$startTS;
$startTS = ($startTS > 0) ? $startTS : \time();
$startDatetime = \getdate($startTS);
Method getSearchEvents
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
$year = 0,
$month = 0,
$day = 0,
$cat = 0,
$queryarray = null,
Method TrFctStart
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
function TrFctStart($p_file, $p_line, $p_name, $p_param = '', $p_message = '')
{
global $g_pcl_trace_level;
global $g_pcl_trace_mode;
global $g_pcl_trace_filename;
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 dragHandler
has 33 lines of code (exceeds 25 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) {
Method bExtcalUpcomingByCategoryShow
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
function bExtcalUpcomingByCategoryShow($options)
{
global $xoopsUser;
/** @var Helper $helper */
Method updateBlock
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
function updateBlock($bid, $btitle, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options, $groups)
{
$moduleDirName = \basename(\dirname(__DIR__));
$moduleDirNameUpper = \mb_strtoupper($moduleDirName);
Function transit
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
transit: function (adj, exp) {
var last = exp || hs.getExpander();
exp = last;
if (hs.upcoming) return false;
else hs.last = last;
- 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 setPosition
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
setPosition: function (pos, offset, vis, dur, easing) {
var exp = this.exp,
stl = exp.wrapper.style,
offset = offset || 0,
pos = pos || {
- 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 focusTopmost
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
focusTopmost: function () {
var topZ = 0,
topmostKey = -1,
expanders = hs.expanders,
exp,
- 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 focusTopmost
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
focusTopmost: function () {
var topZ = 0,
topmostKey = -1,
expanders = hs.expanders,
exp,
- 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 transit
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
transit: function (adj, exp) {
var last = exp || hs.getExpander();
exp = last;
if (hs.upcoming) return false;
else hs.last = last;
- 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 setPosition
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
setPosition: function (pos, offset, vis, dur, easing) {
var exp = this.exp,
stl = exp.wrapper.style,
offset = offset || 0,
pos = pos || {
- 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 calcExpanded
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
calcExpanded: function () {
var exp = this.exp;
this.justify = 'auto';
- 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 focusTopmost
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
focusTopmost: function () {
var topZ = 0,
topmostKey = -1,
expanders = hs.expanders,
exp,
- 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 setPosition
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
setPosition: function (pos, offset, vis, dur, easing) {
var exp = this.exp,
stl = exp.wrapper.style,
offset = offset || 0,
pos = pos || {
- 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 setSelection
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
public function setSelection($events)
{
$daysInMonth = $this->cE->getDaysInMonth($this->year, $this->month);
for ($i = 1; $i <= $daysInMonth; ++$i) {
$stamp1 = $this->cE->dateToStamp($this->year, $this->month, $i);
- 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"