elabftw/elabftw

View on GitHub

Showing 141 of 424 total issues

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

tinymce.addI18n('zh_CN',{
"Redo": "\u91cd\u505a",
"Undo": "\u64a4\u9500",
"Cut": "\u526a\u5207",
"Copy": "\u590d\u5236",
Severity: Major
Found in src/js/tinymce-langs/zh_CN.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419

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

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

tinymce.addI18n('pl_PL',{
"Redo": "Powt\u00f3rz",
"Undo": "Cofnij",
"Cut": "Wytnij",
"Copy": "Kopiuj",
Severity: Major
Found in src/js/tinymce-langs/pl_PL.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('pt_PT',{
"Redo": "Refazer",
"Undo": "Anular",
"Cut": "Cortar",
"Copy": "Copiar",
Severity: Major
Found in src/js/tinymce-langs/pt_PT.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('id_ID',{
"Redo": "Ulang",
"Undo": "Batalkan",
"Cut": "Potong",
"Copy": "Salin",
Severity: Major
Found in src/js/tinymce-langs/id_ID.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('ru_RU',{
"Redo": "\u0412\u0435\u0440\u043d\u0443\u0442\u044c",
"Undo": "\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c",
"Cut": "\u0412\u044b\u0440\u0435\u0437\u0430\u0442\u044c",
"Copy": "\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c",
Severity: Major
Found in src/js/tinymce-langs/ru_RU.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('de_DE',{
"Redo": "Wiederholen",
"Undo": "R\u00fcckg\u00e4ngig machen",
"Cut": "Ausschneiden",
"Copy": "Kopieren",
Severity: Major
Found in src/js/tinymce-langs/de_DE.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('nl_BE',{
"Redo": "Opnieuw uitvoeren",
"Undo": "Ongedaan maken",
"Cut": "Knippen",
"Copy": "Kopi\u00ebren",
Severity: Major
Found in src/js/tinymce-langs/nl_BE.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('it_IT',{
"Redo": "Ripristina",
"Undo": "Annulla",
"Cut": "Taglia",
"Copy": "Copia",
Severity: Major
Found in src/js/tinymce-langs/it_IT.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('ca_ES',{
"Redo": "Refer",
"Undo": "Desfer",
"Cut": "Retalla",
"Copy": "Copia",
Severity: Major
Found in src/js/tinymce-langs/ca_ES.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('pt_BR',{
"Redo": "Refazer",
"Undo": "Desfazer",
"Cut": "Cortar",
"Copy": "Copiar",
Severity: Major
Found in src/js/tinymce-langs/pt_BR.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('fr_FR',{
"Redo": "R\u00e9tablir",
"Undo": "Annuler",
"Cut": "Couper",
"Copy": "Copier",
Severity: Major
Found in src/js/tinymce-langs/fr_FR.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('es_ES',{
"Redo": "Rehacer",
"Undo": "Deshacer",
"Cut": "Cortar",
"Copy": "Copiar",
Severity: Major
Found in src/js/tinymce-langs/es_ES.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('ko_KR',{
"Redo": "\ub2e4\uc2dc \uc2e4\ud589",
"Undo": "\uc2e4\ud589 \ucde8\uc18c",
"Cut": "\uc798\ub77c\ub0b4\uae30",
"Copy": "\ubcf5\uc0ac",
Severity: Major
Found in src/js/tinymce-langs/ko_KR.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ja_JP.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('ja_JP',{
"Redo": "\u3084\u308a\u76f4\u3057",
"Undo": "\u5143\u306b\u623b\u3059",
"Cut": "\u5207\u308a\u53d6\u308a",
"Copy": "\u30b3\u30d4\u30fc",
Severity: Major
Found in src/js/tinymce-langs/ja_JP.js and 13 other locations - About 1 wk to fix
src/js/tinymce-langs/ca_ES.js on lines 1..419
src/js/tinymce-langs/de_DE.js on lines 1..419
src/js/tinymce-langs/es_ES.js on lines 1..419
src/js/tinymce-langs/fr_FR.js on lines 1..419
src/js/tinymce-langs/id_ID.js on lines 1..419
src/js/tinymce-langs/it_IT.js on lines 1..419
src/js/tinymce-langs/ko_KR.js on lines 1..419
src/js/tinymce-langs/nl_BE.js on lines 1..419
src/js/tinymce-langs/pl_PL.js on lines 1..419
src/js/tinymce-langs/pt_BR.js on lines 1..419
src/js/tinymce-langs/pt_PT.js on lines 1..419
src/js/tinymce-langs/ru_RU.js on lines 1..419
src/js/tinymce-langs/zh_CN.js on lines 1..419

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

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

tinymce.addI18n('en_GB',{
"Cut": "Cut",
"Header 2": "Header 2",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.",
"Div": "Div",
Severity: Major
Found in src/js/tinymce-langs/en_GB.js and 1 other location - About 5 days to fix
src/js/tinymce-langs/en_US.js on lines 1..179

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

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

tinymce.addI18n('en_US',{
"Cut": "Cut",
"Header 2": "Header 2",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.",
"Div": "Div",
Severity: Major
Found in src/js/tinymce-langs/en_US.js and 1 other location - About 5 days to fix
src/js/tinymce-langs/en_GB.js on lines 1..179

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

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

try {
    $Entity = EntityType::from($App->Request->query->getString('type'))->toInstance($App->Users);
    $Entity->setId($App->Request->query->getInt('item_id'));
    $Entity->canOrExplode('read');

Severity: Major
Found in web/revisions.php and 2 other locations - About 1 day to fix
web/login.php on lines 37..139
web/team.php on lines 34..91

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

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

try {
    // if we are not in https, die saying we work only in https
    if (!$App->Request->isSecure() && !$App->Request->server->has('HTTP_X_FORWARDED_PROTO')) {
        // get the url to display a link to click
        $url = Config::fromEnv('SITE_URL');
Severity: Major
Found in web/login.php and 2 other locations - About 1 day to fix
web/revisions.php on lines 32..77
web/team.php on lines 34..91

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

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

try {
    $Teams = new Teams($App->Users);
    $TeamGroups = new TeamGroups($App->Users);
    $Items = new Items($App->Users);
    $Scheduler = new Scheduler($Items);
Severity: Major
Found in web/team.php and 2 other locations - About 1 day to fix
web/login.php on lines 37..139
web/revisions.php on lines 32..77

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

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

try {
    $ApiKeys = new ApiKeys($App->Users);
    $apiKeysArr = $ApiKeys->readAll();

    $Teams = new Teams($App->Users);
Severity: Major
Found in web/ucp.php and 1 other location - About 1 day to fix
web/database.php on lines 32..68

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

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