ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/language/english/blocks.php

Summary

Maintainability
D
2 days
Test Coverage

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

<?php
// $Id: blocks.php 9349 2009-09-06 19:25:40Z Phoenyx $
// Blocks
define("_MB_SYSTEM_ADMENU","Administration Menu");
define("_MB_SYSTEM_RNOW","Register now!");
Severity: Major
Found in htdocs/modules/system/language/english/blocks.php and 2 other locations - About 2 days to fix
htdocs/modules/system/language/francais/blocks.php on lines 1..60
htdocs/modules/system/language/nederlands/blocks.php on lines 1..60

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

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("_MB_SYSTEM_DISPLAYA","Display member avatars");

No space found after comma in function call
Open

define("_MB_SYSTEM_DISPLAYTOT","Display total members information?");

No space found after comma in function call
Open

define("_MB_SYSTEM_SADMIN","Show admin groups");

No space found after comma in function call
Open

define("_MB_SYSTEM_NOWAITING_DISPLAY","Always displayed");

No space found after comma in function call
Open

define("_MB_SYSTEM_HOME","Home"); // link to home page in main menu block

No space found after comma in function call
Open

define("_MB_SYSTEM_LPASS","Lost Password?");

No space found after comma in function call
Open

define("_MB_SYSTEM_SEARCH","Search");

No space found after comma in function call
Open

define("_MB_SYSTEM_PWHEIGHT","Pop-Up Window Height");

No space found after comma in function call
Open

define("_MB_SYSTEM_DISPLAY","Display %s members");

No space found after comma in function call
Open

define("_MB_SYSTEM_LOUT","Logout");

No space found after comma in function call
Open

define("_MB_SYSTEM_EACNT","Edit Account");

No space found after comma in function call
Open

define("_MB_SYSTEM_NODISPGR","Do not display users whose rank is:");

No space found after comma in function call
Open

define("_MB_SYSTEM_PWWIDTH","Pop-Up Window Width");

No space found after comma in function call
Open

define("_MB_SYSTEM_DISPLAYC","Display %s comments");

No space found after comma in function call
Open

define("_MB_SYSTEM_INBOX","Inbox");

No space found after comma in function call
Open

define("_MB_SYSTEM_SQL_CACHE","SQL cache");

No space found after comma in function call
Open

define("_MB_SYSTEM_RNOW","Register now!");

No space found after comma in function call
Open

define("_MB_SYSTEM_VACNT","View Account");

No space found after comma in function call
Open

define("_MB_SYSTEM_ADMENU","Administration Menu");

No space found after comma in function call
Open

define("_MB_SYSTEM_RECO","Recommend Us");

No space found after comma in function call
Open

define("_MB_SYSTEM_ADVS","Advanced Search");

No space found after comma in function call
Open

define("_MB_SYSTEM_LOGO","Logo image file under %s directory");  // %s is your root image directory name

There are no issues that match your filters.

Category
Status