Showing 701 of 9,653 total issues
Function load
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function(src, size, callback) {
if ( typeof size == 'function' ) {
callback = size;
size = null;
Function _show
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_show : function() {
// shortcuts
var self = this,
queue = this._queue[ 0 ],
Function load
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function(src, size, callback) {
if ( typeof size == 'function' ) {
callback = size;
size = null;
Method _postProcess
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _postProcess($type, $quality)
{
array_unshift($this->command, $this->_prepare_cmd(IMAGE_TRANSFORM_NETPBM_PATH, mb_strtolower($this->type) . 'topnm', escapeshellarg($this->image)));
$arg = '';
$type = mb_strtolower($type);
Function _run
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_run : function() {
// shortcuts
var self = this,
o = this._options,
Function _show
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_show = function() {
var pos, equal;
loading.hide();
File metaslider.class.php
has 337 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Generic Slider super class. Extended by library specific classes.
*
Function loadContent
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadContent( $sldr, start, end, opts )
{
$sldr.children().slice( start, end ).each(
function()
{
Function _run
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_run : function() {
var self = this;
self._createThumbnails();
Function _run
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_run : function() {
var self = this;
self._createThumbnails();
Function render_admin_page
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
Open
public function render_admin_page()
{
$this->admin_process();
$this->go_pro_cta();
$this->system_check();
- 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 CategoryHandler.php
has 329 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace XoopsModules\Extgallery;
/**
Function buildPanels
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildPanels() {
// If panel overlay content exists, add the necessary overlay background DIV
// The overlay content and background are separate elements so the background's opacity isn't inherited by the content
j_panels.each(function(i){
if($('.panel-overlay',this).length>0) {
Function scale
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scale: function( options ) {
// extend some defaults
options = $.extend({
width: 0,
`` has 31 functions (exceeds 20 allowed). Consider refactoring. Open
Open
{
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
//alert(jQuery.easing.default);
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
Function load
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function load () {
var href, setResize, prep = publicMethod.prep, $inline, request = ++requests;
active = true;
Function doGetopt
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function doGetopt($version, $args, $short_options, $long_options = null, $skip_unknown = false)
{
// in case you pass directly readPHPArgv() as the first arg
if (PEAR::isError($args)) {
return $args;
- 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
MetaSliderPlugin
has 30 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MetaSliderPlugin
{
/** Current Slider **/
public $slider = null;
Function microgallery
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.microgallery = function(options) {
var opts = $.extend({}, $.fn.microgallery.defaults, options);
return this.each(function() {
var $this = $(this);
var o = $.meta ? $.extend({}, opts, $this.data()) : opts;
Function complete
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var complete = (function( data, next, active, queue, thumb ) {
return function() {
var win;