mambax7/extgallery

View on GitHub

Showing 9,653 of 9,653 total issues

Each class must be in a file by itself
Open

class PEAR_Error
Severity: Minor
Found in class/pear/PEAR.php by phpcodesniffer

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

    removeIdleState: function( elem ) {
        this._idle.remove.apply( this._idle, Utils.array( arguments ) );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.1.js and 7 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2422..2425
assets/js/galleria/galleria-1.3.3.js on lines 4098..4101
assets/js/galleria/galleria-1.3.3.js on lines 4209..4212
assets/js/galleria/galleria-1.3.3.js on lines 4469..4472
assets/js/galleria/galleria-1.3.5.js on lines 4116..4119
assets/js/galleria/galleria-1.3.5.js on lines 4227..4230
assets/js/galleria/galleria-1.3.5.js on lines 4487..4490

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

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

    prependChild : function( parentID, childID ) {
        this.$( parentID ).prepend( this.get( childID ) || childID );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.3.3.js and 5 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2450..2453
assets/js/galleria/galleria-1.1.js on lines 2469..2472
assets/js/galleria/galleria-1.3.3.js on lines 4497..4500
assets/js/galleria/galleria-1.3.5.js on lines 4515..4518
assets/js/galleria/galleria-1.3.5.js on lines 4534..4537

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

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

    attachKeyboard : function( map ) {
        this._keyboard.attach.apply( this._keyboard, Utils.array( arguments ) );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.1.js and 7 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2083..2086
assets/js/galleria/galleria-1.3.3.js on lines 4098..4101
assets/js/galleria/galleria-1.3.3.js on lines 4209..4212
assets/js/galleria/galleria-1.3.3.js on lines 4469..4472
assets/js/galleria/galleria-1.3.5.js on lines 4116..4119
assets/js/galleria/galleria-1.3.5.js on lines 4227..4230
assets/js/galleria/galleria-1.3.5.js on lines 4487..4490

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

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

    prependChild : function( parenID, childID ) {
        this.$( parentID ).prepend( this.get( childID ) || childID );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.1.js and 5 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2450..2453
assets/js/galleria/galleria-1.3.3.js on lines 4497..4500
assets/js/galleria/galleria-1.3.3.js on lines 4516..4519
assets/js/galleria/galleria-1.3.5.js on lines 4515..4518
assets/js/galleria/galleria-1.3.5.js on lines 4534..4537

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

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

    refreshTooltip: function( elem ) {
        this._tooltip.show.apply( this._tooltip, Utils.array(arguments) );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.3.3.js and 7 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2083..2086
assets/js/galleria/galleria-1.1.js on lines 2422..2425
assets/js/galleria/galleria-1.3.3.js on lines 4098..4101
assets/js/galleria/galleria-1.3.3.js on lines 4469..4472
assets/js/galleria/galleria-1.3.5.js on lines 4116..4119
assets/js/galleria/galleria-1.3.5.js on lines 4227..4230
assets/js/galleria/galleria-1.3.5.js on lines 4487..4490

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

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

    appendChild : function( parentID, childID ) {
        this.$( parentID ).append( this.get( childID ) || childID );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.3.3.js and 5 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2450..2453
assets/js/galleria/galleria-1.1.js on lines 2469..2472
assets/js/galleria/galleria-1.3.3.js on lines 4516..4519
assets/js/galleria/galleria-1.3.5.js on lines 4515..4518
assets/js/galleria/galleria-1.3.5.js on lines 4534..4537

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

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

            $.each(cssMap, function( key, value ) {
                css += '.galleria-'+prefix+key+'{'+value+'}';
            });
Severity: Minor
Found in assets/js/galleria/galleria-1.3.3.js and 1 other location - About 40 mins to fix
assets/js/galleria/galleria-1.3.5.js on lines 2198..2200

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

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

    refreshTooltip: function( elem ) {
        this._tooltip.show.apply( this._tooltip, Utils.array(arguments) );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.3.5.js and 7 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2083..2086
assets/js/galleria/galleria-1.1.js on lines 2422..2425
assets/js/galleria/galleria-1.3.3.js on lines 4098..4101
assets/js/galleria/galleria-1.3.3.js on lines 4209..4212
assets/js/galleria/galleria-1.3.3.js on lines 4469..4472
assets/js/galleria/galleria-1.3.5.js on lines 4116..4119
assets/js/galleria/galleria-1.3.5.js on lines 4487..4490

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

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

    prependChild : function( parentID, childID ) {
        this.$( parentID ).prepend( this.get( childID ) || childID );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.3.5.js and 5 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2450..2453
assets/js/galleria/galleria-1.1.js on lines 2469..2472
assets/js/galleria/galleria-1.3.3.js on lines 4497..4500
assets/js/galleria/galleria-1.3.3.js on lines 4516..4519
assets/js/galleria/galleria-1.3.5.js on lines 4515..4518

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

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

            $.each(cssMap, function( key, value ) {
                css += '.galleria-'+prefix+key+'{'+value+'}';
            });
Severity: Minor
Found in assets/js/galleria/galleria-1.3.5.js and 1 other location - About 40 mins to fix
assets/js/galleria/galleria-1.3.3.js on lines 2188..2190

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

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

    appendChild : function( parentID, childID ) {
        this.$( parentID ).append( this.get( childID ) || childID );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.1.js and 5 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2469..2472
assets/js/galleria/galleria-1.3.3.js on lines 4497..4500
assets/js/galleria/galleria-1.3.3.js on lines 4516..4519
assets/js/galleria/galleria-1.3.5.js on lines 4515..4518
assets/js/galleria/galleria-1.3.5.js on lines 4534..4537

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

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

    removeIdleState: function( elem ) {
        this._idle.remove.apply( this._idle, Utils.array( arguments ) );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.3.5.js and 7 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2083..2086
assets/js/galleria/galleria-1.1.js on lines 2422..2425
assets/js/galleria/galleria-1.3.3.js on lines 4098..4101
assets/js/galleria/galleria-1.3.3.js on lines 4209..4212
assets/js/galleria/galleria-1.3.3.js on lines 4469..4472
assets/js/galleria/galleria-1.3.5.js on lines 4227..4230
assets/js/galleria/galleria-1.3.5.js on lines 4487..4490

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

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

    attachKeyboard : function( map ) {
        this._keyboard.attach.apply( this._keyboard, Utils.array( arguments ) );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.3.3.js and 7 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2083..2086
assets/js/galleria/galleria-1.1.js on lines 2422..2425
assets/js/galleria/galleria-1.3.3.js on lines 4098..4101
assets/js/galleria/galleria-1.3.3.js on lines 4209..4212
assets/js/galleria/galleria-1.3.5.js on lines 4116..4119
assets/js/galleria/galleria-1.3.5.js on lines 4227..4230
assets/js/galleria/galleria-1.3.5.js on lines 4487..4490

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

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

    appendChild : function( parentID, childID ) {
        this.$( parentID ).append( this.get( childID ) || childID );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.3.5.js and 5 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2450..2453
assets/js/galleria/galleria-1.1.js on lines 2469..2472
assets/js/galleria/galleria-1.3.3.js on lines 4497..4500
assets/js/galleria/galleria-1.3.3.js on lines 4516..4519
assets/js/galleria/galleria-1.3.5.js on lines 4534..4537

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

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

    removeIdleState: function( elem ) {
        this._idle.remove.apply( this._idle, Utils.array( arguments ) );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.3.3.js and 7 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2083..2086
assets/js/galleria/galleria-1.1.js on lines 2422..2425
assets/js/galleria/galleria-1.3.3.js on lines 4209..4212
assets/js/galleria/galleria-1.3.3.js on lines 4469..4472
assets/js/galleria/galleria-1.3.5.js on lines 4116..4119
assets/js/galleria/galleria-1.3.5.js on lines 4227..4230
assets/js/galleria/galleria-1.3.5.js on lines 4487..4490

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

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

    attachKeyboard : function( map ) {
        this._keyboard.attach.apply( this._keyboard, Utils.array( arguments ) );
        return this;
    },
Severity: Major
Found in assets/js/galleria/galleria-1.3.5.js and 7 other locations - About 40 mins to fix
assets/js/galleria/galleria-1.1.js on lines 2083..2086
assets/js/galleria/galleria-1.1.js on lines 2422..2425
assets/js/galleria/galleria-1.3.3.js on lines 4098..4101
assets/js/galleria/galleria-1.3.3.js on lines 4209..4212
assets/js/galleria/galleria-1.3.3.js on lines 4469..4472
assets/js/galleria/galleria-1.3.5.js on lines 4116..4119
assets/js/galleria/galleria-1.3.5.js on lines 4227..4230

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

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

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

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

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

Refactorings

Further Reading

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

            previous: function(dontPause, bypassHistory) {
                this.gotoIndex(this.getPrevIndex(this.currentImage.index), dontPause, bypassHistory);
                return this;
            },
Severity: Minor
Found in assets/js/galleriffic/jquery.galleriffic.js and 1 other location - About 40 mins to fix
assets/js/galleriffic/jquery.galleriffic.js on lines 440..443

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

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

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

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

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

Refactorings

Further Reading

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

                start_pos = {
                    top  : pos.top,
                    left : pos.left,
                    width : wrap.width(),
                    height : wrap.height()
Severity: Minor
Found in assets/js/fancybox/fancybox.js and 1 other location - About 40 mins to fix
assets/js/fancybox/fancybox.js on lines 978..983

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

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

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

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

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

Refactorings

Further Reading

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

            final_pos = {
                top  : pos.top ,
                left : pos.left,
                width : wrap.width(),
                height : wrap.height()
Severity: Minor
Found in assets/js/fancybox/fancybox.js and 1 other location - About 40 mins to fix
assets/js/fancybox/fancybox.js on lines 378..383

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

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