mambax7/extgallery

View on GitHub

Showing 701 of 9,653 total issues

Function PclTraceAction has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

    function PclTraceAction($p_entry)
    {
        global $g_pcl_trace_level;
        global $g_pcl_trace_mode;
        global $g_pcl_trace_filename;
Severity: Minor
Found in class/pcltrace.lib.php - About 1 hr to fix

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

    lazyLoadChunks: function( size, delay ) {

        var len = this.getDataLength(),
            i = 0,
            n = 0,
Severity: Minor
Found in assets/js/galleria/galleria-1.3.3.js - About 1 hr to fix

    Function lazyLoadChunks has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        lazyLoadChunks: function( size, delay ) {
    
            var len = this.getDataLength(),
                i = 0,
                n = 0,
    Severity: Minor
    Found in assets/js/galleria/galleria-1.3.5.js - About 1 hr to fix

      Function remove has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              remove: function(element, label, fn) {
                  var timers = jQuery.data(element, this.dataKey), ret;
      
                  if ( timers ) {
      
      
      Severity: Minor
      Found in assets/js/galleryview/timers.js - About 1 hr to fix

        Function animate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function animate( $element, properties, direct, callback, easing )
            {
                var duration = _duration;
        
                if ( $.isNumeric( direct ) )
        Severity: Minor
        Found in assets/js/TosRUs/src/js/jquery.tosrus.js - About 1 hr to fix

          Function _openClick has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          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 ) ) {
          Severity: Minor
          Found in assets/js/magnific_popup/jquery.magnific-popup.js - About 1 hr to fix

            Function parseEl has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                parseEl: function(index) {
                    var item = mfp.items[index],
                        type;
            
                    if(item.tagName) {
            Severity: Minor
            Found in assets/js/magnific_popup/jquery.magnific-popup.js - About 1 hr to fix

              Function cbResize has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  publicMethod.cbResize = function (options) {
                      var scrolltop;
              
                      if (open) {
                          options = options || {};
              Severity: Minor
              Found in assets/js/ml-slider/assets/colorbox/jquery.colorbox-min.js - About 1 hr to fix

                Method extgalleryTopSubmitterShow has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function extgalleryTopSubmitterShow($options)
                {
                    global $xoopsDB, $xoopsConfig;
                    $catauth = '';
                    $block   = [];
                Severity: Minor
                Found in blocks/extgallery_blocks.php - About 1 hr to fix

                  Method loadSampleData has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function loadSampleData()
                  {
                      global $xoopsConfig;
                      $moduleDirName      = \basename(\dirname(__DIR__));
                      $moduleDirNameUpper = mb_strtoupper($moduleDirName);
                  Severity: Minor
                  Found in testdata/index.php - About 1 hr to fix

                    Method getList has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function getList(CriteriaElement $criteria = null, $limit = 0, $start = 0)
                        {
                            $ret = [];
                            if (null === $criteria) {
                                $criteria = new CriteriaCompo();
                    Severity: Minor
                    Found in class/ModelReadIterator.php - About 1 hr to fix

                      Method PclTarExtractIndex has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      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;
                      
                      
                      Severity: Minor
                      Found in class/pcltar.lib.php - About 1 hr to fix

                        Function wait has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                    wait : function(options) {
                        
                                        Galleria._waiters = Galleria._waiters || [];
                        
                                        options = $.extend({
                        Severity: Minor
                        Found in assets/js/galleria/galleria-1.3.3.js - About 1 hr to fix

                          Function flash has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                          flash: function(params, complete) {
                                              $(params.next).css({
                                                  opacity: 0,
                                                  left: 0
                                              });
                          Severity: Minor
                          Found in assets/js/galleria/galleria-1.3.3.js - About 1 hr to fix

                            Function wait has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        wait : function(options) {
                            
                                            Galleria._waiters = Galleria._waiters || [];
                            
                                            options = $.extend({
                            Severity: Minor
                            Found in assets/js/galleria/galleria-1.3.5.js - About 1 hr to fix

                              Function flash has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                              flash: function(params, complete) {
                                                  $(params.next).css({
                                                      opacity: 0,
                                                      left: 0
                                                  });
                              Severity: Minor
                              Found in assets/js/galleria/galleria-1.3.5.js - About 1 hr to fix

                                Function hide has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                            hide : function( elem, speed, callback ) {
                                
                                                callback = callback || F;
                                
                                                var $elem = $(elem);
                                Severity: Minor
                                Found in assets/js/galleria/galleria-1.3.3.js - About 1 hr to fix

                                  Function scale has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          var scale = function() {
                                  
                                              // set stagewidth
                                              self._stageWidth = width || self.$( 'stage' ).width();
                                              self._stageHeight = height || self.$( 'stage' ).height();
                                  Severity: Minor
                                  Found in assets/js/galleria/galleria-1.3.5.js - About 1 hr to fix

                                    Function _playCheck has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _playCheck : function() {
                                            var self = this,
                                                played = 0,
                                                interval = 20,
                                                now = Utils.timestamp(),
                                    Severity: Minor
                                    Found in assets/js/galleria/galleria-1.3.3.js - About 1 hr to fix

                                      Function _playCheck has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          _playCheck : function() {
                                              var self = this,
                                                  played = 0,
                                                  interval = 20,
                                                  now = Utils.timestamp(),
                                      Severity: Minor
                                      Found in assets/js/galleria/galleria-1.3.5.js - About 1 hr to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language