amtgard/ORK3

View on GitHub

Showing 560 of 1,925 total issues

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

            var emoticons = $.extend({}, base.options.emoticons.more, base.options.emoticons.dropdown, base.options.emoticons.hidden);
Severity: Minor
Found in orkui/template/default/script/js/SCEditor/jquery.sceditor.js and 1 other location - About 55 mins to fix
orkui/template/default/script/js/SCEditor/jquery.sceditor.js on lines 441..441

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

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

            var    emoticons = $.extend({}, base.options.emoticons.more, base.options.emoticons.dropdown, base.options.emoticons.hidden),
Severity: Minor
Found in orkui/template/default/script/js/SCEditor/jquery.sceditor.js and 1 other location - About 55 mins to fix
orkui/template/default/script/js/SCEditor/jquery.sceditor.js on lines 781..781

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

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

    static private $mappingCols = array(
                        8, 10, 12, 14, 16, 18, 20, 22, 24,  // Number of columns for the mapping matrix
                        28, 32, 36, 40, 44, 48, 56, 64, 72, 80, 88, 96, 108, 120, 132,
                        16, 28, 24, 32, 32, 44);
Severity: Major
Found in system/lib/Barcode.php and 10 other locations - About 50 mins to fix
system/lib/Barcode.php on lines 847..850
system/lib/Barcode.php on lines 851..854
system/lib/Barcode.php on lines 855..858
system/lib/Barcode.php on lines 863..866
system/lib/Barcode.php on lines 867..870
system/lib/Barcode.php on lines 871..874
system/lib/Barcode.php on lines 875..878
system/lib/Barcode.php on lines 879..882
system/lib/Barcode.php on lines 883..886
system/lib/Barcode.php on lines 887..890

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

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

    static private $interleavedBlocks = array(
                        1, 1, 1, 1, 1, 1, 1, 1, // Number of blocks
                        1, 1, 1, 1, 1, 1, 2, 2, 4, 4, 4, 4, 6, 6, 8, 8,
                        1, 1, 1, 1, 1, 1);
Severity: Major
Found in system/lib/Barcode.php and 10 other locations - About 50 mins to fix
system/lib/Barcode.php on lines 847..850
system/lib/Barcode.php on lines 851..854
system/lib/Barcode.php on lines 855..858
system/lib/Barcode.php on lines 859..862
system/lib/Barcode.php on lines 863..866
system/lib/Barcode.php on lines 867..870
system/lib/Barcode.php on lines 871..874
system/lib/Barcode.php on lines 875..878
system/lib/Barcode.php on lines 879..882
system/lib/Barcode.php on lines 883..886

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

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

    static private $regionCols = array(
                        1, 1, 1, 1, 1, 1, 1, 1, // Number of regions per column
                        1, 2, 2, 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 6, 6, 6,
                        1, 2, 1, 2, 2, 2);
Severity: Major
Found in system/lib/Barcode.php and 10 other locations - About 50 mins to fix
system/lib/Barcode.php on lines 847..850
system/lib/Barcode.php on lines 851..854
system/lib/Barcode.php on lines 855..858
system/lib/Barcode.php on lines 859..862
system/lib/Barcode.php on lines 863..866
system/lib/Barcode.php on lines 867..870
system/lib/Barcode.php on lines 871..874
system/lib/Barcode.php on lines 875..878
system/lib/Barcode.php on lines 879..882
system/lib/Barcode.php on lines 887..890

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

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

    static private $lengthRows = array(
                        10, 12, 14, 16, 18, 20, 22, 24, 26,  // 24 squares et 6 rectangular
                        32, 36, 40, 44, 48, 52, 64, 72, 80,  88, 96, 104, 120, 132, 144,
                        8, 8, 12, 12, 16, 16);
Severity: Major
Found in system/lib/Barcode.php and 10 other locations - About 50 mins to fix
system/lib/Barcode.php on lines 851..854
system/lib/Barcode.php on lines 855..858
system/lib/Barcode.php on lines 859..862
system/lib/Barcode.php on lines 863..866
system/lib/Barcode.php on lines 867..870
system/lib/Barcode.php on lines 871..874
system/lib/Barcode.php on lines 875..878
system/lib/Barcode.php on lines 879..882
system/lib/Barcode.php on lines 883..886
system/lib/Barcode.php on lines 887..890

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

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

    static private $mappingRows = array(
                        8, 10, 12, 14, 16, 18, 20, 22, 24,  // Number of rows for the mapping matrix
                        28, 32, 36, 40, 44, 48, 56, 64, 72, 80, 88, 96, 108, 120, 132,
                        6, 6, 10, 10, 14, 14);
Severity: Major
Found in system/lib/Barcode.php and 10 other locations - About 50 mins to fix
system/lib/Barcode.php on lines 847..850
system/lib/Barcode.php on lines 851..854
system/lib/Barcode.php on lines 859..862
system/lib/Barcode.php on lines 863..866
system/lib/Barcode.php on lines 867..870
system/lib/Barcode.php on lines 871..874
system/lib/Barcode.php on lines 875..878
system/lib/Barcode.php on lines 879..882
system/lib/Barcode.php on lines 883..886
system/lib/Barcode.php on lines 887..890

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

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

    static private $regionRows = array(
                        1, 1, 1, 1, 1, 1, 1, 1, // Number of regions per row
                        1, 2, 2, 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 6, 6, 6,
                        1, 1, 1, 1, 1, 1);
Severity: Major
Found in system/lib/Barcode.php and 10 other locations - About 50 mins to fix
system/lib/Barcode.php on lines 847..850
system/lib/Barcode.php on lines 851..854
system/lib/Barcode.php on lines 855..858
system/lib/Barcode.php on lines 859..862
system/lib/Barcode.php on lines 863..866
system/lib/Barcode.php on lines 867..870
system/lib/Barcode.php on lines 871..874
system/lib/Barcode.php on lines 875..878
system/lib/Barcode.php on lines 883..886
system/lib/Barcode.php on lines 887..890

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

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

    static private $solomonCWCount = array(
                        5, 7, 10, 12, 14, 18, 20, 24, 28, // Number of Reed-Solomon codewords for the datamatrix
                        36, 42, 48, 56, 68, 84, 112, 144, 192, 224, 272, 336, 408, 496, 620,
                        7, 11, 14, 18, 24, 28);
Severity: Major
Found in system/lib/Barcode.php and 10 other locations - About 50 mins to fix
system/lib/Barcode.php on lines 847..850
system/lib/Barcode.php on lines 851..854
system/lib/Barcode.php on lines 855..858
system/lib/Barcode.php on lines 859..862
system/lib/Barcode.php on lines 863..866
system/lib/Barcode.php on lines 871..874
system/lib/Barcode.php on lines 875..878
system/lib/Barcode.php on lines 879..882
system/lib/Barcode.php on lines 883..886
system/lib/Barcode.php on lines 887..890

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

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

    static private $dataRegionRows = array(
                        8, 10, 12, 14, 16, 18, 20, 22, // Number of rows per region
                        24, 14, 16, 18, 20, 22, 24, 14, 16, 18, 20, 22, 24, 18, 20, 22,
                        6,  6, 10, 10, 14, 14);
Severity: Major
Found in system/lib/Barcode.php and 10 other locations - About 50 mins to fix
system/lib/Barcode.php on lines 847..850
system/lib/Barcode.php on lines 851..854
system/lib/Barcode.php on lines 855..858
system/lib/Barcode.php on lines 859..862
system/lib/Barcode.php on lines 863..866
system/lib/Barcode.php on lines 867..870
system/lib/Barcode.php on lines 875..878
system/lib/Barcode.php on lines 879..882
system/lib/Barcode.php on lines 883..886
system/lib/Barcode.php on lines 887..890

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

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

    static private $dataRegionCols = array(
                        8, 10, 12, 14, 16, 18, 20, 22, // Number of columns per region
                        24, 14, 16, 18, 20, 22, 24, 14, 16, 18, 20, 22, 24, 18, 20, 22,
                        16, 14, 24, 16, 16, 22);
Severity: Major
Found in system/lib/Barcode.php and 10 other locations - About 50 mins to fix
system/lib/Barcode.php on lines 847..850
system/lib/Barcode.php on lines 851..854
system/lib/Barcode.php on lines 855..858
system/lib/Barcode.php on lines 859..862
system/lib/Barcode.php on lines 863..866
system/lib/Barcode.php on lines 867..870
system/lib/Barcode.php on lines 871..874
system/lib/Barcode.php on lines 879..882
system/lib/Barcode.php on lines 883..886
system/lib/Barcode.php on lines 887..890

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

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

    static private $lengthCols = array(
                        10, 12, 14, 16, 18, 20, 22, 24, 26,  // Number of columns for the entire datamatrix
                        32, 36, 40, 44, 48, 52, 64, 72, 80, 88, 96, 104, 120, 132, 144,
                        18, 32, 26, 36, 36, 48);
Severity: Major
Found in system/lib/Barcode.php and 10 other locations - About 50 mins to fix
system/lib/Barcode.php on lines 847..850
system/lib/Barcode.php on lines 855..858
system/lib/Barcode.php on lines 859..862
system/lib/Barcode.php on lines 863..866
system/lib/Barcode.php on lines 867..870
system/lib/Barcode.php on lines 871..874
system/lib/Barcode.php on lines 875..878
system/lib/Barcode.php on lines 879..882
system/lib/Barcode.php on lines 883..886
system/lib/Barcode.php on lines 887..890

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

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

    static private $dataCWCount = array(
                        3, 5, 8, 12,  18,  22,  30,  36,  // Number of data codewords for the datamatrix
                        44, 62, 86, 114, 144, 174, 204, 280, 368, 456, 576, 696, 816, 1050, 
                        1304, 1558, 5, 10, 16, 22, 32, 49);
Severity: Major
Found in system/lib/Barcode.php and 10 other locations - About 50 mins to fix
system/lib/Barcode.php on lines 847..850
system/lib/Barcode.php on lines 851..854
system/lib/Barcode.php on lines 855..858
system/lib/Barcode.php on lines 859..862
system/lib/Barcode.php on lines 867..870
system/lib/Barcode.php on lines 871..874
system/lib/Barcode.php on lines 875..878
system/lib/Barcode.php on lines 879..882
system/lib/Barcode.php on lines 883..886
system/lib/Barcode.php on lines 887..890

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

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

            if($(rangeHelper.parentNode()).is('code') ||
                $(rangeHelper.parentNode()).parents('code').length !== 0)
Severity: Minor
Found in orkui/template/default/script/js/SCEditor/jquery.sceditor.js and 1 other location - About 50 mins to fix
orkui/template/default/script/js/SCEditor/jquery.sceditor.js on lines 644..645

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

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

            if(!overrideCodeBlocking && ($(rangeHelper.parentNode()).is('code') ||
                $(rangeHelper.parentNode()).parents('code').length !== 0))
Severity: Minor
Found in orkui/template/default/script/js/SCEditor/jquery.sceditor.js and 1 other location - About 50 mins to fix
orkui/template/default/script/js/SCEditor/jquery.sceditor.js on lines 906..907

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

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

        select: function (e, ui) {
            showLabel('#ParkSearch', ui);
            document.location.href = '?Route=Park/index/' + ui.item.value;
            return false;
        }
Severity: Minor
Found in orkui/template/default/script/default.js and 1 other location - About 45 mins to fix
orkui/template/default/script/default.js on lines 250..254

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

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

        wLeft = ($.extend([], left)).sort(function(a,b){ return b.length - a.length; })[0];
orkui/template/default/script/js/jquery-tablesorter/widgets/widget-alignChar.js on lines 74..74

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

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

        wRight = ($.extend([], right)).sort(function(a,b){ return b.length - a.length; })[0];
orkui/template/default/script/js/jquery-tablesorter/widgets/widget-alignChar.js on lines 73..73

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

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

        select: function (e, ui) {
            showLabel('#PlayerSearch', ui);
            document.location.href = '?Route=Player/index/' + ui.item.value;
            return false;
        }
Severity: Minor
Found in orkui/template/default/script/default.js and 1 other location - About 45 mins to fix
orkui/template/default/script/default.js on lines 310..314

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

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

    public function __construct() {
        parent::__construct();
        $this->split = new yapo($this->db, DB_PREFIX . 'split');
        $this->account = new yapo($this->db, DB_PREFIX . 'account');
        $this->transaction = new yapo($this->db, DB_PREFIX . 'transaction');
Severity: Minor
Found in system/lib/ork3/class.Treasury.php and 1 other location - About 45 mins to fix
system/lib/ork3/class.Game.php on lines 5..10

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

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