jhuesser/bzu-jodel-clone

View on GitHub
config.php

Summary

Maintainability
C
1 day
Test Coverage

Showing 4 of 4 total issues

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

'mod' => array(
'delete_posts' => false,
'mod_posts' => true,
'delete_users' => false,
'reset_paswd' => false,
Severity: Major
Found in config.php and 3 other locations - About 2 hrs to fix
config.php on lines 81..98
config.php on lines 100..118
config.php on lines 140..158

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

'superadmin' => array(
'delete_posts' => true,
'mod_posts' => true,
'delete_users' => true,
'reset_paswd' => true,
Severity: Major
Found in config.php and 3 other locations - About 2 hrs to fix
config.php on lines 100..118
config.php on lines 120..138
config.php on lines 140..158

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

'admin' => array(
'delete_posts' => true,
'mod_posts' => true,
'delete_users' => false,
'reset_paswd' => true,
Severity: Major
Found in config.php and 3 other locations - About 2 hrs to fix
config.php on lines 81..98
config.php on lines 120..138
config.php on lines 140..158

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

'user' => array(
'delete_posts' => false,
'mod_posts' => false,
'delete_users' => false,
'reset_paswd' => false,
Severity: Major
Found in config.php and 3 other locations - About 2 hrs to fix
config.php on lines 81..98
config.php on lines 100..118
config.php on lines 120..138
Category
Status