e107inc/e107

View on GitHub
contact.php

Summary

Maintainability
A
0 mins
Test Coverage
F
31%

Returning type null but renderContactInfo() is declared to return string
Open

        return e107::getRender()->tablerender(LAN_CONTACT_01, $text, "contact-info", true);
Severity: Minor
Found in contact.php by phan

Method \contact_front::processFormSubmit is declared to return array but has no return value
Open

    private function processFormSubmit()
Severity: Minor
Found in contact.php by phan

Saw an @param annotation for sql, but the param list of function processFormSubmit() : array is empty
Open

     * @param $sql
Severity: Info
Found in contact.php by phan

Argument 3 (default) is '' but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

        $contact_filter = e107::pref('core', 'contact_filter', '');
Severity: Minor
Found in contact.php by phan

Argument 4 (to_name) is false|int but \sendemail() takes string defined at /code/e107_handlers/mail.php:1498
Open

                sendemail($sender, "[" . SITENAME . "] " . $subject, $body, ADMIN, $sender, $sender_name);
Severity: Minor
Found in contact.php by phan

There are no issues that match your filters.

Category
Status