mambax7/extgallery

View on GitHub

Showing 9,653 of 9,653 total issues

Function updateItemHTML has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    updateItemHTML: function() {
        var item = mfp.items[mfp.index];

        // Detach and perform modifications
        mfp.contentContainer.detach();
Severity: Minor
Found in assets/js/magnific_popup/jquery.magnific-popup.js - About 1 hr to fix

    Method moduleLastVersionInfo has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function moduleLastVersionInfo()
    {
        static $result;
    
        if (isset($result)) {
    Severity: Minor
    Found in admin/moduleUpdateFunction.php - About 1 hr to fix

      Method staticPopErrorHandling has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function staticPopErrorHandling()
          {
              $stack      = &$GLOBALS['_PEAR_error_handler_stack'];
              $setmode    = &$GLOBALS['_PEAR_default_error_mode'];
              $setoptions = &$GLOBALS['_PEAR_default_error_options'];
      Severity: Minor
      Found in class/pear/PEAR.php - About 1 hr to fix

        Method _PEAR_call_destructors has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function _PEAR_call_destructors()
        {
            global $_PEAR_destructor_object_list;
            if (is_array($_PEAR_destructor_object_list)
                && count($_PEAR_destructor_object_list)) {
        Severity: Minor
        Found in class/pear/PEAR.php - About 1 hr to fix

          Method _setErrorHandling has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              protected static function _setErrorHandling(
                  $object,
                  $mode = null,
                  $options = null
              ) {
          Severity: Minor
          Found in class/pear/PEAR.php - About 1 hr to fix

            Method update_menu_order has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function update_menu_order()
                {
                    $menu_order = 0;
            
                    // get the slide with the highest menu_order so far
            Severity: Minor
            Found in assets/js/ml-slider/inc/slide/metaslide.class.php - About 1 hr to fix

              Method checkWpFooter has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private function checkWpFooter()
                  {
                      $current_theme = wp_get_theme();
                      $theme_name    = $current_theme->Template;
              
              
              Severity: Minor
              Found in assets/js/ml-slider/inc/metaslider.systemcheck.class.php - About 1 hr to fix

                Method Create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function Create($sFilename = '')
                    {
                        // check for required gd functions
                        if (!\function_exists('imagecreate') || !\function_exists("image$this->sFileType")
                            || ('' != $this->vBackgroundImages && !\function_exists('imagecreatetruecolor'))) {
                Severity: Minor
                Found in class/PhpCaptcha.php - About 1 hr to fix

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

                      bind : function(type, fn) {
                  
                          // allow 'image' instead of Galleria.IMAGE
                          type = _patchEvent( type );
                  
                  
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.3.5.js and 1 other location - About 1 hr to fix
                  assets/js/galleria/galleria-1.3.3.js on lines 4025..4032

                  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 58.

                  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 3 locations. Consider refactoring.
                  Open

                      $.each( spans.split(' '), function( i, elemId ) {
                          self._dom[ elemId ] = Utils.create( 'galleria-' + elemId, 'span' );
                      });
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.3.5.js and 2 other locations - About 1 hr to fix
                  assets/js/galleria/galleria-1.1.js on lines 537..539
                  assets/js/galleria/galleria-1.3.3.js on lines 1178..1180

                  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 58.

                  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 3 locations. Consider refactoring.
                  Open

                      $.each( spans.split(' '), function( i, elemId ) {
                          self._dom[ elemId ] = Utils.create( 'galleria-' + elemId, 'span' );
                      });
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.3.3.js and 2 other locations - About 1 hr to fix
                  assets/js/galleria/galleria-1.1.js on lines 537..539
                  assets/js/galleria/galleria-1.3.5.js on lines 1178..1180

                  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 58.

                  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

                          if ( options.responsive ) {
                              $win.on( 'resize', function() {
                                  if ( !self.isFullscreen() ) {
                                      self.resize();
                                  }
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.3.5.js and 1 other location - About 1 hr to fix
                  assets/js/galleria/galleria-1.3.3.js on lines 3073..3079

                  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 58.

                  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

                      bind : function(type, fn) {
                  
                          // allow 'image' instead of Galleria.IMAGE
                          type = _patchEvent( type );
                  
                  
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.3.3.js and 1 other location - About 1 hr to fix
                  assets/js/galleria/galleria-1.3.5.js on lines 4043..4050

                  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 58.

                  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 3 locations. Consider refactoring.
                  Open

                      $.each( spans.split(' '), function( i, elemId ) {
                          self._dom[ elemId ] = Utils.create( 'galleria-' + elemId, 'span' );
                      });
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.1.js and 2 other locations - About 1 hr to fix
                  assets/js/galleria/galleria-1.3.3.js on lines 1178..1180
                  assets/js/galleria/galleria-1.3.5.js on lines 1178..1180

                  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 58.

                  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

                                  self.trigger( {
                                      type: Galleria.LOADSTART,
                                      cached: cached,
                                      rewind: false,
                                      index: index,
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.3.5.js and 1 other location - About 1 hr to fix
                  assets/js/galleria/galleria-1.3.3.js on lines 1808..1816

                  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 58.

                  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

                              if ( this.width && distance ) {
                                  factor = M.max(0.5, M.min(1.5, M.abs(distance / this.width) ) );
                              }
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.3.5.js and 1 other location - About 1 hr to fix
                  assets/js/galleria/galleria-1.3.3.js on lines 6735..6737

                  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 58.

                  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

                              if ( this.width && distance ) {
                                  factor = M.max(0.5, M.min(1.5, M.abs(distance / this.width) ) );
                              }
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.3.3.js and 1 other location - About 1 hr to fix
                  assets/js/galleria/galleria-1.3.5.js on lines 6757..6759

                  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 58.

                  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

                                  self.trigger( {
                                      type: Galleria.LOADSTART,
                                      cached: cached,
                                      rewind: false,
                                      index: index,
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.3.3.js and 1 other location - About 1 hr to fix
                  assets/js/galleria/galleria-1.3.5.js on lines 1808..1816

                  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 58.

                  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

                          if ( options.responsive ) {
                              $win.on( 'resize', function() {
                                  if ( !self.isFullscreen() ) {
                                      self.resize();
                                  }
                  Severity: Major
                  Found in assets/js/galleria/galleria-1.3.3.js and 1 other location - About 1 hr to fix
                  assets/js/galleria/galleria-1.3.5.js on lines 3091..3097

                  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 58.

                  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

                          return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
                  Severity: Major
                  Found in assets/js/galleryview/easing.js and 1 other location - About 1 hr to fix
                  assets/js/galleryview/easing.js on lines 138..138

                  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 58.

                  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