owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "連絡先の誕生日",
    "User disabled" : "ユーザーは無効です",
Severity: Major
Found in apps/dav/l10n/ja.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "Žymės",
    "Tagged files" : "Pažymėti failai",
Severity: Major
Found in apps/systemtags/l10n/lt_LT.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "Cumpleaños de los contautos",
    "User disabled" : "Usuariu desactiváu",
Severity: Major
Found in apps/dav/l10n/ast.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

OC.L10N.register(
    "files",
    {
    "Unknown error" : "Hindi kilalang error",
    "Close" : "Isara",
Severity: Major
Found in apps/files/l10n/fil.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Loading..." : "Cargando...",
    "Accept" : "Aceptar",
Severity: Major
Found in apps/federatedfilesharing/l10n/es_AR.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "Kontakters bursdager",
    "User disabled" : "Bruker deaktivert",
Severity: Major
Found in apps/dav/l10n/nb_NO.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

OC.L10N.register(
    "files",
    {
    "Files" : "ഫയലുകൾ",
    "You created %1$s" : "നിങ്ങൾ %1$s സൃഷ്ടിച്ചു",
Severity: Major
Found in apps/files/l10n/ml_IN.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

OC.L10N.register(
    "lib",
    {
    "_%n day ago_::_%n days ago_" : [""],
    "_%n month ago_::_%n months ago_" : [""],
Severity: Minor
Found in lib/l10n/nqo.js and 1 other location - About 55 mins to fix
lib/l10n/su.js on lines 1..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 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

OC.L10N.register(
    "lib",
    {
    "_%n day ago_::_%n days ago_" : [""],
    "_%n month ago_::_%n months ago_" : [""],
Severity: Minor
Found in lib/l10n/su.js and 1 other location - About 55 mins to fix
lib/l10n/nqo.js on lines 1..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 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 2 locations. Consider refactoring.
Open

                        if(typeof settings.oncheck === 'function') {
                            if(settings.oncheck(value)===false) {
                                $(this).prop('checked', false);
                                return;
                            }
Severity: Minor
Found in core/js/multiselect.js and 1 other location - About 55 mins to fix
core/js/multiselect.js on lines 180..185

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

                        if(typeof settings.onuncheck === 'function') {
                            if(settings.onuncheck(value)===false) {
                                $(this).prop('checked',true);
                                return;
                            }
Severity: Minor
Found in core/js/multiselect.js and 1 other location - About 55 mins to fix
core/js/multiselect.js on lines 168..173

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

            _onSelectTag: function () {
                this._inputView.setData(this.selectedTagsCollection.map(modelToSelection));
                this._inputView.render();
            },
Severity: Minor
Found in apps/systemtags/js/systemtagsinfoview.js and 1 other location - About 55 mins to fix
apps/systemtags/js/systemtagsinfoview.js on lines 91..94

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

            _onDeselectTag: function () {
                this._inputView.setData(this.selectedTagsCollection.map(modelToSelection));
                this._inputView.render();
            },
Severity: Minor
Found in apps/systemtags/js/systemtagsinfoview.js and 1 other location - About 55 mins to fix
apps/systemtags/js/systemtagsinfoview.js on lines 81..84

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

    private function getProxyUri() {
        $proxyHost = $this->config->getSystemValue('proxy', null);
        $proxyUserPwd = $this->config->getSystemValue('proxyuserpwd', null);
        $proxyUri = '';
        if ($proxyUserPwd !== null) {
Severity: Minor
Found in lib/private/Http/Client/WebDavClientService.php and 1 other location - About 55 mins to fix
lib/private/Http/Client/Client.php on lines 138..151

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

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

    private function getProxyUri() {
        $proxyHost = $this->config->getSystemValue('proxy', null);
        $proxyUserPwd = $this->config->getSystemValue('proxyuserpwd', null);
        $proxyUri = '';

Severity: Minor
Found in lib/private/Http/Client/Client.php and 1 other location - About 55 mins to fix
lib/private/Http/Client/WebDavClientService.php on lines 104..115

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

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 ($checkExists = self::getItems(
                $itemType,
                $itemSource,
                self::$shareTypeUserAndGroups,
                $shareWith,
Severity: Minor
Found in lib/private/Share/Share.php and 1 other location - About 55 mins to fix
lib/private/Share/Share.php on lines 868..889

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

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 heightTopLeft() {
        $o = $this->getOrientation();
        $this->logger->debug('OC_Image->heightTopLeft() Orientation: ' . $o, ['app' => 'core']);
        switch ($o) {
            case -1:
Severity: Minor
Found in lib/private/legacy/image.php and 1 other location - About 55 mins to fix
lib/private/legacy/image.php on lines 149..166

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

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 ($checkExists = self::getItems(
                $itemType,
                $itemSource,
                self::SHARE_TYPE_USER,
                $shareWith,
Severity: Minor
Found in lib/private/Share/Share.php and 1 other location - About 55 mins to fix
lib/private/Share/Share.php on lines 846..867

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

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 widthTopLeft() {
        $o = $this->getOrientation();
        $this->logger->debug('OC_Image->widthTopLeft() Orientation: ' . $o, ['app' => 'core']);
        switch ($o) {
            case -1:
Severity: Minor
Found in lib/private/legacy/image.php and 1 other location - About 55 mins to fix
lib/private/legacy/image.php on lines 173..190

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

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

Function message has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    message:function(content, title, dialogType, buttons, callback, modal, cssClass) {
Severity: Major
Found in core/js/oc-dialogs.js - About 50 mins to fix
    Severity
    Category
    Status
    Source
    Language