ImpressCMS/impresscms

View on GitHub

Showing 47,251 of 47,256 total issues

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

<?php
define('_MD_IMGMAIN','Amministrazione Immagini');

define('_MD_ADDIMGCAT','Aggiungi una categoria di immagini:');
define('_MD_EDITIMGCAT','Modifica una categoria di immagini:');
Severity: Major
Found in htdocs/modules/system/language/italiano/admin/images.php and 2 other locations - About 4 days to fix
htdocs/modules/system/language/english/admin/images.php on lines 1..80
htdocs/modules/system/language/nederlands/admin/images.php on lines 1..69

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

<?php
// $Id: images.php 11445 2011-11-18 08:17:59Z sato-san $
//%%%%%% Image Manager %%%%%

define('_MD_IMGMAIN','Image Manager Main');
Severity: Major
Found in htdocs/modules/system/language/english/admin/images.php and 2 other locations - About 4 days to fix
htdocs/modules/system/language/italiano/admin/images.php on lines 1..77
htdocs/modules/system/language/nederlands/admin/images.php on lines 1..69

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

<?php
// $Id: images.php 11445 2011-11-18 08:17:59Z sato-san $
//%%%%%% Image Manager %%%%%

define('_MD_IMGMAIN', 'Index Afbeeldingen Beheer');
Severity: Major
Found in htdocs/modules/system/language/nederlands/admin/images.php and 2 other locations - About 4 days to fix
htdocs/modules/system/language/english/admin/images.php on lines 1..80
htdocs/modules/system/language/italiano/admin/images.php on lines 1..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 820.

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

<?php
// $Id: images.php 8533 2009-04-11 10:08:35Z icmsunderdog $
//%%%%%% Image Manager %%%%%


Severity: Major
Found in htdocs/modules/system/language/francais/admin/images.php and 1 other location - About 4 days to fix
htdocs/modules/system/language/italiano/admin/users.php on lines 1..74

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

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

<?php
// 08/2008 Updated and adapted for ImpressCMS by evoc - webmaster of www.impresscms.it
// Published by ImpressCMS Italian Official Support Site - www.impresscms.it
// Updated by evoc - webmaster of ImpressCMS
// Updated by Ianez - Xoops Italia Staff
Severity: Major
Found in htdocs/modules/system/language/italiano/admin/users.php and 1 other location - About 4 days to fix
htdocs/modules/system/language/francais/admin/images.php on lines 1..71

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

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

<?php
// fichier:  .../modules/system/admin/tplsets/main.php
//Gestion des templates
define('_MD_TPLMAIN','Gestionnaire de templates');
define('_MD_INSTALL','Installer');
Severity: Major
Found in htdocs/modules/system/language/francais/admin/tplsets.php and 1 other location - About 4 days to fix
htdocs/modules/system/language/nederlands/admin/tplsets.php on lines 1..62

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

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

<?php
// $Id: tplsets.php 8533 2009-04-11 10:08:35Z icmsunderdog $
//%%%%%% Template Manager %%%%%
define('_MD_TPLMAIN','Templates');
define('_MD_INSTALL','Installeren');
Severity: Major
Found in htdocs/modules/system/language/nederlands/admin/tplsets.php and 1 other location - About 4 days to fix
htdocs/modules/system/language/francais/admin/tplsets.php on lines 1..63

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

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

<?php
/**
 * All information in order to connect to database are going through here.
 *
 * Be careful if you are changing data's in this file.
Severity: Major
Found in upgrade/upd-icms-1.0-to-1.1/mainfile.dist.php and 1 other location - About 4 days to fix
htdocs/install/templates/mainfile.dist.php on lines 1..121

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

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

<?php
/**
* All information in order to connect to database are going through here.
*
* Be careful if you are changing data's in this file.
Severity: Major
Found in htdocs/install/templates/mainfile.dist.php and 1 other location - About 4 days to fix
upgrade/upd-icms-1.0-to-1.1/mainfile.dist.php on lines 1..120

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

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

<?php
// $Id: admin.php 11023 2011-02-15 01:30:36Z skenow $
//%%%%%%    File Name  admin.php     %%%%%
//define('_MD_AM_CONFIG', 'System Configuration');
define('_INVALID_ADMIN_FUNCTION', 'Ongeldige Admin Functie');
Severity: Major
Found in htdocs/modules/system/language/nederlands/admin.php and 1 other location - About 3 days to fix
htdocs/modules/system/language/english/admin.php on lines 1..66

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

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

<?php
// $Id: admin.php 11023 2011-02-15 01:30:36Z skenow $
//%%%%%%    File Name  admin.php     %%%%%
//define('_MD_AM_CONFIG','System Configuration');
define('_INVALID_ADMIN_FUNCTION', 'Invalid Admin Function');
Severity: Major
Found in htdocs/modules/system/language/english/admin.php and 1 other location - About 3 days to fix
htdocs/modules/system/language/nederlands/admin.php on lines 1..63

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

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 functions.php has 1340 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
// $Id: functions.php 1032 2007-09-09 13:01:16Z dugris $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
Severity: Major
Found in htdocs/include/functions.php - About 3 days to fix

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

    <?php
    // $Id: groups.php 10326 2010-07-11 18:54:25Z malanciault $
    //%%%%%%    Admin Module Name  AdminGroup     %%%%%
    if (!defined('_AM_DBUPDATED')) {define("_AM_DBUPDATED","Database Updated Successfully!");}
    
    
    Severity: Major
    Found in htdocs/modules/system/language/english/admin/groups.php and 1 other location - About 3 days to fix
    htdocs/modules/system/language/nederlands/admin/groups.php on lines 1..59

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

    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

    <?php
    // $Id: groups.php 10326 2010-07-11 18:54:25Z malanciault $
    //%%%%%%    Admin Module Name  AdminGroup     %%%%%
    if (!defined('_AM_DBUPDATED')) {define('_AM_DBUPDATED', 'Database is succesvol bijgewerkt!');
    }
    Severity: Major
    Found in htdocs/modules/system/language/nederlands/admin/groups.php and 1 other location - About 3 days to fix
    htdocs/modules/system/language/english/admin/groups.php on lines 1..64

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

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

    function xoops_module_uninstall($dirname) {
        global $icmsConfig, $icmsAdminTpl;
    
        $reservedTables = array('avatar',
            'avatar_users_link',
    Severity: Minor
    Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 3 days 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 6 locations. Consider refactoring.
    Open

    <?php
    // 08/2008 Updated and adapted for ImpressCMS by evoc - webmaster of www.impresscms.it
    // Published by ImpressCMS Italian Official Support Site - www.impresscms.it
    // Updated by Ianez - Xoops Italia Staff
    // Original translation by Marco Ragogna (blueangel)
    Severity: Major
    Found in htdocs/modules/system/language/italiano/admin/findusers.php and 5 other locations - About 3 days to fix
    htdocs/modules/system/language/english/admin/findusers.php on lines 1..57
    htdocs/modules/system/language/francais/admin/findusers.php on lines 1..54
    htdocs/modules/system/language/italiano/admin/groups.php on lines 1..70
    htdocs/modules/system/language/italiano/modinfo.php on lines 1..75
    htdocs/modules/system/language/nederlands/admin/findusers.php on lines 1..54

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

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

    <?php
    // $Id: findusers.php 11344 2011-08-30 16:33:29Z phoenyx $
    //%%%%%%    File Name findusers.php     %%%%%
    
    define("_AM_FINDUS","Find Users");
    Severity: Major
    Found in htdocs/modules/system/language/english/admin/findusers.php and 5 other locations - About 3 days to fix
    htdocs/modules/system/language/francais/admin/findusers.php on lines 1..54
    htdocs/modules/system/language/italiano/admin/findusers.php on lines 1..63
    htdocs/modules/system/language/italiano/admin/groups.php on lines 1..70
    htdocs/modules/system/language/italiano/modinfo.php on lines 1..75
    htdocs/modules/system/language/nederlands/admin/findusers.php on lines 1..54

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

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

    <?php
    // $Id: findusers.php 11344 2011-08-30 16:33:29Z phoenyx $
    //%%%%%%    File Name findusers.php     %%%%%
    
    define('_AM_FINDUS', 'Zoek gebruikers');
    Severity: Major
    Found in htdocs/modules/system/language/nederlands/admin/findusers.php and 5 other locations - About 3 days to fix
    htdocs/modules/system/language/english/admin/findusers.php on lines 1..57
    htdocs/modules/system/language/francais/admin/findusers.php on lines 1..54
    htdocs/modules/system/language/italiano/admin/findusers.php on lines 1..63
    htdocs/modules/system/language/italiano/admin/groups.php on lines 1..70
    htdocs/modules/system/language/italiano/modinfo.php on lines 1..75

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

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

    <?php
    // 08/2008 Updated and adapted for ImpressCMS by evoc - webmaster of www.impresscms.it
    // Published by ImpressCMS Italian Official Support Site - www.impresscms.it
    // Updated by Ianez - Xoops Italia Staff
    // Original translation by Marco Ragogna (blueangel)
    Severity: Major
    Found in htdocs/modules/system/language/italiano/modinfo.php and 5 other locations - About 3 days to fix
    htdocs/modules/system/language/english/admin/findusers.php on lines 1..57
    htdocs/modules/system/language/francais/admin/findusers.php on lines 1..54
    htdocs/modules/system/language/italiano/admin/findusers.php on lines 1..63
    htdocs/modules/system/language/italiano/admin/groups.php on lines 1..70
    htdocs/modules/system/language/nederlands/admin/findusers.php on lines 1..54

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

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

    <?php
    // $Id: findusers.php 22476 2011-08-30 16:33:29Z phoenyx $
    //%%%%%%    File Name findusers.php     %%%%%
    
    define('_AM_FINDUS', 'Rechercher des utilisateurs');
    Severity: Major
    Found in htdocs/modules/system/language/francais/admin/findusers.php and 5 other locations - About 3 days to fix
    htdocs/modules/system/language/english/admin/findusers.php on lines 1..57
    htdocs/modules/system/language/italiano/admin/findusers.php on lines 1..63
    htdocs/modules/system/language/italiano/admin/groups.php on lines 1..70
    htdocs/modules/system/language/italiano/modinfo.php on lines 1..75
    htdocs/modules/system/language/nederlands/admin/findusers.php on lines 1..54

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

    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