features/links/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 Links {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Visibility must be declared on method "undelete_forum_links_for_event"
Open

    static function undelete_forum_links_for_event($event_id, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Visibility must be declared on method "get_forum_link"
Open

    static function get_forum_link($theid, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Method name "Links::get_forum_link" is not in camel caps format
Open

    static function get_forum_link($theid, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Method name "Links::get_forum_links_for_event" is not in camel caps format
Open

    static function get_forum_links_for_event($event_id, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Visibility must be declared on method "delete_forum_links_for_event"
Open

    static function delete_forum_links_for_event($event_id, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Visibility must be declared on method "delete_forum_link"
Open

    static function delete_forum_link($theid, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Method name "Links::save_forum_links" is not in camel caps format
Open

    static function save_forum_links($forum_links, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Method name "Links::undelete_forum_links_for_event" is not in camel caps format
Open

    static function undelete_forum_links_for_event($event_id, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Visibility must be declared on method "save_forum_links"
Open

    static function save_forum_links($forum_links, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

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

class Links {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Visibility must be declared on method "get_forum_links_for_event"
Open

    static function get_forum_links_for_event($event_id, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Method name "Links::delete_forum_links_for_event" is not in camel caps format
Open

    static function delete_forum_links_for_event($event_id, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Method name "Links::delete_forum_link" is not in camel caps format
Open

    static function delete_forum_link($theid, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Opening brace should be on a new line
Open

    static function get_forum_link($theid, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Opening brace should be on a new line
Open

    static function delete_forum_links_for_event($event_id, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Opening brace should be on a new line
Open

    static function get_forum_links_for_event($event_id, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Opening brace should be on a new line
Open

    static function save_forum_links($forum_links, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 10
Open

          $forum = Persistence::save_forum($forum_links, $conn);
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Opening brace should be on a new line
Open

    static function delete_forum_link($theid, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Opening brace should be on a new line
Open

    static function undelete_forum_links_for_event($event_id, $conn = null) {
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 10
Open

          return array("status" => self::ERROR, "error" => $e->getMessage());
Severity: Minor
Found in features/links/lib.php by phpcodesniffer

There are no issues that match your filters.

Category
Status