Showing 7 of 7 total issues
Function user_settings
has a Cognitive Complexity of 102 (exceeds 5 allowed). Consider refactoring. Open
function user_settings() { global $enable_tshirt_size, $tshirt_sizes, $themes, $locales; global $user; $msg = ""; $nick = $user['Nick'];
- Read upRead up
Method user_settings
has 318 lines of code (exceeds 25 allowed). Consider refactoring. Open
function user_settings() { global $enable_tshirt_size, $tshirt_sizes, $themes, $locales; global $user; $msg = ""; $nick = $user['Nick'];
File user_settings_controller.php
has 325 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?phpfunction settings_title() { return _("Settings");}function user_settings() {
Identical blocks of code found in 2 locations. Consider refactoring. Open
form(array( form_info(_("Here you can change your password.")), form_password('password', _("Old password:")), form_password('new_password', _("New password:")), form_password('new_password2', _("Password confirmation:")),
- Read upRead up
Identical blocks of code found in 2 locations. Consider refactoring. Open
form(array( form_info(_("Here you can change your password.")), form_password('password', _("Old password:")), form_password('new_password', _("New password:")), form_password('new_password2', _("Password confirmation:")),
- Read upRead up
Identical blocks of code found in 2 locations. Consider refactoring. Open
if (isset($_REQUEST['planned_arrival_date']) && DateTime::createFromFormat("Y-m-d", trim($_REQUEST['planned_arrival_date']))) { $planned_arrival_date = DateTime::createFromFormat("Y-m-d", trim($_REQUEST['planned_arrival_date']))->getTimestamp(); } else { $ok = false; $msg .= error(_("Please enter your planned date of arrival."), true);
- Read upRead up
Identical blocks of code found in 2 locations. Consider refactoring. Open
if (isset($_REQUEST['jabber']) && strlen(strip_request_item('jabber')) > 0) { $jabber = strip_request_item('jabber'); if (! check_email($jabber)) { $ok = false; $msg .= error(_("Please check your jabber account information."), true);
- Read upRead up