arastta/arastta

View on GitHub

Showing 7,509 of 7,509 total issues

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

if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
    elFinder.prototype.i18.el = {
        translator : 'yawd <ingo@yawd.eu>',
        language   : 'Ελληνικά',
        direction  : 'ltr',
Severity: Major
Found in admin/view/javascript/elfinder/i18n/elfinder.el.js and 3 other locations - About 1 wk to fix
admin/view/javascript/elfinder/i18n/elfinder.da.js on lines 6..366
admin/view/javascript/elfinder/i18n/elfinder.sk.js on lines 6..366
admin/view/javascript/elfinder/i18n/elfinder.sv.js on lines 6..366

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

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

if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
    elFinder.prototype.i18.da = {
        translator : 'Mark Topper (webman.io)',
        language   : 'Language of translation in Danish',
        direction  : 'ltr',
Severity: Major
Found in admin/view/javascript/elfinder/i18n/elfinder.da.js and 3 other locations - About 1 wk to fix
admin/view/javascript/elfinder/i18n/elfinder.el.js on lines 6..366
admin/view/javascript/elfinder/i18n/elfinder.sk.js on lines 6..366
admin/view/javascript/elfinder/i18n/elfinder.sv.js on lines 6..366

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

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

if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
    elFinder.prototype.i18.sv = {
        translator : 'Gabriel Satzger <gabriel.satzger@sbg.se>',
        language   : 'Svenska',
        direction  : 'ltr',
Severity: Major
Found in admin/view/javascript/elfinder/i18n/elfinder.sv.js and 3 other locations - About 1 wk to fix
admin/view/javascript/elfinder/i18n/elfinder.da.js on lines 6..366
admin/view/javascript/elfinder/i18n/elfinder.el.js on lines 6..366
admin/view/javascript/elfinder/i18n/elfinder.sk.js on lines 6..366

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

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

if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
    elFinder.prototype.i18.sk = {
        translator : 'Jakub Ďuraš <jkblmr@gmail.com>',
        language   : 'slovenčina',
        direction  : 'ltr',
Severity: Major
Found in admin/view/javascript/elfinder/i18n/elfinder.sk.js and 3 other locations - About 1 wk to fix
admin/view/javascript/elfinder/i18n/elfinder.da.js on lines 6..366
admin/view/javascript/elfinder/i18n/elfinder.el.js on lines 6..366
admin/view/javascript/elfinder/i18n/elfinder.sv.js on lines 6..366

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

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

File bootstrap-editable.js has 3812 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! X-editable - v1.5.1 
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Severity: Major
Found in admin/view/javascript/bootstrap3-editable/js/bootstrap-editable.js - About 1 wk to fix

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

    if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
      elFinder.prototype.i18.vi = {
        translator : 'Chung Thủy f <chungthuyf@gmail.com>,Son Nguyen <son.nguyen@catalyst.net.nz>',
        language : 'Ngôn ngữ Việt Nam',
        direction : 'ltr',
    Severity: Major
    Found in admin/view/javascript/elfinder/i18n/elfinder.vi.js and 3 other locations - About 1 wk to fix
    admin/view/javascript/elfinder/i18n/elfinder.ko.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.pl.js on lines 7..367
    admin/view/javascript/elfinder/i18n/elfinder.sl.js on lines 6..366

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

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

    if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
        elFinder.prototype.i18.sl = {
            translator : 'Damjan Rems <d_rems at yahoo.com>',
            language   : 'Slovenščina',
            direction  : 'ltr',
    Severity: Major
    Found in admin/view/javascript/elfinder/i18n/elfinder.sl.js and 3 other locations - About 1 wk to fix
    admin/view/javascript/elfinder/i18n/elfinder.ko.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.pl.js on lines 7..367
    admin/view/javascript/elfinder/i18n/elfinder.vi.js on lines 6..366

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

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

    if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
        elFinder.prototype.i18.ko = {
            translator : 'Hwang Ahreum; <luckmagic@naver.com>',
            language   : 'Korea-한국어',
            direction  : 'ltr',
    Severity: Major
    Found in admin/view/javascript/elfinder/i18n/elfinder.ko.js and 3 other locations - About 1 wk to fix
    admin/view/javascript/elfinder/i18n/elfinder.pl.js on lines 7..367
    admin/view/javascript/elfinder/i18n/elfinder.sl.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.vi.js on lines 6..366

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

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

    if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
        elFinder.prototype.i18.pl = {
            translator : 'Marcin Mikołajczyk <marcin@pjwstk.edu.pl>, Wojciech Jabłoński <www.jablonski@gmail.com>',
            language   : 'Polski',
            direction  : 'ltr',
    Severity: Major
    Found in admin/view/javascript/elfinder/i18n/elfinder.pl.js and 3 other locations - About 1 wk to fix
    admin/view/javascript/elfinder/i18n/elfinder.ko.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.sl.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.vi.js on lines 6..366

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

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

    if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
        elFinder.prototype.i18.de = {
            translator : 'JPG & Mace <dev@flying-datacenter.de>, tora60 from pragmaMx.org, osworx.net',
            language   : 'Deutsch',
            direction  : 'ltr',
    Severity: Major
    Found in admin/view/javascript/elfinder/i18n/elfinder.de.js and 3 other locations - About 1 wk to fix
    admin/view/javascript/elfinder/i18n/elfinder.ar.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.bg.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.ca.js on lines 6..366

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

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

    if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
        elFinder.prototype.i18.bg = {
            translator : 'Stamo Petkov <stamo.petkov@gmail.com>',
            language   : 'Български',
            direction  : 'ltr',
    Severity: Major
    Found in admin/view/javascript/elfinder/i18n/elfinder.bg.js and 3 other locations - About 1 wk to fix
    admin/view/javascript/elfinder/i18n/elfinder.ar.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.ca.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.de.js on lines 7..367

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

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

    if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
        elFinder.prototype.i18.ar = {
            translator : 'Tawfek Daghistani <tawfekov@gmail.com>',
            language   : 'العربية',
            direction  : 'rtl',
    Severity: Major
    Found in admin/view/javascript/elfinder/i18n/elfinder.ar.js and 3 other locations - About 1 wk to fix
    admin/view/javascript/elfinder/i18n/elfinder.bg.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.ca.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.de.js on lines 7..367

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

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

    if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
        elFinder.prototype.i18.ca = {
            translator : 'Sergio Jovani <lesergi@gmail.com>',
            language   : 'Català',
            direction  : 'ltr',
    Severity: Major
    Found in admin/view/javascript/elfinder/i18n/elfinder.ca.js and 3 other locations - About 1 wk to fix
    admin/view/javascript/elfinder/i18n/elfinder.ar.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.bg.js on lines 6..366
    admin/view/javascript/elfinder/i18n/elfinder.de.js on lines 7..367

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

    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 ReadCSS has a Cognitive Complexity of 522 (exceeds 5 allowed). Consider refactoring.
    Open

    function ReadCSS($html) {
        preg_match_all('/<style[^>]*media=["\']([^"\'>]*)["\'].*?<\/style>/is',$html,$m);
        for($i=0; $i<count($m[0]); $i++) {
            if ($this->mpdf->CSSselectMedia && !preg_match('/('.trim($this->mpdf->CSSselectMedia).'|all)/i',$m[1][$i])) { 
                $html = preg_replace('/'.preg_quote($m[0][$i],'/').'/','',$html);
    Severity: Minor
    Found in system/mpdf/classes/cssmgr.php - About 1 wk 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

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

    if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
        elFinder.prototype.i18.sr = {
            translator : 'Momčilo m0k1 Mićanović &lt;moki.forum@gmail.com&gt;',
            language   : 'Srpski',
            direction  : 'ltr',
    Severity: Major
    Found in admin/view/javascript/elfinder/i18n/elfinder.sr.js and 1 other location - About 1 wk to fix
    admin/view/javascript/elfinder/i18n/elfinder.fa.js on lines 6..366

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

    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 (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
        elFinder.prototype.i18.fa = {
            translator : 'Keyhan Mohammadpour &lt;keyhan_universityworks@yahoo.com&gt;',
            language   : 'فارسی',
            direction  : 'rtl',
    Severity: Major
    Found in admin/view/javascript/elfinder/i18n/elfinder.fa.js and 1 other location - About 1 wk to fix
    admin/view/javascript/elfinder/i18n/elfinder.sr.js on lines 6..366

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

    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

    File dejavusanscondensedB.mtx.php has 3666 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    $name='DejaVuSansCondensed-Bold';
    $type='TTF';
    $desc=array (
      'CapHeight' => 729,
    Severity: Major
    Found in system/mpdf/ttfontdata/dejavusanscondensedB.mtx.php - About 1 wk to fix

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

              messages   : {
                  
                  /********************************** errors **********************************/
                  'error'                : 'Hiba',
                  'errUnknown'           : 'Ismeretlen hiba.',
      Severity: Major
      Found in admin/view/javascript/elfinder/i18n/elfinder.hu.js and 1 other location - About 1 wk to fix
      admin/view/javascript/elfinder/i18n/elfinder.nn.js on lines 13..364

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

      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

              messages   : {
                  
                  /********************************** errors **********************************/
                  'error'                : 'Feil',
                  'errUnknown'           : 'Ukjent feil.',
      Severity: Major
      Found in admin/view/javascript/elfinder/i18n/elfinder.nn.js and 1 other location - About 1 wk to fix
      admin/view/javascript/elfinder/i18n/elfinder.hu.js on lines 13..364

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

      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 index has a Cognitive Complexity of 505 (exceeds 5 allowed). Consider refactoring.
      Open

          public function index() {
              $this->load->language('setting/setting');
      
              $this->document->setTitle($this->language->get('heading_title'));
      
      
      Severity: Minor
      Found in admin/controller/setting/setting.php - About 1 wk 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