features/contact/lib.php

Summary

Maintainability
A
0 mins
Test Coverage

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class Contact {
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

Opening brace of a class must be on the line after the definition
Open

class Contact {
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

Method name "Contact::get_url_for_user" is not in camel caps format
Open

    static function get_url_for_user($username, $config = null) {
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

Visibility must be declared on method "get_url_for_user"
Open

    static function get_url_for_user($username, $config = null) {
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

Visibility must be declared on method "get_email_for_user"
Open

    static function get_email_for_user($username, $config = null) {
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

Method name "Contact::get_email_for_user" is not in camel caps format
Open

    static function get_email_for_user($username, $config = null) {
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

Method name "Contact::get_html_for_user" is not in camel caps format
Open

    static function get_html_for_user($username, $config = null) {
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

Visibility must be declared on method "get_html_for_user"
Open

    static function get_html_for_user($username, $config = null) {
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

Opening brace should be on a new line
Open

    static function get_url_for_user($username, $config = null) {
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

Opening brace should be on a new line
Open

    static function get_email_for_user($username, $config = null) {
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

Opening brace should be on a new line
Open

    static function get_html_for_user($username, $config = null) {
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

Whitespace found at end of line
Open

     * @returns $email or null 
Severity: Minor
Found in features/contact/lib.php by phpcodesniffer

There are no issues that match your filters.

Category
Status