mambax7/adslight

View on GitHub
contact.php

Summary

Maintainability
A
0 mins
Test Coverage

There must be one USE keyword per declaration
Open

use XoopsModules\Adslight\{
Severity: Minor
Found in contact.php by phpcodesniffer

Line exceeds 120 characters; contains 157 characters
Open

        $mail->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/');
Severity: Minor
Found in contact.php by phpcodesniffer

Line exceeds 120 characters; contains 169 characters
Open

    $sql    = 'SELECT email, submitter, title, type, desctext, price, typeprice FROM  ' . $xoopsDB->prefix('adslight_listing') . ' WHERE lid = ' . $xoopsDB->escape($id);
Severity: Minor
Found in contact.php by phpcodesniffer

Line exceeds 120 characters; contains 226 characters
Open

        $sql = 'INSERT INTO ' . $xoopsDB->prefix('adslight_replies') . " values ('','{$id}', '{$title}', '{$date_created}', '{$namep}', '{$messtext}', '{$tele}', '" . Request::getString('post', '', 'POST') . "', '{$r_usid}')";
Severity: Minor
Found in contact.php by phpcodesniffer

Line exceeds 120 characters; contains 148 characters
Open

        $tags['POST']        = '<a href="mailto:' . Request::getString('post', '', 'POST') . '">' . Request::getString('post', '', 'POST') . '</a>';
Severity: Minor
Found in contact.php by phpcodesniffer

Line exceeds 120 characters; contains 259 characters
Open

        $tags['LINK_URL']    = '<a href="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/viewads.php?lid=' . addslashes($id) . '">' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/viewads.php?lid=' . addslashes($id) . '</a>';
Severity: Minor
Found in contact.php by phpcodesniffer

Line exceeds 120 characters; contains 192 characters
Open

        $sql = 'INSERT INTO ' . $xoopsDB->prefix('adslight_ip_log') . " values ( '', '{$lid}', '{$date_created}', '{$namep}', '{$ipnumber}', '" . Request::getString('post', '', 'POST') . "')";
Severity: Minor
Found in contact.php by phpcodesniffer

There are no issues that match your filters.

Category
Status