mambax7/extgallery

View on GitHub
admin/album.php

Summary

Maintainability
F
1 wk
Test Coverage

File album.php has 415 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * ExtGallery Admin settings
 * Manage admin pages
 *
Severity: Minor
Found in admin/album.php - About 5 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                        if ($helper->getConfig('album_tooltip_width') != $_POST['album_tooltip_width']) {
                            $criteria = new \CriteriaCompo();
                            $criteria->add($moduleIdCriteria);
                            $criteria->add(new \Criteria('conf_name', 'album_tooltip_width'));
                            /** @var \XoopsObject $config */
    Severity: Major
    Found in admin/album.php - About 45 mins to fix

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

              if (Request::hasVar('album_fancybox_tin', 'POST')) {
                  if ($helper->getConfig('album_fancybox_tin') != $_POST['album_fancybox_tin']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_fancybox_tin'));
      Severity: Major
      Found in admin/album.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 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 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('album_overlay_width', 'POST')) {
                  if ($helper->getConfig('album_overlay_width') != $_POST['album_overlay_width']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_overlay_width'));
      Severity: Major
      Found in admin/album.php and 54 other locations - About 4 hrs to fix
      admin/album.php on lines 39..58
      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 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('album_tooltip_width', 'POST')) {
                          if ($helper->getConfig('album_tooltip_width') != $_POST['album_tooltip_width']) {
                              $criteria = new \CriteriaCompo();
                              $criteria->add($moduleIdCriteria);
                              $criteria->add(new \Criteria('conf_name', 'album_tooltip_width'));
      Severity: Major
      Found in admin/album.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 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 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('album_prettyphoto_slidspe', 'POST')) {
                  if ($helper->getConfig('album_prettyphoto_slidspe') != $_POST['album_prettyphoto_slidspe']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_prettyphoto_slidspe'));
      Severity: Major
      Found in admin/album.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 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 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('album_prettyphoto_speed', 'POST')) {
                  if ($helper->getConfig('album_prettyphoto_speed') != $_POST['album_prettyphoto_speed']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_prettyphoto_speed'));
      Severity: Major
      Found in admin/album.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 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 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('album_prettyphoto_autopla', 'POST')) {
                  if ($helper->getConfig('album_prettyphoto_autopla') != $_POST['album_prettyphoto_autopla']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_prettyphoto_autopla'));
      Severity: Major
      Found in admin/album.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/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 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('album_tooltip_borderwidth', 'POST')) {
                  if ($helper->getConfig('album_tooltip_borderwidth') != $_POST['album_tooltip_borderwidth']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_tooltip_borderwidth'));
      Severity: Major
      Found in admin/album.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 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 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('album_overlay_bg', 'POST')) {
                  if ($helper->getConfig('album_overlay_bg') != $_POST['album_overlay_bg']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_overlay_bg'));
      Severity: Major
      Found in admin/album.php and 54 other locations - About 4 hrs to fix
      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 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('album_overlay_height', 'POST')) {
                  if ($helper->getConfig('album_overlay_height') != $_POST['album_overlay_height']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_overlay_height'));
      Severity: Major
      Found in admin/album.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 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 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('album_tooltip_bordercolor', 'POST')) {
                  if ($helper->getConfig('album_tooltip_bordercolor') != $_POST['album_tooltip_bordercolor']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_tooltip_bordercolor'));
      Severity: Major
      Found in admin/album.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 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 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('album_fancybox_showtype', 'POST')) {
                  if ($helper->getConfig('album_fancybox_showtype') != $_POST['album_fancybox_showtype']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_fancybox_showtype'));
      Severity: Major
      Found in admin/album.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 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 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('album_fancybox_title', 'POST')) {
                  if ($helper->getConfig('album_fancybox_title') != $_POST['album_fancybox_title']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_fancybox_title'));
      Severity: Major
      Found in admin/album.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 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 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('album_fancybox_tout', 'POST')) {
                  if ($helper->getConfig('album_fancybox_tout') != $_POST['album_fancybox_tout']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_fancybox_tout'));
      Severity: Major
      Found in admin/album.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 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 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('album_fancybox_color', 'POST')) {
                  if ($helper->getConfig('album_fancybox_color') != $_POST['album_fancybox_color']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_fancybox_color'));
      Severity: Major
      Found in admin/album.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 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 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('album_fancybox_opacity', 'POST')) {
                  if ($helper->getConfig('album_fancybox_opacity') != $_POST['album_fancybox_opacity']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_fancybox_opacity'));
      Severity: Major
      Found in admin/album.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 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 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('album_prettyphoto_theme', 'POST')) {
                  if ($helper->getConfig('album_prettyphoto_theme') != $_POST['album_prettyphoto_theme']) {
                      $criteria = new \CriteriaCompo();
                      $criteria->add($moduleIdCriteria);
                      $criteria->add(new \Criteria('conf_name', 'album_prettyphoto_theme'));
      Severity: Major
      Found in admin/album.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 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 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

      The CASE body must start on the line following the statement
      Open

          case 'tooltip':
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      The CASE body must start on the line following the statement
      Open

          case 'prettyphoto':
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      The DEFAULT body must start on the line following the statement
      Open

          default:
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      The CASE body must start on the line following the statement
      Open

          case 'default':
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      The CASE body must start on the line following the statement
      Open

          case 'overlay':
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      The CASE body must start on the line following the statement
      Open

          case 'fancybox':
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 147 characters
      Open

              $form->addElement(new \XoopsFormColorPicker(_AM_EXTGALLERY_OVERLAY_BG, 'album_overlay_bg', $helper->getConfig('album_overlay_bg')), false);
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 157 characters
      Open

              $prettyspeedSelect = new \XoopsFormSelect(_AM_EXTGALLERY_PRETTPHOTO_SPEED, 'album_prettyphoto_speed', $helper->getConfig('album_prettyphoto_speed'));
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 161 characters
      Open

              $form->addElement(new \XoopsFormColorPicker(_AM_EXTGALLERY_FANCYBOX_BGCOLOR, 'album_fancybox_color', $helper->getConfig('album_fancybox_color')), false);
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 178 characters
      Open

              $form->addElement(new \XoopsFormText(_AM_EXTGALLERY_TOOLTIP_BORDER_WIDTH, 'album_tooltip_borderwidth', '6', '6', $helper->getConfig('album_tooltip_borderwidth')), false);
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 159 characters
      Open

              $fancyboxshowSelect = new \XoopsFormSelect(_AM_EXTGALLERY_FANCYBOX_SHOWTYPE, 'album_fancybox_showtype', $helper->getConfig('album_fancybox_showtype'));
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 162 characters
      Open

              $form->addElement(new \XoopsFormText(_AM_EXTGALLERY_OVERLAY_HEIGHT, 'album_overlay_height', '5', '5', $helper->getConfig('album_overlay_height')), false);
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 179 characters
      Open

              $form->addElement(new \XoopsFormText(_AM_EXTGALLERY_PRETTPHOTO_SLIDESPEED, 'album_prettyphoto_slidspe', '5', '5', $helper->getConfig('album_prettyphoto_slidspe')), false);
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 159 characters
      Open

              $form->addElement(new \XoopsFormText(_AM_EXTGALLERY_OVERLAY_WIDTH, 'album_overlay_width', '5', '5', $helper->getConfig('album_overlay_width')), false);
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 159 characters
      Open

              $form->addElement(new \XoopsFormText(_AM_EXTGALLERY_TOOLTIP_WIDTH, 'album_tooltip_width', '6', '6', $helper->getConfig('album_tooltip_width')), false);
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 168 characters
      Open

              $form->addElement(new \XoopsFormText(_AM_EXTGALLERY_FANCYBOX_OPACITY, 'album_fancybox_opacity', '6', '6', $helper->getConfig('album_fancybox_opacity')), false);
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 157 characters
      Open

              $prettythemeSelect = new \XoopsFormSelect(_AM_EXTGALLERY_PRETTPHOTO_THEME, 'album_prettyphoto_theme', $helper->getConfig('album_prettyphoto_theme'));
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

              $form              = new \XoopsThemeForm(_AM_EXTGALLERY_PRETTPHOTO_CONF, 'prettyphoto_conf', 'album.php', 'post', true);
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 167 characters
      Open

              $prettyautoplaySelect = new \XoopsFormSelect(_AM_EXTGALLERY_PRETTPHOTO_AUTOPLAY, 'album_prettyphoto_autopla', $helper->getConfig('album_prettyphoto_autopla'));
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 147 characters
      Open

              $fancyboxtoutSelect = new \XoopsFormSelect(_AM_EXTGALLERY_FANCYBOX_TOUT, 'album_fancybox_tout', $helper->getConfig('album_fancybox_tout'));
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 174 characters
      Open

              $form->addElement(new \XoopsFormColorPicker(_AM_EXTGALLERY_TOOLTIP_BORDERCOLOR, 'album_tooltip_bordercolor', $helper->getConfig('album_tooltip_bordercolor')), false);
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 143 characters
      Open

              $fancyboxtinSelect = new \XoopsFormSelect(_AM_EXTGALLERY_FANCYBOX_TIN, 'album_fancybox_tin', $helper->getConfig('album_fancybox_tin'));
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      Line exceeds 120 characters; contains 156 characters
      Open

              $fancyboxtpSelect = new \XoopsFormSelect(_AM_EXTGALLERY_FANCYBOX_TITLEPOSITION, 'album_fancybox_title', $helper->getConfig('album_fancybox_title'));
      Severity: Minor
      Found in admin/album.php by phpcodesniffer

      There are no issues that match your filters.

      Category
      Status