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
- 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 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
- 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_YES","Sì");
- Exclude checks
No space found after comma in function call Open
define("_AM_AVATAR","Avatar");
- Exclude checks
No space found after comma in function call Open
define("_AM_USERID","ID utente");
- Exclude checks
No space found after comma in function call Open
define("_AM_LIST","Elenca");
- Exclude checks
No space found after comma in function call Open
define("_AM_AYSYWTDU","Sei certo di voler eliminare l'utente %s?");
- Exclude checks
No space found after comma in function call Open
define("_AM_DELUSER","Elimina Utente");
- Exclude checks
No space found after comma in function call Open
define("_AM_AOUTVTEAD","Consenti ad altri utenti di visualizzare questo indirizzo email?");
- Exclude checks
No space found after comma in function call Open
define("_AM_INDICATECOF","* campi obbligatori");
- Exclude checks
No space found after comma in function call Open
define("_AM_USERPOST","Messaggi utente");
- Exclude checks
No space found after comma in function call Open
define('_AM_BADPWD','Password scadente. La password non può contenere il nome utente.');
- Exclude checks
No space found after comma in function call Open
define("_AM_REMOVED_USERS","Utenti rimossi");
- Exclude checks
No space found after comma in function call Open
define("_AM_USERS_DELETEED","eliminato");
- Exclude checks
No space found after comma in function call Open
define("_AM_MODIFYUSER","Modifica Utente");
- Exclude checks
No space found after comma in function call Open
define("_AM_GO","Vai!");
- Exclude checks
No space found after comma in function call Open
define("_AM_EMAIL","Indirizzo email");
- Exclude checks
No space found after comma in function call Open
define("_AM_YIM","YIM");
- Exclude checks
No space found after comma in function call Open
define("_AM_USERINFO","Dati utente");
- Exclude checks
No space found after comma in function call Open
define("_AM_ACCESSLEV","Livello di accesso");
- Exclude checks
No space found after comma in function call Open
define("_AM_CNGTCOM","Impossibile ottenere il numero totale dei commenti");
- Exclude checks
No space found after comma in function call Open
define("_AM_UPDATEUSER","Utente modificato");
- Exclude checks
No space found after comma in function call Open
define("_AM_CNRNU2","Impossibile aggiungere il nuovo utente al gruppo: %s.");
- Exclude checks
No space found after comma in function call Open
define("_AM_STORIES","Articoli");
- Exclude checks
No space found after comma in function call Open
define("_AM_CNUUSER","Impossibile aggiornare il profilo dell'utente");
- Exclude checks
No space found after comma in function call Open
define("_AM_YMCACF","Devi compilare tutti i campi obbligatori!");
- 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_INTEREST","Interessi");
- Exclude checks
No space found after comma in function call Open
define("_AM_NSRA","Nessun livello speciale assegnato");
- Exclude checks
No space found after comma in function call Open
define("_AM_COMMENTS","Commenti");
- Exclude checks
No space found after comma in function call Open
define("_AM_CNGUSERID","Impossibile ottenere l'ID dell'utente");
- Exclude checks
No space found after comma in function call Open
define("_AM_BYTHIS","Con questa operazione anche tutti i dati relativi all'utente verranno definitivamente cancellati.");
- Exclude checks
No space found after comma in function call Open
define("_AM_NICKNAME","Nick");
- Exclude checks
No space found after comma in function call Open
define("_AM_LOCATION","Località");
- Exclude checks
No space found after comma in function call Open
define("_AM_SYNCHRONIZE","Sincronizza");
- Exclude checks
No space found after comma in function call Open
define("_AM_USERDONEXIT","L'utente non esiste!");
- Exclude checks
No space found after comma in function call Open
define("_AM_ADMIN_CAN_NOT_BE_DELETEED","L'utente amministrativo non può essere rimosso");
- Exclude checks
No space found after comma in function call Open
define("_AM_ALREADY_EXISTS","esiste gia");
- 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_CNRNU","Impossibile registrare il nuovo utente.");
- Exclude checks
No space found after comma in function call Open
define("_AM_URL","Sito web");
- Exclude checks
No space found after comma in function call Open
define("_AM_PASSWORD","Password");
- Exclude checks
No space found after comma in function call Open
define("_AM_RETYPEPD","Re-inserisci la password");
- Exclude checks
No space found after comma in function call Open
define("_AM_CHANGEONLY","(solo per modificarla)");
- Exclude checks
No space found after comma in function call Open
define("_AM_COULD_NOT_DELETE","non è possibile eliminare");
- Exclude checks
No space found after comma in function call Open
define("_AM_A_USER_WITH_THIS_EMAIL_ADDRESS","Un utente con questo indirizzo email");
- Exclude checks
No space found after comma in function call Open
define("_AM_OCCUPATION","Occupazione");
- 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_PTBBTSDIYT","Premi il pulsante che segue per sincronizzare i dati se pensi che il numero dei messaggi inviati dall'utente non corrispondano al valore presente nel database.<br />");
- Exclude checks
No space found after comma in function call Open
define("_AM_STNPDNM","Spiacenti, le due password sono diverse. Torna indietro e riprova!");
- Exclude checks
No space found after comma in function call Open
define("_AM_ICQ","ICQ");
- Exclude checks
No space found after comma in function call Open
define("_AM_MSNM","MSNM");
- Exclude checks
No space found after comma in function call Open
define("_AM_RANK","Livello");
- Exclude checks
No space found after comma in function call Open
define("_AM_NSRID","Nessun livello speciale nel database");
- Exclude checks
No space found after comma in function call Open
define("_AM_SIGNATURE","Firma");
- Exclude checks
No space found after comma in function call Open
define("_AM_NOTACTIVE","Questo utente non è ancora stato attivato. Vuoi attivare l'account dell'utente?");
- Exclude checks
No space found after comma in function call Open
define("_AM_CNGTST","Impossibile ottenere il numero totale delle news");
- Exclude checks
No space found after comma in function call Open
define("_AM_EDEUSER","Modifica/Elimina Utenti");
- Exclude checks
No space found after comma in function call Open
define("_AM_AIM","AIM");
- Exclude checks
No space found after comma in function call Open
define("_AM_ADDUSER","Aggiungi Utente");
- Exclude checks
No space found after comma in function call Open
define("_AM_OPTION","Opzioni");
- Exclude checks
No space found after comma in function call Open
define("_AM_THEME","Tema");
- Exclude checks
No space found after comma in function call Open
define("_AM_LOGINNAME","Nome Login");
- Exclude checks