mambax7/extgallery

View on GitHub

Showing 9,653 of 9,653 total issues

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

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

        if (Request::hasVar('galleriffic_autoplay', 'POST')) {
            if ($helper->getConfig('galleriffic_autoplay') != $_POST['galleriffic_autoplay']) {
                $criteria = new \CriteriaCompo();
                $criteria->add($moduleIdCriteria);
                $criteria->add(new \Criteria('conf_name', 'galleriffic_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 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 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_tspeed', 'POST')) {
            if ($helper->getConfig('galleriffic_tspeed') != $_POST['galleriffic_tspeed']) {
                $criteria = new \CriteriaCompo();
                $criteria->add($moduleIdCriteria);
                $criteria->add(new \Criteria('conf_name', 'galleriffic_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 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 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_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_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('galleriffic_show_descr', 'POST')) {
            if ($helper->getConfig('galleriffic_show_descr') != $_POST['galleriffic_show_descr']) {
                $criteria = new \CriteriaCompo();
                $criteria->add($moduleIdCriteria);
                $criteria->add(new \Criteria('conf_name', 'galleriffic_show_descr'));
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 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 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_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_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('galleriffic_nb_thumbs', 'POST')) {
            if ($helper->getConfig('galleriffic_nb_thumbs') != $_POST['galleriffic_nb_thumbs']) {
                $criteria = new \CriteriaCompo();
                $criteria->add($moduleIdCriteria);
                $criteria->add(new \Criteria('conf_name', 'galleriffic_nb_thumbs'));
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 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 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_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_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_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_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_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('galleriffic_nb_preload', 'POST')) {
            if ($helper->getConfig('galleriffic_nb_preload') != $_POST['galleriffic_nb_preload']) {
                $criteria = new \CriteriaCompo();
                $criteria->add($moduleIdCriteria);
                $criteria->add(new \Criteria('conf_name', 'galleriffic_nb_preload'));
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 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 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

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

        if ( options.carousel ) {
            var count = 0,
                show = options.show;
            this.bind( Galleria.THUMBNAIL, function() {
                this.updateCarousel();
Severity: Major
Found in assets/js/galleria/galleria-1.3.5.js and 1 other location - About 4 hrs to fix
assets/js/galleria/galleria-1.3.3.js on lines 3061..3070

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

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