XoopsModules25x/xfguestbook

View on GitHub
contact.php

Summary

Maintainability
A
0 mins
Test Coverage

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 64 and the first side effect is on line 30.
Open

<?php
Severity: Minor
Found in contact.php by phpcodesniffer

The CASE body must start on the line following the statement
Open

    case 'preview':
Severity: Minor
Found in contact.php by phpcodesniffer

The DEFAULT body must start on the line following the statement
Open

    default:
Severity: Minor
Found in contact.php by phpcodesniffer

Line exceeds 120 characters; contains 172 characters
Open

    echo '<table cellpadding="4" cellspacing="1" width="98%" class="outer"><tr><td class="head">' . $title . '</td></tr><tr><td><br>' . $content . '<br></td></tr></table>';
Severity: Minor
Found in contact.php by phpcodesniffer

Line exceeds 120 characters; contains 129 characters
Open

        $p_msg   = MD_XFGUESTBOOK_FROMUSER . " $name_user " . MD_XFGUESTBOOK_YOURMSG . ' ' . $xoopsConfig['sitename'] . ' :<br>';
Severity: Minor
Found in contact.php by phpcodesniffer

Line exceeds 120 characters; contains 133 characters
Open

        $fullmsg = MD_XFGUESTBOOK_FROMUSER . " $name_user " . MD_XFGUESTBOOK_YOURMSG . ' ' . $xoopsConfig['sitename'] . ' :<br><br>';
Severity: Minor
Found in contact.php by phpcodesniffer

Line exceeds 120 characters; contains 121 characters
Open

            $name_user  = ('' !== $xoopsUser->getVar('name')) ? $xoopsUser->getVar('name') : $xoopsUser->getVar('uname');
Severity: Minor
Found in contact.php by phpcodesniffer

There are no issues that match your filters.

Category
Status