Showing 1,388 of 1,858 total issues
File jquery.contextMenu.js
has 1221 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery contextMenu - Plugin for simple contextMenu handling
*
* Version: git-master
*
- Create a ticketCreate a ticket
File BannerImage.php
has 1182 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace xbanners\models\Base;
use \Exception;
- Create a ticketCreate a ticket
File Banners.php
has 1118 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace xbanners\models\Base;
use \Exception;
- Create a ticketCreate a ticket
File Route.php
has 1037 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace core\models\Base;
use \Exception;
- Create a ticketCreate a ticket
File cycle.js
has 1001 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery Cycle Plugin (with Transition Definitions)
* Examples and documentation at: http://jquery.malsup.com/cycle/
* Copyright (c) 2007-2009 M. Alsup
* Version: 2.71 (11-AUG-2009)
- Create a ticketCreate a ticket
File admin.php
has 918 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
use CMSFactory\assetManager;
use core\src\CoreFactory;
- Create a ticketCreate a ticket
File jquery.fancybox-1.3.4.js
has 844 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
- Create a ticketCreate a ticket
File admin.php
has 821 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
- Create a ticketCreate a ticket
Function edit_item
has a Cognitive Complexity of 96 (exceeds 5 allowed). Consider refactoring. Open
Open
public function edit_item($item_id) {
if (!$this->input->post()) {
$item = $this->db
->where('menus_data.id', $item_id)
- Read upRead up
- Create a ticketCreate a ticket
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
BannerImage
has 98 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class BannerImage extends PropelBaseModelClass implements ActiveRecordInterface
{
/**
* TableMap class name
*/
- Create a ticketCreate a ticket
File BannerImageI18n.php
has 764 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace xbanners\models\Base;
use \Exception;
- Create a ticketCreate a ticket
File Permitions.php
has 759 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
- Create a ticketCreate a ticket
File DX_Auth.php
has 750 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
- Create a ticketCreate a ticket
Banners
has 91 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class Banners extends PropelBaseModelClass implements ActiveRecordInterface
{
/**
* TableMap class name
*/
- Create a ticketCreate a ticket
File pages.php
has 732 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
use CMSFactory\Events;
use core\models\Route;
- Create a ticketCreate a ticket
BaseEvents
has 88 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class BaseEvents
{
/**
* @var array
- Create a ticketCreate a ticket
File Products.php
has 716 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace exchange\classes;
use CI;
- Create a ticketCreate a ticket
Route
has 86 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class Route extends PropelBaseModelClass implements ActiveRecordInterface
{
/**
* TableMap class name
*/
- Create a ticketCreate a ticket
Function processProducts1
has a Cognitive Complexity of 77 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function processProducts1() {
$propertiesDataUpdate = [];
$productPropDTDel = [];
- Read upRead up
- Create a ticketCreate a ticket
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 ProductsImport.php
has 652 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace import_export\classes;
use CI_DB_active_record;
- Create a ticketCreate a ticket