XoopsModules25x/apcal

View on GitHub

Showing 26,336 of 26,336 total issues

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

Calendar._TT["ABOUT"] =
    "DHTML Selector de Data/Hora\n" +
    "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
    "For latest version visit: http://www.dynarch.com/projects/calendar/\n" +
    "Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +
Severity: Major
Found in assets/js/jscalendar/lang/calendar-ca.js and 28 other locations - About 2 hrs to fix
assets/js/jscalendar/lang/calendar-bg.js on lines 81..90
assets/js/jscalendar/lang/calendar-big5-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-big5.js on lines 80..89
assets/js/jscalendar/lang/calendar-de.js on lines 80..89
assets/js/jscalendar/lang/calendar-el.js on lines 54..63
assets/js/jscalendar/lang/calendar-en.js on lines 84..93
assets/js/jscalendar/lang/calendar-es.js on lines 86..95
assets/js/jscalendar/lang/calendar-fi.js on lines 64..73
assets/js/jscalendar/lang/calendar-fr.js on lines 82..91
assets/js/jscalendar/lang/calendar-hu.js on lines 81..90
assets/js/jscalendar/lang/calendar-it.js on lines 81..90
assets/js/jscalendar/lang/calendar-lt-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-lt.js on lines 80..89
assets/js/jscalendar/lang/calendar-lv.js on lines 80..89
assets/js/jscalendar/lang/calendar-no.js on lines 80..89
assets/js/jscalendar/lang/calendar-pl-utf8.js on lines 58..67
assets/js/jscalendar/lang/calendar-pl.js on lines 22..31
assets/js/jscalendar/lang/calendar-pt.js on lines 80..89
assets/js/jscalendar/lang/calendar-ro.js on lines 31..40
assets/js/jscalendar/lang/calendar-ru.js on lines 80..89
assets/js/jscalendar/lang/calendar-ru_win_.js on lines 80..89
assets/js/jscalendar/lang/calendar-si.js on lines 60..69
assets/js/jscalendar/lang/calendar-sp.js on lines 67..76
assets/js/jscalendar/lang/calendar-sv.js on lines 59..68
assets/js/jscalendar/lang/calendar-tw-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-tw.js on lines 80..89
assets/js/jscalendar/lang/calendar-zh.js on lines 76..85
assets/js/jscalendar/lang/cn_utf8.js on lines 81..90

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

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

Calendar._TT["ABOUT"] =
    "DHTML Date/Time Selector\n" +
    "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
    "Aby pobrać najnowszą wersję, odwiedź: http://www.dynarch.com/projects/calendar/\n" +
    "Dostępny na licencji GNU LGPL. Zobacz szczegóły na http://gnu.org/licenses/lgpl.html." +
Severity: Major
Found in assets/js/jscalendar/lang/calendar-pl-utf8.js and 28 other locations - About 2 hrs to fix
assets/js/jscalendar/lang/calendar-bg.js on lines 81..90
assets/js/jscalendar/lang/calendar-big5-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-big5.js on lines 80..89
assets/js/jscalendar/lang/calendar-ca.js on lines 80..89
assets/js/jscalendar/lang/calendar-de.js on lines 80..89
assets/js/jscalendar/lang/calendar-el.js on lines 54..63
assets/js/jscalendar/lang/calendar-en.js on lines 84..93
assets/js/jscalendar/lang/calendar-es.js on lines 86..95
assets/js/jscalendar/lang/calendar-fi.js on lines 64..73
assets/js/jscalendar/lang/calendar-fr.js on lines 82..91
assets/js/jscalendar/lang/calendar-hu.js on lines 81..90
assets/js/jscalendar/lang/calendar-it.js on lines 81..90
assets/js/jscalendar/lang/calendar-lt-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-lt.js on lines 80..89
assets/js/jscalendar/lang/calendar-lv.js on lines 80..89
assets/js/jscalendar/lang/calendar-no.js on lines 80..89
assets/js/jscalendar/lang/calendar-pl.js on lines 22..31
assets/js/jscalendar/lang/calendar-pt.js on lines 80..89
assets/js/jscalendar/lang/calendar-ro.js on lines 31..40
assets/js/jscalendar/lang/calendar-ru.js on lines 80..89
assets/js/jscalendar/lang/calendar-ru_win_.js on lines 80..89
assets/js/jscalendar/lang/calendar-si.js on lines 60..69
assets/js/jscalendar/lang/calendar-sp.js on lines 67..76
assets/js/jscalendar/lang/calendar-sv.js on lines 59..68
assets/js/jscalendar/lang/calendar-tw-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-tw.js on lines 80..89
assets/js/jscalendar/lang/calendar-zh.js on lines 76..85
assets/js/jscalendar/lang/cn_utf8.js on lines 81..90

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

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

Calendar._TT["ABOUT"] =
    "DHTML Date/Time Selector\n" +
    "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
    "For latest version visit: http://www.dynarch.com/projects/calendar/\n" +
    "Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +
Severity: Major
Found in assets/js/jscalendar/lang/calendar-pl.js and 28 other locations - About 2 hrs to fix
assets/js/jscalendar/lang/calendar-bg.js on lines 81..90
assets/js/jscalendar/lang/calendar-big5-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-big5.js on lines 80..89
assets/js/jscalendar/lang/calendar-ca.js on lines 80..89
assets/js/jscalendar/lang/calendar-de.js on lines 80..89
assets/js/jscalendar/lang/calendar-el.js on lines 54..63
assets/js/jscalendar/lang/calendar-en.js on lines 84..93
assets/js/jscalendar/lang/calendar-es.js on lines 86..95
assets/js/jscalendar/lang/calendar-fi.js on lines 64..73
assets/js/jscalendar/lang/calendar-fr.js on lines 82..91
assets/js/jscalendar/lang/calendar-hu.js on lines 81..90
assets/js/jscalendar/lang/calendar-it.js on lines 81..90
assets/js/jscalendar/lang/calendar-lt-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-lt.js on lines 80..89
assets/js/jscalendar/lang/calendar-lv.js on lines 80..89
assets/js/jscalendar/lang/calendar-no.js on lines 80..89
assets/js/jscalendar/lang/calendar-pl-utf8.js on lines 58..67
assets/js/jscalendar/lang/calendar-pt.js on lines 80..89
assets/js/jscalendar/lang/calendar-ro.js on lines 31..40
assets/js/jscalendar/lang/calendar-ru.js on lines 80..89
assets/js/jscalendar/lang/calendar-ru_win_.js on lines 80..89
assets/js/jscalendar/lang/calendar-si.js on lines 60..69
assets/js/jscalendar/lang/calendar-sp.js on lines 67..76
assets/js/jscalendar/lang/calendar-sv.js on lines 59..68
assets/js/jscalendar/lang/calendar-tw-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-tw.js on lines 80..89
assets/js/jscalendar/lang/calendar-zh.js on lines 76..85
assets/js/jscalendar/lang/cn_utf8.js on lines 81..90

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

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

Calendar._TT["ABOUT"] =
    "DHTML Date/Time Selector\n" +
    "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
    "For latest version visit: http://www.dynarch.com/projects/calendar/\n" +
    "Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +
Severity: Major
Found in assets/js/jscalendar/lang/calendar-bg.js and 28 other locations - About 2 hrs to fix
assets/js/jscalendar/lang/calendar-big5-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-big5.js on lines 80..89
assets/js/jscalendar/lang/calendar-ca.js on lines 80..89
assets/js/jscalendar/lang/calendar-de.js on lines 80..89
assets/js/jscalendar/lang/calendar-el.js on lines 54..63
assets/js/jscalendar/lang/calendar-en.js on lines 84..93
assets/js/jscalendar/lang/calendar-es.js on lines 86..95
assets/js/jscalendar/lang/calendar-fi.js on lines 64..73
assets/js/jscalendar/lang/calendar-fr.js on lines 82..91
assets/js/jscalendar/lang/calendar-hu.js on lines 81..90
assets/js/jscalendar/lang/calendar-it.js on lines 81..90
assets/js/jscalendar/lang/calendar-lt-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-lt.js on lines 80..89
assets/js/jscalendar/lang/calendar-lv.js on lines 80..89
assets/js/jscalendar/lang/calendar-no.js on lines 80..89
assets/js/jscalendar/lang/calendar-pl-utf8.js on lines 58..67
assets/js/jscalendar/lang/calendar-pl.js on lines 22..31
assets/js/jscalendar/lang/calendar-pt.js on lines 80..89
assets/js/jscalendar/lang/calendar-ro.js on lines 31..40
assets/js/jscalendar/lang/calendar-ru.js on lines 80..89
assets/js/jscalendar/lang/calendar-ru_win_.js on lines 80..89
assets/js/jscalendar/lang/calendar-si.js on lines 60..69
assets/js/jscalendar/lang/calendar-sp.js on lines 67..76
assets/js/jscalendar/lang/calendar-sv.js on lines 59..68
assets/js/jscalendar/lang/calendar-tw-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-tw.js on lines 80..89
assets/js/jscalendar/lang/calendar-zh.js on lines 76..85
assets/js/jscalendar/lang/cn_utf8.js on lines 81..90

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

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

Calendar._TT["ABOUT"] =
    "Επιλογέας ημερομηνίας/ώρας σε DHTML\n" +
    "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
    "Για τελευταία έκδοση: http://www.dynarch.com/projects/calendar/\n" +
    "Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +
Severity: Major
Found in assets/js/jscalendar/lang/calendar-el.js and 28 other locations - About 2 hrs to fix
assets/js/jscalendar/lang/calendar-bg.js on lines 81..90
assets/js/jscalendar/lang/calendar-big5-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-big5.js on lines 80..89
assets/js/jscalendar/lang/calendar-ca.js on lines 80..89
assets/js/jscalendar/lang/calendar-de.js on lines 80..89
assets/js/jscalendar/lang/calendar-en.js on lines 84..93
assets/js/jscalendar/lang/calendar-es.js on lines 86..95
assets/js/jscalendar/lang/calendar-fi.js on lines 64..73
assets/js/jscalendar/lang/calendar-fr.js on lines 82..91
assets/js/jscalendar/lang/calendar-hu.js on lines 81..90
assets/js/jscalendar/lang/calendar-it.js on lines 81..90
assets/js/jscalendar/lang/calendar-lt-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-lt.js on lines 80..89
assets/js/jscalendar/lang/calendar-lv.js on lines 80..89
assets/js/jscalendar/lang/calendar-no.js on lines 80..89
assets/js/jscalendar/lang/calendar-pl-utf8.js on lines 58..67
assets/js/jscalendar/lang/calendar-pl.js on lines 22..31
assets/js/jscalendar/lang/calendar-pt.js on lines 80..89
assets/js/jscalendar/lang/calendar-ro.js on lines 31..40
assets/js/jscalendar/lang/calendar-ru.js on lines 80..89
assets/js/jscalendar/lang/calendar-ru_win_.js on lines 80..89
assets/js/jscalendar/lang/calendar-si.js on lines 60..69
assets/js/jscalendar/lang/calendar-sp.js on lines 67..76
assets/js/jscalendar/lang/calendar-sv.js on lines 59..68
assets/js/jscalendar/lang/calendar-tw-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-tw.js on lines 80..89
assets/js/jscalendar/lang/calendar-zh.js on lines 76..85
assets/js/jscalendar/lang/cn_utf8.js on lines 81..90

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

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

Calendar._TT["ABOUT"] =
    "DHTML Date/Time Selector\n" +
    "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
    "For latest version visit: http://www.dynarch.com/projects/calendar/\n" +
    "Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +
Severity: Major
Found in assets/js/jscalendar/lang/calendar-en.js and 28 other locations - About 2 hrs to fix
assets/js/jscalendar/lang/calendar-bg.js on lines 81..90
assets/js/jscalendar/lang/calendar-big5-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-big5.js on lines 80..89
assets/js/jscalendar/lang/calendar-ca.js on lines 80..89
assets/js/jscalendar/lang/calendar-de.js on lines 80..89
assets/js/jscalendar/lang/calendar-el.js on lines 54..63
assets/js/jscalendar/lang/calendar-es.js on lines 86..95
assets/js/jscalendar/lang/calendar-fi.js on lines 64..73
assets/js/jscalendar/lang/calendar-fr.js on lines 82..91
assets/js/jscalendar/lang/calendar-hu.js on lines 81..90
assets/js/jscalendar/lang/calendar-it.js on lines 81..90
assets/js/jscalendar/lang/calendar-lt-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-lt.js on lines 80..89
assets/js/jscalendar/lang/calendar-lv.js on lines 80..89
assets/js/jscalendar/lang/calendar-no.js on lines 80..89
assets/js/jscalendar/lang/calendar-pl-utf8.js on lines 58..67
assets/js/jscalendar/lang/calendar-pl.js on lines 22..31
assets/js/jscalendar/lang/calendar-pt.js on lines 80..89
assets/js/jscalendar/lang/calendar-ro.js on lines 31..40
assets/js/jscalendar/lang/calendar-ru.js on lines 80..89
assets/js/jscalendar/lang/calendar-ru_win_.js on lines 80..89
assets/js/jscalendar/lang/calendar-si.js on lines 60..69
assets/js/jscalendar/lang/calendar-sp.js on lines 67..76
assets/js/jscalendar/lang/calendar-sv.js on lines 59..68
assets/js/jscalendar/lang/calendar-tw-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-tw.js on lines 80..89
assets/js/jscalendar/lang/calendar-zh.js on lines 76..85
assets/js/jscalendar/lang/cn_utf8.js on lines 81..90

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

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

Calendar._TT["ABOUT"] =
    "DHTML Date/Time Selector\n" +
    "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
    "For latest version visit: http://www.dynarch.com/projects/calendar/\n" +
    "Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +
Severity: Major
Found in assets/js/jscalendar/lang/calendar-big5.js and 28 other locations - About 2 hrs to fix
assets/js/jscalendar/lang/calendar-bg.js on lines 81..90
assets/js/jscalendar/lang/calendar-big5-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-ca.js on lines 80..89
assets/js/jscalendar/lang/calendar-de.js on lines 80..89
assets/js/jscalendar/lang/calendar-el.js on lines 54..63
assets/js/jscalendar/lang/calendar-en.js on lines 84..93
assets/js/jscalendar/lang/calendar-es.js on lines 86..95
assets/js/jscalendar/lang/calendar-fi.js on lines 64..73
assets/js/jscalendar/lang/calendar-fr.js on lines 82..91
assets/js/jscalendar/lang/calendar-hu.js on lines 81..90
assets/js/jscalendar/lang/calendar-it.js on lines 81..90
assets/js/jscalendar/lang/calendar-lt-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-lt.js on lines 80..89
assets/js/jscalendar/lang/calendar-lv.js on lines 80..89
assets/js/jscalendar/lang/calendar-no.js on lines 80..89
assets/js/jscalendar/lang/calendar-pl-utf8.js on lines 58..67
assets/js/jscalendar/lang/calendar-pl.js on lines 22..31
assets/js/jscalendar/lang/calendar-pt.js on lines 80..89
assets/js/jscalendar/lang/calendar-ro.js on lines 31..40
assets/js/jscalendar/lang/calendar-ru.js on lines 80..89
assets/js/jscalendar/lang/calendar-ru_win_.js on lines 80..89
assets/js/jscalendar/lang/calendar-si.js on lines 60..69
assets/js/jscalendar/lang/calendar-sp.js on lines 67..76
assets/js/jscalendar/lang/calendar-sv.js on lines 59..68
assets/js/jscalendar/lang/calendar-tw-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-tw.js on lines 80..89
assets/js/jscalendar/lang/calendar-zh.js on lines 76..85
assets/js/jscalendar/lang/cn_utf8.js on lines 81..90

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

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

Calendar._TT["ABOUT"] =
    "DHTML Date/Time Selector\n" +
    "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this ;-)
    "For latest version visit: http://www.dynarch.com/projects/calendar/\n" +
    "Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +
Severity: Major
Found in assets/js/jscalendar/lang/calendar-de.js and 28 other locations - About 2 hrs to fix
assets/js/jscalendar/lang/calendar-bg.js on lines 81..90
assets/js/jscalendar/lang/calendar-big5-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-big5.js on lines 80..89
assets/js/jscalendar/lang/calendar-ca.js on lines 80..89
assets/js/jscalendar/lang/calendar-el.js on lines 54..63
assets/js/jscalendar/lang/calendar-en.js on lines 84..93
assets/js/jscalendar/lang/calendar-es.js on lines 86..95
assets/js/jscalendar/lang/calendar-fi.js on lines 64..73
assets/js/jscalendar/lang/calendar-fr.js on lines 82..91
assets/js/jscalendar/lang/calendar-hu.js on lines 81..90
assets/js/jscalendar/lang/calendar-it.js on lines 81..90
assets/js/jscalendar/lang/calendar-lt-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-lt.js on lines 80..89
assets/js/jscalendar/lang/calendar-lv.js on lines 80..89
assets/js/jscalendar/lang/calendar-no.js on lines 80..89
assets/js/jscalendar/lang/calendar-pl-utf8.js on lines 58..67
assets/js/jscalendar/lang/calendar-pl.js on lines 22..31
assets/js/jscalendar/lang/calendar-pt.js on lines 80..89
assets/js/jscalendar/lang/calendar-ro.js on lines 31..40
assets/js/jscalendar/lang/calendar-ru.js on lines 80..89
assets/js/jscalendar/lang/calendar-ru_win_.js on lines 80..89
assets/js/jscalendar/lang/calendar-si.js on lines 60..69
assets/js/jscalendar/lang/calendar-sp.js on lines 67..76
assets/js/jscalendar/lang/calendar-sv.js on lines 59..68
assets/js/jscalendar/lang/calendar-tw-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-tw.js on lines 80..89
assets/js/jscalendar/lang/calendar-zh.js on lines 76..85
assets/js/jscalendar/lang/cn_utf8.js on lines 81..90

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

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

Calendar._TT["ABOUT"] =
    "DHTML Date/Time Selector\n" +
    "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
    "For latest version visit: http://www.dynarch.com/projects/calendar/\n" +
    "Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +
Severity: Major
Found in assets/js/jscalendar/lang/calendar-ru_win_.js and 28 other locations - About 2 hrs to fix
assets/js/jscalendar/lang/calendar-bg.js on lines 81..90
assets/js/jscalendar/lang/calendar-big5-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-big5.js on lines 80..89
assets/js/jscalendar/lang/calendar-ca.js on lines 80..89
assets/js/jscalendar/lang/calendar-de.js on lines 80..89
assets/js/jscalendar/lang/calendar-el.js on lines 54..63
assets/js/jscalendar/lang/calendar-en.js on lines 84..93
assets/js/jscalendar/lang/calendar-es.js on lines 86..95
assets/js/jscalendar/lang/calendar-fi.js on lines 64..73
assets/js/jscalendar/lang/calendar-fr.js on lines 82..91
assets/js/jscalendar/lang/calendar-hu.js on lines 81..90
assets/js/jscalendar/lang/calendar-it.js on lines 81..90
assets/js/jscalendar/lang/calendar-lt-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-lt.js on lines 80..89
assets/js/jscalendar/lang/calendar-lv.js on lines 80..89
assets/js/jscalendar/lang/calendar-no.js on lines 80..89
assets/js/jscalendar/lang/calendar-pl-utf8.js on lines 58..67
assets/js/jscalendar/lang/calendar-pl.js on lines 22..31
assets/js/jscalendar/lang/calendar-pt.js on lines 80..89
assets/js/jscalendar/lang/calendar-ro.js on lines 31..40
assets/js/jscalendar/lang/calendar-ru.js on lines 80..89
assets/js/jscalendar/lang/calendar-si.js on lines 60..69
assets/js/jscalendar/lang/calendar-sp.js on lines 67..76
assets/js/jscalendar/lang/calendar-sv.js on lines 59..68
assets/js/jscalendar/lang/calendar-tw-utf8.js on lines 80..89
assets/js/jscalendar/lang/calendar-tw.js on lines 80..89
assets/js/jscalendar/lang/calendar-zh.js on lines 76..85
assets/js/jscalendar/lang/cn_utf8.js on lines 81..90

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

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

        prepareNextOutline: function () {
            var key = this.key;
            var outlineType = this.outlineType;
            new hs.Outline(outlineType,
                function () {
Severity: Major
Found in assets/images/js/highslide/highslide-with-html.js and 3 other locations - About 2 hrs to fix
assets/images/js/highslide/highslide-full.js on lines 2333..2343
assets/images/js/highslide/highslide-with-gallery.js on lines 1831..1841
assets/images/js/highslide/highslide.js on lines 1387..1397

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

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

        prepareNextOutline: function () {
            var key = this.key;
            var outlineType = this.outlineType;
            new hs.Outline(outlineType,
                function () {
Severity: Major
Found in assets/images/js/highslide/highslide-full.js and 3 other locations - About 2 hrs to fix
assets/images/js/highslide/highslide-with-gallery.js on lines 1831..1841
assets/images/js/highslide/highslide-with-html.js on lines 1827..1837
assets/images/js/highslide/highslide.js on lines 1387..1397

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

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

        prepareNextOutline: function () {
            var key = this.key;
            var outlineType = this.outlineType;
            new hs.Outline(outlineType,
                function () {
Severity: Major
Found in assets/images/js/highslide/highslide.js and 3 other locations - About 2 hrs to fix
assets/images/js/highslide/highslide-full.js on lines 2333..2343
assets/images/js/highslide/highslide-with-gallery.js on lines 1831..1841
assets/images/js/highslide/highslide-with-html.js on lines 1827..1837

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

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

        prepareNextOutline: function () {
            var key = this.key;
            var outlineType = this.outlineType;
            new hs.Outline(outlineType,
                function () {
Severity: Major
Found in assets/images/js/highslide/highslide-with-gallery.js and 3 other locations - About 2 hrs to fix
assets/images/js/highslide/highslide-full.js on lines 2333..2343
assets/images/js/highslide/highslide-with-html.js on lines 1827..1837
assets/images/js/highslide/highslide.js on lines 1387..1397

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

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 mouseClickHandler has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        mouseClickHandler: function (e) {
            if (!e) e = window.event;
            if (e.button > 1) return true;
            if (!e.target) e.target = e.srcElement;

Severity: Major
Found in assets/images/js/highslide/highslide-with-html.js - About 2 hrs to fix

    Method __construct has 57 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public function __construct($target_date = '', $language = 'japanese', $reload = false)
            {
                // ���դΥ��å�
                if ($target_date) {
                    $this->set_date($target_date);
    Severity: Major
    Found in class/APCal.php - About 2 hrs to fix

      Method ImprovedImageRotate has 57 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function ImprovedImageRotate(
              &$gdimg_source,
              $rotate_angle = 0,
              $config_background_hexcolor = 'FFFFFF',
              $bg = null,
      Severity: Major
      Found in thumbs/phpthumb.filters.php - About 2 hrs to fix

        Function get_coming_time_description has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
        Open

                public function get_coming_time_description($start, $now, $admission = true)
                {
                    // ��ǧ��̵ͭ�ˤ�äƥɥå�GIF���ؤ���
                    if ($admission) {
                        $dot = '';
        Severity: Minor
        Found in class/APCal.php - About 2 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function savepictures has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
        Open

                public function savepictures($event_id)
                {
                    xoops_load('xoopsmediauploader');
                    $uploader = new XoopsMediaUploader(XOOPS_UPLOAD_PATH . '/apcal', array(
                        'image/gif',
        Severity: Minor
        Found in class/APCal.php - About 2 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function OffsiteDomainIsAllowed has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
        Open

            public function OffsiteDomainIsAllowed($hostname, $allowed_domains)
            {
                static $domain_is_allowed = array();
                $hostname = strtolower($hostname);
                if (!isset($domain_is_allowed[$hostname])) {
        Severity: Minor
        Found in thumbs/phpthumb.class.php - About 2 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function resolvePath has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
        Open

            public function resolvePath($path, $allowed_dirs)
            {
                $this->DebugMessage('resolvePath: ' . $path . ' (allowed_dirs: ' . print_r($allowed_dirs, true) . ')', __FILE__, __LINE__);
        
                // add base path to the top of the list
        Severity: Minor
        Found in thumbs/phpthumb.class.php - About 2 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Severity
        Category
        Status
        Source
        Language