mambax7/extgallery

View on GitHub

Showing 9,653 of 9,653 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        function extraHeight(el) {
            if(!el) { return 0; }
            if(el.length==0) { return 0; }
            el = el.eq(0);
            var eh = 0;
Severity: Major
Found in assets/js/galleryview/galleryview.js and 1 other location - About 5 hrs to fix
assets/js/galleryview/galleryview.js on lines 250..260

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 142.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        function extraWidth(el) {
            if(!el) { return 0; }
            if(el.length==0) { return 0; }
            el = el.eq(0);
            var ew = 0;
Severity: Major
Found in assets/js/galleryview/galleryview.js and 1 other location - About 5 hrs to fix
assets/js/galleryview/galleryview.js on lines 268..278

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 142.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    push : function() {
        var self = this,
            args = Utils.array( arguments );

        if ( args.length == 1 && args[0].constructor == Array ) {
Severity: Major
Found in assets/js/galleria/galleria-1.3.3.js and 1 other location - About 5 hrs to fix
assets/js/galleria/galleria-1.3.5.js on lines 4006..4021

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 141.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    push : function() {
        var self = this,
            args = Utils.array( arguments );

        if ( args.length == 1 && args[0].constructor == Array ) {
Severity: Major
Found in assets/js/galleria/galleria-1.3.5.js and 1 other location - About 5 hrs to fix
assets/js/galleria/galleria-1.3.3.js on lines 3988..4003

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 141.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function _enter has 132 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        _enter: function( callback ) {

            fullscreen.active = true;

            if ( IFRAME ) {
Severity: Major
Found in assets/js/galleria/galleria-1.3.3.js - About 5 hrs to fix

    Method PclTarHandleDelete has 132 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function PclTarHandleDelete($p_tarname, $p_file_list, &$p_list_detail, $p_tar_mode)
        {
            TrFctStart(__FILE__, __LINE__, 'PclTarHandleDelete', "archive='$p_tarname', list, tar_mode=$p_tar_mode");
            $v_result = 1;
            $v_nb     = 0;
    Severity: Major
    Found in class/pcltar.lib.php - About 5 hrs to fix

      Method rotate has 130 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function rotate($angle, $options = null)
          {
              if (null === $options) {
                  $autoresize = true;
                  $color_mask = [255, 255, 0];
      Severity: Major
      Found in class/pear/Image/Transform/Driver/GD1.php - About 5 hrs to fix

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

                ontouchstart: function(e) {
        
                    var touch = e.originalEvent.touches;
        
                    this.start = {
        Severity: Major
        Found in assets/js/galleria/galleria-1.3.3.js and 1 other location - About 5 hrs to fix
        assets/js/galleria/galleria-1.3.5.js on lines 6665..6681

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 139.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 2 locations. Consider refactoring.
        Open

            var self = this,
                args = Galleria.utils.array( arguments ),
                flickr = this._options.flickr.split(':'),
                f,
                opts = $.extend({}, self._options.flickrOptions),
        Severity: Major
        Found in assets/js/galleria/plugins/flickr/galleria.flickr.js and 1 other location - About 5 hrs to fix
        assets/js/galleria/plugins/picasa/galleria.picasa.js on lines 252..263

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 139.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 2 locations. Consider refactoring.
        Open

            var self = this,
                args = Galleria.utils.array( arguments ),
                picasa = this._options.picasa.split(':'),
                p,
                opts = $.extend({}, self._options.picasaOptions),
        Severity: Major
        Found in assets/js/galleria/plugins/picasa/galleria.picasa.js and 1 other location - About 5 hrs to fix
        assets/js/galleria/plugins/flickr/galleria.flickr.js on lines 327..338

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 139.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

                ontouchstart: function(e) {
        
                    var touch = e.originalEvent.touches;
        
                    this.start = {
        Severity: Major
        Found in assets/js/galleria/galleria-1.3.5.js and 1 other location - About 5 hrs to fix
        assets/js/galleria/galleria-1.3.3.js on lines 6643..6659

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 139.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Function _transitions has 128 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _transitions = (function() {
        
                var _slide = function(params, complete, fade, door) {
        
                    var easing = this.getOptions('easing'),
        Severity: Major
        Found in assets/js/galleria/galleria-1.3.5.js - About 5 hrs to fix

          Function _transitions has 128 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _transitions = (function() {
          
                  var _slide = function(params, complete, fade, door) {
          
                      var easing = this.getOptions('easing'),
          Severity: Major
          Found in assets/js/galleria/galleria-1.3.3.js - About 5 hrs to fix

            File form_setup_html.php has 379 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            
            defined('C5_EXECUTE') || exit('Access denied.');
            
            // Load TinyMCE

              Function showItem has 127 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      function showItem(i) {
                          // Disable next/prev buttons until transition is complete
                          // This prevents overlapping of animations
                          $('.nav-next-overlay',j_gallery).unbind('click');
                          $('.nav-prev-overlay',j_gallery).unbind('click');
              Severity: Major
              Found in assets/js/galleryview/galleryview.js - About 5 hrs to fix

                File admin.php has 376 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                
                define('_AM_EXTGALLERY_CATEGORY', 'Category');
                define('_AM_EXTGALLERY_INFORMATION', 'Information');
                define('_AM_EXTGALLERY_PARENT_CAT', 'Parent category');
                Severity: Minor
                Found in language/english/admin.php - About 5 hrs to fix

                  Function init has 125 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      init: function( target, options ) {
                  
                          options = _legacyOptions( options );
                  
                          // save the original ingredients
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.3.3.js - About 5 hrs to fix

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                            var src = this.isFullscreen() && data.big ? data.big : ( data.image || data.iframe ),
                                active = this._controls.getActive(),
                                next = this._controls.getNext(),
                                cached = next.isCached( src ),
                                thumb = this._thumbnails[ queue.index ],
                    Severity: Major
                    Found in assets/js/galleria/galleria-1.3.5.js and 1 other location - About 5 hrs to fix
                    assets/js/galleria/galleria-1.3.3.js on lines 4857..4864

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 135.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                            var src = this.isFullscreen() && data.big ? data.big : ( data.image || data.iframe ),
                                active = this._controls.getActive(),
                                next = this._controls.getNext(),
                                cached = next.isCached( src ),
                                thumb = this._thumbnails[ queue.index ],
                    Severity: Major
                    Found in assets/js/galleria/galleria-1.3.3.js and 1 other location - About 5 hrs to fix
                    assets/js/galleria/galleria-1.3.5.js on lines 4892..4899

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 135.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                        function TrMessage($p_file, $p_line, $p_level, $p_message = '')
                        {
                            global $g_pcl_trace_level;
                            global $g_pcl_trace_mode;
                            global $g_pcl_trace_filename;
                    Severity: Major
                    Found in class/pcltrace.lib.php and 1 other location - About 5 hrs to fix
                    class/pcltrace.lib.php on lines 290..316

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 183.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Severity
                    Category
                    Status
                    Source
                    Language