Showing 759 of 1,838 total issues
Function _contactContainers
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_contactContainers: function(event) {
var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, cur, nearBottom, floating, axis,
innermostContainer = null,
innermostIndex = null;
Function _processTabs
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_processTabs: function() {
var that = this,
prevTabs = this.tabs,
prevAnchors = this.anchors,
prevPanels = this.panels;
SwDatabase
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SwDatabase
{
/**
* getJobsToDiv method
*
File xoops_version.php
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
Function _create
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
this.activeMenu = this.element;
// Flag used to prevent firing of the click handler
// as the event bubbles up through nested menus
Function elastic
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
elastic: function () {
// We will create a div clone of the textarea
// by copying these attributes from the textarea to the div.
var mimics = [
Function slide
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
slide: function (options, additions) {
options = $.extend({
easing: "swing",
duration: 300
}, options, additions);
Function formatDate
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
formatDate: function (format, date, settings) {
if (!date)
return '';
var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
Function resizeImage
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
Open
public function resizeImage()
{
// check file extension
switch ($this->imageMimetype) {
case'image/png':
- 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 validate
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function validate($uploaded_file, $file, $error, $index)
{
if ($error) {
$file->error = $this->get_error_message($error);
- 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 _keydown
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function( event ) {
var match, prev, character, skip,
preventDefault = true;
switch ( event.keyCode ) {
Function matcherFromGroupMatchers
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
var bySet = setMatchers.length > 0,
byElement = elementMatchers.length > 0,
superMatcher = function( seed, context, xml, results, outermost ) {
var elem, j, matcher,
Function launch
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function launch(target) {
if (!closing) {
element = target;
Function done
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function done( status, nativeStatusText, responses, headers ) {
var isSuccess, success, error, response, modified,
statusText = nativeStatusText;
// Called once
Function _onSend
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_onSend: function (e, data) {
var that = this,
jqXHR,
aborted,
slot,
Function _generatePosition
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generatePosition: function( event, constrainPosition ) {
var containment, co, top, left,
o = this.options,
scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] ),
Function setMatcher
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
if ( postFilter && !postFilter[ expando ] ) {
postFilter = setMatcher( postFilter );
}
if ( postFinder && !postFinder[ expando ] ) {
Function _clickHandler
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_clickHandler: function (event, target) {
var options = this.options;
if (options.disabled) {
return;
}
Function position
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
publicMethod.position = function (speed, loadedCallback) {
var
css,
top = 0,
left = 0,
Function _showDatepicker
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_showDatepicker: function (input) {
input = input.target || input;
if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
input = $('input', input.parentNode)[0];
if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here