adm_program/modules/messages/messages_write.php
File messages_write.php
has 512 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
***********************************************************************************************
* messages form page
*
Avoid deeply nested control flow statements. Open
Open
if ($row['mem_begin'] <= DATE_NOW && $row['mem_end'] >= DATE_NOW) {
$activeList[] = array($row['usr_uuid'], $row['last_name'] . ' ' . $row['first_name'], $gL10n->get('SYS_ACTIVE_MEMBERS'));
$currentUserId = $row['usr_uuid'];
} elseif ($gSettingsManager->getBool('mail_show_former')) {
$passiveList[] = array($row['usr_uuid'], $row['last_name'] . ' ' . $row['first_name'], $gL10n->get('SYS_FORMER_MEMBERS'));