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
- Read upRead up
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
No space found after comma in function call Open
define("_AM_UNEED2ENTER","E' necessario riempire i campi obbligatori!");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBLEFT_ADMIN","Blocco centrale amm. - Sinistra");
- Exclude checks
No space found after comma in function call Open
define("_AM_CREATENEWADG","Crea un nuovo gruppo");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBCENTER_ADMIN","Blocco centrale amm. - Centro");
- Exclude checks
No space found after comma in function call Open
define("_AM_AREUSUREDEL","Sei certo di voler eliminare questo gruppo?");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBCENTER","Blocco centrale - Centro");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOM","Blocco centrale - Basso centro");
- Exclude checks
No space found after comma in function call Open
define("_AM_ACCESSRIGHTS","Permessi di accesso al modulo");
- Exclude checks
No space found after comma in function call Open
define("_AM_UPDATEADG","Aggiorna Gruppo");
- Exclude checks
No space found after comma in function call Open
define("_AM_SBRIGHT","Blocco laterale - Destra");
- Exclude checks
No space found after comma in function call Open
define("_AM_EDPERM","Può usare l'editor WYSIWYG nei seguenti moduli");
- Exclude checks
No space found after comma in function call Open
define("_AM_SBRIGHT_ADMIN","Blocco laterale amm. - Destra");
- Exclude checks
No space found after comma in function call Open
define("_AM_INDICATES","* indica i campi obbligatori");
- Exclude checks
No space found after comma in function call Open
define("_AM_MODIFYADG","Modifica Gruppo");
- Exclude checks
No space found after comma in function call Open
define("_AM_BLOCKRIGHTS","Permessi di visualizzazione dei blocchi");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOM_ADMIN","Blocco centrale amm. - Basso");
- Exclude checks
No space found after comma in function call Open
define("_AM_ADDBUTTON"," aggiungi --> ");
- Exclude checks
No space found after comma in function call Open
define("_AM_SYSTEMRIGHTS","Permessi di amministrazione del sistema");
- Exclude checks
No space found after comma in function call Open
define("_AM_NO","No");
- Exclude checks
No space found after comma in function call Open
define("_AM_DBUPDATED","Database aggiornato con successo!");
- Exclude checks
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.");
- Exclude checks
No space found after comma in function call Open
define("_AM_DELETEADG","Elimina Gruppo");
- Exclude checks
No space found after comma in function call Open
define("_AM_NONMEMBERS","Non-membri");
- Exclude checks
No space found after comma in function call Open
define("_AM_SBLEFT_ADMIN","Blocco laterale amm. - Sinistra");
- Exclude checks
No space found after comma in function call Open
define("_AM_EDITADG","Amministrazione Gruppi");
- Exclude checks
No space found after comma in function call Open
define("_AM_DESCRIPTION","Descrizione");
- Exclude checks
No space found after comma in function call Open
define("_AM_DELETE","Elimina");
- Exclude checks
No space found after comma in function call Open
define("_AM_DELBUTTON"," <-- rimuovi");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOMRIGHT","Blocco centrale - Basso destra");
- Exclude checks
No space found after comma in function call Open
define("_AM_DEBUG_PERM","Può vedere il Debug PHP nei seguenti moduli");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOMLEFT_ADMIN","Blocco centrale amm. - Basso Sinistra");
- Exclude checks
No space found after comma in function call Open
define("_AM_YES","Sì");
- Exclude checks
No space found after comma in function call Open
define("_AM_EDITMEMBER","Modifica i membri di questo gruppo");
- Exclude checks
No space found after comma in function call Open
define("_AM_MEMBERS","Membri");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBLEFT","Blocco centrale - Sinistra");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOMLEFT","Blocco centrale - Basso sinistra");
- Exclude checks
No space found after comma in function call Open
define("_AM_MODIFY","Modifica");
- Exclude checks
No space found after comma in function call Open
define("_AM_SBLEFT","Bocco laterale - Sinistra");
- Exclude checks
No space found after comma in function call Open
define("_AM_GROUPMANAGER_PERM","Può cambiare i permessi di questi gruppi");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOMRIGHT_ADMIN","Blocco centrale amm. - Basso Destra");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBRIGHT_ADMIN","Blocco centrale amm. - Destra");
- Exclude checks
No space found after comma in function call Open
define("_AM_NAME","Nome");
- Exclude checks
No space found after comma in function call Open
define("_AM_ACTIVERIGHTS","Permessi di amministrazione moduli");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBRIGHT","Blocco centrale - Destra");
- Exclude checks