mambax7/extgallery

View on GitHub

Showing 9,653 of 9,653 total issues

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

                        },opts.transition_speed,opts.easing,function(){
                            if(!opts.fade_panels) {
                                j_panels.hide().eq(i%item_count).show();
                            }
                            $('.nav-prev-overlay',j_gallery).click(showPrevItem);
Severity: Major
Found in assets/js/galleryview/galleryview.js and 1 other location - About 4 hrs to fix
assets/js/galleryview/galleryview.js on lines 228..237

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

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

                        },opts.transition_speed,opts.easing,function(){
                            if(!opts.fade_panels) {
                                j_panels.hide().eq(i%item_count).show();
                            }
                            $('.nav-prev-overlay',j_gallery).click(showPrevItem);
Severity: Major
Found in assets/js/galleryview/galleryview.js and 1 other location - About 4 hrs to fix
assets/js/galleryview/galleryview.js on lines 214..223

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

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

File metaslider.class.php has 337 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * Generic Slider super class. Extended by library specific classes.
 *
Severity: Minor
Found in assets/js/ml-slider/inc/slider/metaslider.class.php - About 4 hrs to fix

    Function loadContent has 101 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function loadContent( $sldr, start, end, opts )
        {
            $sldr.children().slice( start, end ).each(
                function()
                {
    Severity: Major
    Found in assets/js/TosRUs/src/js/jquery.tosrus.js - About 4 hrs to fix

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

              if (Request::hasVar('galleryview_tterval', 'POST')) {
                  if ($helper->getConfig('galleryview_tterval') != $_POST['galleryview_tterval']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleryview_tterval'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleria_tspeed', 'POST')) {
                  if ($helper->getConfig('galleria_tspeed') != $_POST['galleria_tspeed']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleria_tspeed'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleryview_frameheight', 'POST')) {
                  if ($helper->getConfig('galleryview_frameheight') != $_POST['galleryview_frameheight']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleryview_frameheight'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleryview_opacity', 'POST')) {
                  if ($helper->getConfig('galleryview_opacity') != $_POST['galleryview_opacity']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleryview_opacity'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleryview_bordercolor', 'POST')) {
                  if ($helper->getConfig('galleryview_bordercolor') != $_POST['galleryview_bordercolor']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleryview_bordercolor'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleria_height', 'POST')) {
                  if ($helper->getConfig('galleria_height') != $_POST['galleria_height']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleria_height'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleryview_overlayfs', 'POST')) {
                  if ($helper->getConfig('galleryview_overlayfs') != $_POST['galleryview_overlayfs']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleryview_overlayfs'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleria_autoplay', 'POST')) {
                  if ($helper->getConfig('galleria_autoplay') != $_POST['galleria_autoplay']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleria_autoplay'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleriffic_bgcolor', 'POST')) {
                  if ($helper->getConfig('galleriffic_bgcolor') != $_POST['galleriffic_bgcolor']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleriffic_bgcolor'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleryview_captiontc', 'POST')) {
                  if ($helper->getConfig('galleryview_captiontc') != $_POST['galleryview_captiontc']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleryview_captiontc'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleriffic_width', 'POST')) {
                  if ($helper->getConfig('galleriffic_width') != $_POST['galleriffic_width']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleriffic_width'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleria_panelwidth', 'POST')) {
                  if ($helper->getConfig('galleria_panelwidth') != $_POST['galleria_panelwidth']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleria_panelwidth'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleryview_overlayheight', 'POST')) {
                  if ($helper->getConfig('galleryview_overlayheight') != $_POST['galleryview_overlayheight']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleryview_overlayheight'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleryview_overlaycolor', 'POST')) {
                  if ($helper->getConfig('galleryview_overlaycolor') != $_POST['galleryview_overlaycolor']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleryview_overlaycolor'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleria_bgimg', 'POST')) {
                  if ($helper->getConfig('galleria_bgimg') != $_POST['galleria_bgimg']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleria_bgimg'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 81..99
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

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

              if (Request::hasVar('galleryview_framewidth', 'POST')) {
                  if ($helper->getConfig('galleryview_framewidth') != $_POST['galleryview_framewidth']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'galleryview_framewidth'));
      Severity: Major
      Found in admin/slideshow.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      admin/album.php on lines 60..79
      admin/album.php on lines 81..100
      admin/album.php on lines 128..147
      admin/album.php on lines 153..172
      admin/album.php on lines 174..193
      admin/album.php on lines 205..224
      admin/album.php on lines 226..245
      admin/album.php on lines 247..266
      admin/album.php on lines 268..287
      admin/album.php on lines 289..308
      admin/album.php on lines 310..329
      admin/album.php on lines 341..359
      admin/album.php on lines 361..379
      admin/album.php on lines 381..399
      admin/album.php on lines 401..419
      admin/slideshow.php on lines 41..59
      admin/slideshow.php on lines 61..79
      admin/slideshow.php on lines 101..119
      admin/slideshow.php on lines 121..139
      admin/slideshow.php on lines 141..159
      admin/slideshow.php on lines 161..179
      admin/slideshow.php on lines 181..199
      admin/slideshow.php on lines 201..219
      admin/slideshow.php on lines 221..239
      admin/slideshow.php on lines 241..259
      admin/slideshow.php on lines 261..279
      admin/slideshow.php on lines 281..299
      admin/slideshow.php on lines 301..319
      admin/slideshow.php on lines 321..339
      admin/slideshow.php on lines 341..359
      admin/slideshow.php on lines 361..379
      admin/slideshow.php on lines 381..399
      admin/slideshow.php on lines 410..428
      admin/slideshow.php on lines 430..448
      admin/slideshow.php on lines 450..468
      admin/slideshow.php on lines 470..488
      admin/slideshow.php on lines 490..508
      admin/slideshow.php on lines 510..528
      admin/slideshow.php on lines 530..548
      admin/slideshow.php on lines 550..568
      admin/slideshow.php on lines 579..597
      admin/slideshow.php on lines 599..617
      admin/slideshow.php on lines 619..637
      admin/slideshow.php on lines 639..657
      admin/slideshow.php on lines 659..677
      admin/slideshow.php on lines 679..697
      admin/slideshow.php on lines 699..717
      admin/slideshow.php on lines 719..737
      admin/slideshow.php on lines 739..757
      admin/slideshow.php on lines 759..777
      admin/slideshow.php on lines 779..797
      admin/slideshow.php on lines 799..817
      admin/slideshow.php on lines 819..837

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

      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