partkeepr/PartKeepr

View on GitHub

Showing 922 of 922 total issues

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

    onDeleteClick: function ()
    {
       this.store.remove(this.getView().getSelectionModel().getSelection());
    },
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartDistributorGrid.js on lines 181..184
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartParameterGrid.js on lines 185..188
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/AttachmentGrid.js on lines 151..154

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

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

        {
            operator: "=",
            symbol: "=",
            description: i18n("Equals"),
            type: 'scalar',
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 72..81
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 82..91
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 102..111
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 112..121
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 122..131
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 131..140
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 141..150

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

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

    onDeleteClick: function ()
    {
        this.store.remove(this.getView().getSelectionModel().getSelection());
    },
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartDistributorGrid.js on lines 181..184
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartManufacturerGrid.js on lines 95..98
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartParameterGrid.js on lines 185..188

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

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

        resizer: {
            classic: [440, 220, 210, 1120],
            neptune: [440, 220, 240, 1210],
            triton: [340, 220, 340, 1460],
            'neptune-touch': [488, 314, 302, 3780]
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 841..846
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 858..863
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 870..875
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 888..893

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

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

        }, {
            operator: "in",
            symbol: "IN",
            description: i18n("Matches a list"),
            type: 'list',
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 72..81
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 82..91
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 92..101
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 102..111
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 112..121
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 122..131
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 141..150

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

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

        formWidgets: {
            classic: [630, 750, 20, 200],
            neptune: [660, 750, 20, 290],
            triton: [660, 1000, 20, 290],
            'neptune-touch': [790, 940, 0, 620]
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 858..863
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 870..875
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 888..893
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 894..899

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

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

        {
            operator: "<",
            symbol: "<",
            description: i18n("Less than"),
            type: 'scalar',
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 82..91
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 92..101
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 102..111
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 112..121
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 122..131
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 131..140
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 141..150

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

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

        plainTabs: {
            classic: [310, 150, 340, 960],
            neptune: [325, 150, 355, 1050],
            triton: [325, 150, 355, 1300],
            'neptune-touch': [350, 200, 440, 2880]
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 841..846
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 858..863
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 888..893
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 894..899

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

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

    onDeleteClick: function ()
    {
        this.store.remove(this.getView().getSelectionModel().getSelection());
    },
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartManufacturerGrid.js on lines 95..98
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartParameterGrid.js on lines 185..188
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/AttachmentGrid.js on lines 151..154

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

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

        accordion: {
            classic: [450, 240, 660, 770],
            neptune: [500, 240, 690, 860],
            triton: [500, 340, 690, 960],
            'neptune-touch': [790, 340, 0, 2520]
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 841..846
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 870..875
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 888..893
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 894..899

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

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

        {
            operator: ">",
            symbol: ">",
            description: i18n("Greater than"),
            type: 'scalar',
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 72..81
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 92..101
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 102..111
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 112..121
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 122..131
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 131..140
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 141..150

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

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

    onDeleteClick: function ()
    {
        this.store.remove(this.getView().getSelectionModel().getSelection());
    },
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartDistributorGrid.js on lines 181..184
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartManufacturerGrid.js on lines 95..98
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/AttachmentGrid.js on lines 151..154

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

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

        framedGrid: {
            classic: [450, 180, 660, 1230],
            neptune: [500, 180, 690, 1320],
            triton: [500, 280, 690, 1540],
            'neptune-touch': [790, 300, 0, 3460]
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 841..846
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 858..863
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 870..875
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 894..899

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

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

        {
            operator: ">=",
            symbol: "≥",
            description: i18n("Greater than or equals"),
            type: 'scalar',
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 72..81
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 82..91
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 92..101
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 112..121
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 122..131
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 131..140
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 141..150

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

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

        {
            operator: "!=",
            symbol: "≠",
            description: i18n("Not equals"),
            type: 'scalar',
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 72..81
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 82..91
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 92..101
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 102..111
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 112..121
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 131..140
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 141..150

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

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

        {
            operator: "<=",
            symbol: "≤",
            description: i18n("Less than or equals"),
            type: 'scalar',
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 72..81
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 82..91
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 92..101
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 102..111
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 122..131
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 131..140
src/PartKeepr/FrontendBundle/Resources/public/js/Data/store/OperatorStore.js on lines 141..150

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

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

        Ext.Object.merge(config, {
            autoLoad: false,
            model: "PartKeepr.ProjectBundle.Entity.ProjectRunPart",
            autoSync: false, // Do not change. If true, new (empty) records would be immediately committed to the database.
            remoteFilter: false,
src/PartKeepr/FrontendBundle/Resources/public/js/Components/Project/ProjectEditor.js on lines 40..46

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

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

    callDeleteAction: function (action, parameters, callback, reload)
    {
        var proxy = this.getProxy();

        proxy.callAction(this, action, "DELETE", parameters, callback, reload);
src/PartKeepr/FrontendBundle/Resources/public/js/Data/CallActions.js on lines 14..19
src/PartKeepr/FrontendBundle/Resources/public/js/Data/CallActions.js on lines 32..37

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

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

    getData: function (options)
    {
        var data = this.callParent(options);

        if (this.phantom) {
src/PartKeepr/FrontendBundle/Resources/public/js/Data/HydraModel.js on lines 6..15

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

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

    getData: function ()
    {
        var data = this.callParent(arguments);

        if (this.phantom) {
src/PartKeepr/FrontendBundle/Resources/public/js/Data/CallActions.js on lines 56..65

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

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