Showing 701 of 9,653 total issues
Method PclTarHandleHeader
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
function PclTarHandleHeader($p_tar, $p_filename, $p_mode, &$p_header, $p_stored_filename)
{
TrFctStart(__FILE__, __LINE__, 'PclTarHandleHeader', "tar=$p_tar, file='$p_filename', mode='$p_mode', stored_filename='$p_stored_filename'");
$v_result = 1;
Function success
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
success: function() {
// save the instance
_galleries.push( self );
Function success
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
success: function() {
// save the instance
_galleries.push( self );
File GD.php
has 298 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
/**
Function show
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
show : function( index, rewind, _history ) {
var swipe = this._options.swipe;
// do nothing queue is long || index is false || queue is false and transition is in progress
Function cat
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
public static function &cat($args)
{
$ret = null;
$files = [];
if (!is_array($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
Method PclTarHandleAddFile
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
function PclTarHandleAddFile($p_tar, $p_filename, $p_mode, &$p_header, $p_add_dir, $p_remove_dir)
{
TrFctStart(__FILE__, __LINE__, 'PclTarHandleAddFile', "tar='$p_tar', filename='$p_filename', p_mode='$p_mode', add_dir='$p_add_dir', remove_dir='$p_remove_dir'");
$v_result = 1;
Function getImage
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
getImage: function(item, template) {
var guard = 0,
// image load complete handler
Function init
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
init: function( target, options ) {
var self = this;
// save the instance
Function show
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
show : function( index, rewind, _history ) {
var swipe = this._options.swipe;
// do nothing queue is long || index is false || queue is false and transition is in progress
Function buildGallery
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
function buildGallery() {
var gallery_images = opts.show_filmstrip?$('img',j_frames):$('img',j_panels);
// For each image in the gallery, add its original dimensions and scaled dimensions to the appropriate arrays for later reference
gallery_images.each(function(i){
img_h[i] = this.height;
Function dragSlide
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.fn.TosRUs.dragSlide = function( $wrpr, _visible, _total )
{
var $sldr = $wrpr.find( '> .' + cls( 'slider' ) );
var _distance = 0,
Method xoops_module_install_extgallery
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
function xoops_module_install_extgallery(\XoopsModule $module)
{
$module_id = $module->getVar('mid');
/** @var \XoopsGroupPermHandler $grouppermHandler */
$grouppermHandler = xoops_getHandler('groupperm');
Method get_crop_dimensions
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function get_crop_dimensions($image_width, $image_height)
{
if ('false' === $this->smart_crop) {
return ['width' => $this->container_width, 'height' => $this->container_height];
}
Function extgalleryPhotoShow
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
function extgalleryPhotoShow($options)
{
global $xoopsConfig;
$photos = [];
- 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 checkVerModule
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public static function checkVerModule($helper, $source = 'github', $default = 'master')
{
$moduleDirName = \basename(\dirname(__DIR__, 2));
$moduleDirNameUpper = mb_strtoupper($moduleDirName);
$update = '';
- 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 which
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public static function which($program, $fallback = false)
{
// enforce API
if (!is_string($program) || '' == $program) {
return $fallback;
- 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 rm
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public static function rm($args)
{
$opts = self::_parseArgs($args, 'rf'); // "f" does nothing but I like it :-)
if (PEAR::isError($opts)) {
return self::raiseError($opts);
- 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 position
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
publicMethod.position = function (speed, loadedCallback) {
var
css,
top = 0,
left = 0,
Method PclTarHandleExtractByIndex
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
function PclTarHandleExtractByIndex(
$p_tar,
&$p_index_current,
$p_index_start,
$p_index_stop,