XoopsModules25x/apcal

View on GitHub
language/italian/blocks.php

Summary

Maintainability
C
1 day
Test Coverage

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

<?php

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) || ! defined( 'APCAL_BL_LOADED' ) ) {


Severity: Major
Found in language/italian/blocks.php and 2 other locations - About 1 day to fix
language/nederlands/blocks.php on lines 1..44
language/portuguese/blocks.php on lines 1..45

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

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

Blank line found at end of control structure
Open


Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Space found before comma in function call
Open

define( 'APCAL_BL_LOADED' , 1 ) ;
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) || ! defined( 'APCAL_BL_LOADED' ) ) {
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Blank line found at start of control structure
Open

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) || ! defined( 'APCAL_BL_LOADED' ) ) {
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_PLUGINS','Active Plugins');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_MAXGIFSADAY','Max dotgifs per a day');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_JUSTONCEADAYAPLUGIN','Display just 1 gif per a day and per a plugin');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_PLUGINS_VALID','Valid Plugins');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_MAXITEMS','Mostra');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_CATSEL','Categoria');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_MONTH','Mese');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_UNTILDAYS','Fino a massimo %s giorni (0 significa in eterno)');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define( 'APCAL_BL_LOADED' , 1 ) ;
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_PLUGINS','Active Plugins');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_MAXITEMS','Mostra');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_NEXT_MONTH','Succ.');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define("_MB_APCAL_MAXNEWITEMS","Mostra");
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) || ! defined( 'APCAL_BL_LOADED' ) ) {
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) || ! defined( 'APCAL_BL_LOADED' ) ) {
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_JUSTONCEADAYAPLUGIN','Display just 1 gif per a day and per a plugin');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_PLUGINS_DESC','list the plugin\'s name separated with , (comma)');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_UNTILDAYS','Fino a massimo %s giorni (0 significa in eterno)');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_EVENTS_AFTER','Eventi dopo il %s');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_EVENTS_THEDAY','Eventi il %s');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_PLUGINS_VALID','Valid Plugins');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_MAXGIFSADAY','Max dotgifs per a day');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_PREV_MONTH','Prec.');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Expected 1 space after IF keyword; 0 found
Open

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) || ! defined( 'APCAL_BL_LOADED' ) ) {
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_YEAR','Anno');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_EVENTS_AFTER','Eventi dopo il %s');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define("_MB_APCAL_MAXNEWITEMS","Mostra");
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

define( 'APCAL_BL_LOADED' , 1 ) ;
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) || ! defined( 'APCAL_BL_LOADED' ) ) {
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_CATSELSUB','Mostra anche le sottocategorie');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_PREV_MONTH','Prec.');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_JUMP','Vai');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_JUMP','Vai');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) || ! defined( 'APCAL_BL_LOADED' ) ) {
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_CATSELSUB','Mostra anche le sottocategorie');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_CATSEL','Categoria');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

define( 'APCAL_BL_LOADED' , 1 ) ;
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_EVENTS_THEDAY','Eventi il %s');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

A closing tag is not permitted at the end of a PHP file
Open

?>
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) || ! defined( 'APCAL_BL_LOADED' ) ) {
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_PLUGINS_DESC','list the plugin\'s name separated with , (comma)');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_NEXT_MONTH','Succ.');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

No space found after comma in function call
Open

define('_MB_APCAL_YEAR','Anno');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 0
Open

define('_MB_APCAL_MONTH','Mese');
Severity: Minor
Found in language/italian/blocks.php by phpcodesniffer

There are no issues that match your filters.

Category
Status