qcminecraft/Carbon-Forum-F

View on GitHub
service/inbox.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method CreateMessage has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function CreateMessage($DialogInfo, $Content)
{
    global $DB, $CurUserID, $TimeStamp;
    if (empty($CurUserID) || empty($DialogInfo) || empty($Content)) {
        return false;
Severity: Major
Found in service/inbox.php - About 2 hrs to fix

    Method GetInboxID has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function GetInboxID($ReceiverName)
    {
        global $DB, $CurUserID, $CurUserName, $TimeStamp;
        if (empty($CurUserID) || empty($ReceiverName)) {
            return 0;
    Severity: Minor
    Found in service/inbox.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status