Showing 646 of 1,188 total issues
File prototype.js
has 2128 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* Prototype JavaScript framework, version 1.5.0
* (c) 2005-2007 Sam Stephenson
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://prototype.conio.net/
File prototype.js
has 2128 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* Prototype JavaScript framework, version 1.5.0
* (c) 2005-2007 Sam Stephenson
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://prototype.conio.net/
File prototype_b.js
has 1889 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* Prototype JavaScript framework, version 1.5.0_rc1
* (c) 2005 Sam Stephenson <sam@conio.net>
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://prototype.conio.net/
File prototype_b.js
has 1889 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* Prototype JavaScript framework, version 1.5.0_rc1
* (c) 2005 Sam Stephenson <sam@conio.net>
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://prototype.conio.net/
File prototype.js
has 1889 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* Prototype JavaScript framework, version 1.5.0_rc1
* (c) 2005 Sam Stephenson <sam@conio.net>
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://prototype.conio.net/
File effects.js
has 969 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// script.aculo.us effects.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// Contributors:
// Justin Palmer (http://encytemedia.com/)
File effects.js
has 969 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// script.aculo.us effects.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// Contributors:
// Justin Palmer (http://encytemedia.com/)
File effects.js
has 969 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// script.aculo.us effects.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// Contributors:
// Justin Palmer (http://encytemedia.com/)
File BaseSmartObject.php
has 913 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php namespace XoopsModules\Smartobject;
/**
* Contains the basis classes for managing any objects derived from SmartObjects
*
File dragdrop.js
has 808 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// script.aculo.us dragdrop.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
//
File dragdrop.js
has 808 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// script.aculo.us dragdrop.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
//
File dragdrop.js
has 808 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// script.aculo.us dragdrop.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
//
File Utility.php
has 807 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php namespace XoopsModules\Smartobject;
use Xmf\Request;
use XoopsModules\Smartobject;
use XoopsModules\Smartobject\Common;
File controls.js
has 671 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// script.aculo.us controls.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
// (c) 2005 Jon Tirsen (http://www.tirsen.com)
File controls.js
has 671 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// script.aculo.us controls.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
// (c) 2005 Jon Tirsen (http://www.tirsen.com)
File controls.js
has 671 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// script.aculo.us controls.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
// (c) 2005 Jon Tirsen (http://www.tirsen.com)
Function insert
has a Cognitive Complexity of 75 (exceeds 5 allowed). Consider refactoring. Open
Open
public function insert(\XoopsObject $obj, $force = false, $checkObject = true, $debug = false)
{
if (false !== $checkObject) {
if (!is_object($obj)) {
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 cleanVars
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
Open
public function cleanVars()
{
$ts = \MyTextSanitizer::getInstance();
$existing_errors = $this->getErrors();
$this->_errors = [];
- 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
File PersistableObjectHandler.php
has 583 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php namespace XoopsModules\Smartobject;
/**
* Contains the basis classes for managing any objects derived from SmartObjects
*
File SmartObjectForm.php
has 583 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php namespace XoopsModules\Smartobject\Form;
/**
* Contains the class responsible for providing forms related to a SmartObject
*