Showing 701 of 9,653 total issues
Function PclTraceAction
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
Open
function PclTraceAction($p_entry)
{
global $g_pcl_trace_level;
global $g_pcl_trace_mode;
global $g_pcl_trace_filename;
- 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 lazyLoadChunks
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
lazyLoadChunks: function( size, delay ) {
var len = this.getDataLength(),
i = 0,
n = 0,
Function lazyLoadChunks
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
lazyLoadChunks: function( size, delay ) {
var len = this.getDataLength(),
i = 0,
n = 0,
Function remove
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function(element, label, fn) {
var timers = jQuery.data(element, this.dataKey), ret;
if ( timers ) {
Function animate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function animate( $element, properties, direct, callback, easing )
{
var duration = _duration;
if ( $.isNumeric( direct ) )
Function _openClick
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_openClick: function(e, el, options) {
var midClick = options.midClick !== undefined ? options.midClick : $.magnificPopup.defaults.midClick;
if(!midClick && ( e.which === 2 || e.ctrlKey || e.metaKey ) ) {
Function parseEl
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parseEl: function(index) {
var item = mfp.items[index],
type;
if(item.tagName) {
Function cbResize
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
publicMethod.cbResize = function (options) {
var scrolltop;
if (open) {
options = options || {};
Method extgalleryTopSubmitterShow
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function extgalleryTopSubmitterShow($options)
{
global $xoopsDB, $xoopsConfig;
$catauth = '';
$block = [];
Method loadSampleData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadSampleData()
{
global $xoopsConfig;
$moduleDirName = \basename(\dirname(__DIR__));
$moduleDirNameUpper = mb_strtoupper($moduleDirName);
Method getList
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getList(CriteriaElement $criteria = null, $limit = 0, $start = 0)
{
$ret = [];
if (null === $criteria) {
$criteria = new CriteriaCompo();
Method PclTarExtractIndex
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PclTarExtractIndex($p_tarname, $p_index, $p_path = './', $p_remove_path = '', $p_mode = '')
{
TrFctStart(__FILE__, __LINE__, 'PclTarExtractIndex', "tar=$p_tarname, index='$p_index', path=$p_path, remove_path='$p_remove_path', mode='$p_mode'");
$v_result = 1;
Function wait
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
wait : function(options) {
Galleria._waiters = Galleria._waiters || [];
options = $.extend({
Function flash
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
flash: function(params, complete) {
$(params.next).css({
opacity: 0,
left: 0
});
Function wait
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
wait : function(options) {
Galleria._waiters = Galleria._waiters || [];
options = $.extend({
Function flash
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
flash: function(params, complete) {
$(params.next).css({
opacity: 0,
left: 0
});
Function hide
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide : function( elem, speed, callback ) {
callback = callback || F;
var $elem = $(elem);
Function scale
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var scale = function() {
// set stagewidth
self._stageWidth = width || self.$( 'stage' ).width();
self._stageHeight = height || self.$( 'stage' ).height();
Function _playCheck
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_playCheck : function() {
var self = this,
played = 0,
interval = 20,
now = Utils.timestamp(),
Function _playCheck
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_playCheck : function() {
var self = this,
played = 0,
interval = 20,
now = Utils.timestamp(),