Admidio/admidio

View on GitHub
adm_program/modules/messages/messages_write.php

Summary

Maintainability
C
1 day
Test Coverage

File messages_write.php has 512 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 ***********************************************************************************************
 * messages form page
 *
Severity: Major
Found in adm_program/modules/messages/messages_write.php - About 1 day to fix

    Avoid deeply nested control flow statements.
    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'));
    Severity: Major
    Found in adm_program/modules/messages/messages_write.php - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status