ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/language/italiano/admin/groups.php

Summary

Maintainability
F
3 days
Test Coverage

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 evoc - webmaster of Impresscms.it
// Updated by Ianez - Xoops Italia Staff
Severity: Major
Found in htdocs/modules/system/language/italiano/admin/groups.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/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

No space found after comma in function call
Open

define("_AM_UNEED2ENTER","E' necessario riempire i campi obbligatori!");

No space found after comma in function call
Open

define("_AM_CBLEFT_ADMIN","Blocco centrale amm. - Sinistra");

No space found after comma in function call
Open

define("_AM_CREATENEWADG","Crea un nuovo gruppo");

No space found after comma in function call
Open

define("_AM_CBCENTER_ADMIN","Blocco centrale amm. - Centro");

No space found after comma in function call
Open

define("_AM_AREUSUREDEL","Sei certo di voler eliminare questo gruppo?");

No space found after comma in function call
Open

define("_AM_CBCENTER","Blocco centrale - Centro");

No space found after comma in function call
Open

define("_AM_CBBOTTOM","Blocco centrale - Basso centro");

No space found after comma in function call
Open

define("_AM_ACCESSRIGHTS","Permessi di accesso al modulo");

No space found after comma in function call
Open

define("_AM_UPDATEADG","Aggiorna Gruppo");

No space found after comma in function call
Open

define("_AM_SBRIGHT","Blocco laterale - Destra");

No space found after comma in function call
Open

define("_AM_EDPERM","Pu&ograve; usare l'editor WYSIWYG nei seguenti moduli");

No space found after comma in function call
Open

define("_AM_SBRIGHT_ADMIN","Blocco laterale amm. - Destra");

No space found after comma in function call
Open

define("_AM_INDICATES","* indica i campi obbligatori");

No space found after comma in function call
Open

define("_AM_MODIFYADG","Modifica Gruppo");

No space found after comma in function call
Open

define("_AM_BLOCKRIGHTS","Permessi di visualizzazione dei blocchi");

No space found after comma in function call
Open

define("_AM_CBBOTTOM_ADMIN","Blocco centrale amm. - Basso");

No space found after comma in function call
Open

define("_AM_ADDBUTTON"," aggiungi --> ");

No space found after comma in function call
Open

define("_AM_SYSTEMRIGHTS","Permessi di amministrazione del sistema");

No space found after comma in function call
Open

define("_AM_NO","No");

No space found after comma in function call
Open

define("_AM_DBUPDATED","Database aggiornato con successo!");

No space found after comma in function call
Open

define("_AM_IFADMIN","Se viene dato il permesso di amministrazione di un modulo, i diritti di accesso per quel modulo saranno sempre abilitati.");

No space found after comma in function call
Open

define("_AM_DELETEADG","Elimina Gruppo");

No space found after comma in function call
Open

define("_AM_NONMEMBERS","Non-membri");

No space found after comma in function call
Open

define("_AM_SBLEFT_ADMIN","Blocco laterale amm. - Sinistra");

No space found after comma in function call
Open

define("_AM_EDITADG","Amministrazione Gruppi");

No space found after comma in function call
Open

define("_AM_DESCRIPTION","Descrizione");

No space found after comma in function call
Open

define("_AM_DELETE","Elimina");

No space found after comma in function call
Open

define("_AM_DELBUTTON"," <-- rimuovi");

No space found after comma in function call
Open

define("_AM_CBBOTTOMRIGHT","Blocco centrale - Basso destra");

No space found after comma in function call
Open

define("_AM_DEBUG_PERM","Pu&ograve; vedere il Debug PHP nei seguenti moduli");

No space found after comma in function call
Open

define("_AM_CBBOTTOMLEFT_ADMIN","Blocco centrale amm. - Basso Sinistra");

No space found after comma in function call
Open

define("_AM_YES","S&igrave;");

No space found after comma in function call
Open

define("_AM_EDITMEMBER","Modifica i membri di questo gruppo");

No space found after comma in function call
Open

define("_AM_MEMBERS","Membri");

No space found after comma in function call
Open

define("_AM_CBLEFT","Blocco centrale - Sinistra");

No space found after comma in function call
Open

define("_AM_CBBOTTOMLEFT","Blocco centrale - Basso sinistra");

No space found after comma in function call
Open

define("_AM_MODIFY","Modifica");

No space found after comma in function call
Open

define("_AM_SBLEFT","Bocco laterale - Sinistra");

No space found after comma in function call
Open

define("_AM_GROUPMANAGER_PERM","Pu&ograve; cambiare i permessi di questi gruppi");

No space found after comma in function call
Open

define("_AM_CBBOTTOMRIGHT_ADMIN","Blocco centrale amm. - Basso Destra");

No space found after comma in function call
Open

define("_AM_CBRIGHT_ADMIN","Blocco centrale amm. - Destra");

No space found after comma in function call
Open

define("_AM_NAME","Nome");

No space found after comma in function call
Open

define("_AM_ACTIVERIGHTS","Permessi di amministrazione moduli");

No space found after comma in function call
Open

define("_AM_CBRIGHT","Blocco centrale - Destra");

There are no issues that match your filters.

Category
Status