Showing 691 of 1,163 total issues
Method insert
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function insert(\XoopsObject $obj, $force = false, $checkObject = true)
{
if (false !== $checkObject) {
if (!\is_object($obj)) {
// var_dump($obj);
Calendar_Engine_UnixTS
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
class Calendar_Engine_UnixTS /* implements Calendar_Engine_Interface */
{
/**
* Makes sure a given timestamp is only ever parsed once
* <pre>
Calendar_Engine_Interface
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
class Calendar_Engine_Interface
{
/**
* Provides a mechansim to make sure parsing of timestamps
* into human dates is only performed once per timestamp.
Function positionOverlay
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
positionOverlay: function (overlay) {
var p = overlay.position || 'middle center',
relToVP = (overlay.relativeTo == 'viewport'),
offX = overlay.offsetX,
offY = overlay.offsetY;
Function contentLoaded
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
contentLoaded: function () {
try {
if (!this.content) return;
this.content.onload = null;
if (this.onLoadStarted) return;
Function positionOverlay
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
positionOverlay: function (overlay) {
var p = overlay.position || 'middle center',
relToVP = (overlay.relativeTo == 'viewport'),
offX = overlay.offsetX,
offY = overlay.offsetY;
Method PclTarHandleReadHeader
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
function PclTarHandleReadHeader($v_binary_data, &$v_header)
{
TrFctStart(__FILE__, __LINE__, 'PclTarHandleReadHeader', '');
$v_result = 1;
Function fade
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
fade: function (up, to) {
this.outlineWhileAnimating = false;
var exp = this, t = up ? hs.expandDuration : 0;
if (up) {
- 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 fade
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
fade: function (up, to) {
this.outlineWhileAnimating = false;
var exp = this, t = up ? hs.expandDuration : 0;
if (up) {
- 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 htmlCreate
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
htmlCreate: function () {
if (!hs.fireEvent(this, 'onBeforeGetContent')) return;
this.content = hs.getCacheBinding(this.a);
if (!this.content)
Method truncateHtml
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function truncateHtml($text, $length = 100, $ending = '...', $exact = false, $considerHtml = true)
{
if ($considerHtml) {
// if the plain text is shorter than the maximum length, return the whole text
if (mb_strlen(\preg_replace('/<.*?' . '>/', '', $text)) <= $length) {
Function step
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
step: function (val, args) {
var pos = args.pos,
invPos = 1 - pos;
var prop,
size = {},
Function step
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
step: function (val, args) {
var pos = args.pos,
invPos = 1 - pos;
var prop,
size = {},
Function afterExpand
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
afterExpand: function () {
this.isExpanded = true;
this.focus();
if (this.isHtml && this.objectLoadTime == 'after') this.writeExtendedContent();
- 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 step
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
step: function (gotoEnd) {
var t = (new Date()).getTime();
if (gotoEnd || t >= this.options.duration + this.startTime) {
this.now = this.end;
this.pos = this.state = 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 step
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
step: function (gotoEnd) {
var t = (new Date()).getTime();
if (gotoEnd || t >= this.options.duration + this.startTime) {
this.now = this.end;
this.pos = this.state = 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 wrapperMouseHandler
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
wrapperMouseHandler: function (e) {
try {
if (!e) e = window.event;
var over = /mouseover/i.test(e.type);
if (!e.target) e.target = e.srcElement; // ie
- 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 step
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
step: function (gotoEnd) {
var t = (new Date()).getTime();
if (gotoEnd || t >= this.options.duration + this.startTime) {
this.now = this.end;
this.pos = this.state = 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 dragHandler
has a Cognitive Complexity of 18 (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;
- 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 dragHandler
has a Cognitive Complexity of 18 (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;
- 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"