TODO found Open
* TODO: Add the rest of the fields, are added only the ones wich are shown.
- Exclude checks
Similar blocks of code found in 3 locations. Consider refactoring. Open
<?php
// $Id: blocksadmin.php 8889 2009-06-19 14:38:08Z pesianstranger $
//%%%%%% Admin Module Name Blocks %%%%%
if(!defined('_AM_DBUPDATED')){if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}}
- 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 1368.
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_LISTBLOCK","Toon alle blokken");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBCENTER_ADMIN","Administratie centrum blok - Midden");
- Exclude checks
No space found after comma in function call Open
define("_AM_BLKDESC","Blok omschrijving");
- Exclude checks
No space found after comma in function call Open
define("_AM_RIGHT","Rechts");
- Exclude checks
No space found after comma in function call Open
define("_AM_OPTIONS","Opties");
- Exclude checks
No space found after comma in function call Open
define("_AM_CUSTOMPHP","Standaard blok (PHP)");
- Exclude checks
No space found after comma in function call Open
define("_AM_CUSTOMSMILE","Standaard blok (auto format + smilies)");
- Exclude checks
Expected 1 newline at end of file; 0 found Open
?>
- Exclude checks
Closing brace must be on a line by itself Open
if(!defined('_AM_DBUPDATED')){if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}}
- Exclude checks
No space found after comma in function call Open
define("_AM_ABOVEORG","Boven de originele inhoud");
- Exclude checks
No space found after comma in function call Open
define("_AM_AFNOSMILE","Auto format (smilies uitgeschakeld)");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOMLEFT_ADMIN","Administratie centrum blok - Linksonder");
- Exclude checks
No space found after comma in function call Open
define("_AM_ADDBLOCK","Nieuwe blok toevoegen");
- Exclude checks
No space found after comma in function call Open
define("_AM_SBLEFT","Zijblok - links");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOM","Middenblok - onder");
- Exclude checks
No space found after comma in function call Open
define("_AM_SBLEFT_ADMIN","Administratie zijde blok - Links");
- Exclude checks
Newline required after opening brace Open
if(!defined('_AM_DBUPDATED')){if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}}
- Exclude checks
No space found after comma in function call Open
define('_AM_BPADMIN',"Blokken positie beheer");
- Exclude checks
No space found after comma in function call Open
define("_AM_AFWSMILE","Auto format (smilies ingeschakeld)");
- Exclude checks
No space found after comma in function call Open
define("_AM_EDITBLOCK","Bewerk een blok");
- Exclude checks
No space found after comma in function call Open
define("_AM_MODULECANT","Deactiveer eerst de module om het blok te kunnen verwijderen.");
- Exclude checks
No space found after comma in function call Open
define("_AM_NAME","Naam");
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
if(!defined('_AM_DBUPDATED')){if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}}
- Exclude checks
No space found after comma in function call Open
define("_AM_LEFT","Links");
- Exclude checks
No space found after comma in function call Open
define("_AM_POSCONTT","Positie van de ingevoegde inhoud");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBLEFT","Middenblok - links");
- Exclude checks
No space found after comma in function call Open
define("_AM_DISPRIGHT","Alleen rechterblokken tonen");
- Exclude checks
No space found after comma in function call Open
define("_AM_SAVECHANGES","Wijzigingen opslaan");
- Exclude checks
No space found after comma in function call Open
define("_AM_USEFULTAGS","Handige tags:");
- Exclude checks
No space found after comma in function call Open
define("_AM_ACTION","Actie");
- Exclude checks
No space found after comma in function call Open
define("_AM_VISIBLE","Zichtbaar");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBRIGHT","Middenblok - rechts");
- Exclude checks
No space found after comma in function call Open
define("_AM_SUBMIT","Toevoegen");
- Exclude checks
No space found after comma in function call Open
define("_AM_SYSTEMCANT","Systeemblokken kunnen niet worden verwijderd!");
- Exclude checks
Newline required after opening brace Open
if(!defined('_AM_DBUPDATED')){if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}}
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
if(!defined('_AM_DBUPDATED')){if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}}
- Exclude checks
No space found after comma in function call Open
if(!defined('_AM_DBUPDATED')){if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}}
- Exclude checks
Closing brace must be on a line by itself Open
if(!defined('_AM_DBUPDATED')){if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}}
- Exclude checks
No space found after comma in function call Open
define("_AM_BADMIN","Blokken beheer");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOMLEFT","Middenblok - linksonder");
- Exclude checks
No space found after comma in function call Open
define("_AM_PHP","PHP script");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOMRIGHT_ADMIN","Administratie centrum blok - Rechtsonder");
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if(!defined('_AM_DBUPDATED')){if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}}
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if(!defined('_AM_DBUPDATED')){if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}}
- Exclude checks
No space found after comma in function call Open
define("_AM_AFTERORG","Onder de originele inhoud");
- Exclude checks
No space found after comma in function call Open
define("_AM_EDIT","Bewerken");
- Exclude checks
No space found after comma in function call Open
define("_AM_HTML","HTML");
- Exclude checks
No space found after comma in function call Open
define("_AM_CUSTOMHTML","Standaard blok (HTML)");
- Exclude checks
No space found after comma in function call Open
define('_AM_BLOCKS_PERMGROUPS','Groups allowed to view this block');
- Exclude checks
No space found after comma in function call Open
define("_AM_SBRIGHT_ADMIN","Administratie zijde blok - Rechts");
- Exclude checks
No space found after comma in function call Open
define("_AM_SBRIGHT","Zijblok - rechts");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBCENTER","Middenblok - midden");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOMRIGHT","Middenblok - rechtsonder");
- Exclude checks
No space found after comma in function call Open
define("_AM_CONTENT","Inhoud");
- Exclude checks
No space found after comma in function call Open
define("_AM_CUSTOMNOSMILE","Standaard blok (auto format)");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBBOTTOM_ADMIN","Administratie centrum blok - Onder");
- Exclude checks
No space found after comma in function call Open
define("_AM_TITLE","Titel");
- Exclude checks
No space found after comma in function call Open
define("_AM_BLKTYPE","Positie");
- Exclude checks
No space found after comma in function call Open
define("_AM_DELETE","Verwijderen");
- Exclude checks
No space found after comma in function call Open
define("_AM_CTYPE","Type inhoud");
- Exclude checks
No space found after comma in function call Open
define("_AM_RUSUREDEL","Weet u zeker dat het blok <b>%s</b> moet worden verwijderd?");
- Exclude checks
No space found after comma in function call Open
define("_AM_BLOCKTAG1","%s zal %s tonen");
- Exclude checks
No space found after comma in function call Open
define("_AM_WEIGHT","Gewicht");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBLEFT_ADMIN","Administratie centrum blok - Links");
- Exclude checks
A closing tag is not permitted at the end of a PHP file Open
?>
- Exclude checks
No space found after comma in function call Open
define("_AM_SIDE","Positie");
- Exclude checks
No space found after comma in function call Open
define("_AM_CENTER","Midden");
- Exclude checks
No space found after comma in function call Open
define("_AM_CBRIGHT_ADMIN","Administratie centrum blok - Rechts");
- Exclude checks