chamilo/chamilo-lms

View on GitHub
public/main/ticket/ticket_details.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '447', column '17').
Open

    $form = new FormValidator(
Severity: Minor
Found in public/main/ticket/ticket_details.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Variable "ticket_id" is not in valid camel caps format
Open

                    $ticket_id,

Variable "file_attachments" is not in valid camel caps format
Open

        $file_attachments = $_FILES;

Variable "ticket_id" is not in valid camel caps format
Open

        header('Location:'.api_get_self().'?ticket_id='.$ticket_id);

Variable "ticket_id" is not in valid camel caps format
Open

            $ticket_id,

Multi-line function call not indented correctly; expected 4 spaces but found 8
Open

        'If you are certain, the ticket will be closed.'

Variable "ticket_id" is not in valid camel caps format
Open

                $ticket_id,

Variable "user_id" is not in valid camel caps format
Open

    TicketManager::close_ticket($ticket_id, $user_id);

Variable "file_attachments" is not in valid camel caps format
Open

            $file_attachments,

Variable "ticket_id" is not in valid camel caps format
Open

$ticket_id = (int) $_REQUEST['ticket_id'];

Variable "ticket_id" is not in valid camel caps format
Open

        $ticket_id = (int) $_POST['ticket_id'];

Variable "user_id" is not in valid camel caps format
Open

    == $user_id

Variable "user_id" is not in valid camel caps format
Open

            $user_id,

Variable "ticket_id" is not in valid camel caps format
Open

    TicketManager::close_ticket($ticket_id, $user_id);

Consider putting global function "getForm" in a static class
Open

function getForm($ticket)

Variable "ticket_id" is not in valid camel caps format
Open

    $counterLink = Display::url('#'.$counter, api_get_self().'?ticket_id='.$ticket_id.'#note-'.$counter);

Variable "ticket_id" is not in valid camel caps format
Open

            $ticket_id,

Variable "user_id" is not in valid camel caps format
Open

$user_id = api_get_user_id();

Multi-line function call not indented correctly; expected 0 spaces but found 4
Open

    ).'")){

Variable "user_id" is not in valid camel caps format
Open

$allowEdition = $ticket['ticket']['assigned_last_user'] == $user_id

Variable "ticket_id" is not in valid camel caps format
Open

$ticket = TicketManager::get_ticket_detail_by_id($ticket_id);

Multi-line function call not indented correctly; expected 4 spaces but found 8
Open

        'If you are certain, the ticket will be closed.'

Multi-line function call not indented correctly; expected 0 spaces but found 4
Open

    ).'")){

There are no issues that match your filters.

Category
Status