chamilo/chamilo-lms

View on GitHub
public/main/inc/lib/TicketManager.php

Summary

Maintainability
A
0 mins
Test Coverage

The method add() has an NPath complexity of 4518720. The configured NPath complexity threshold is 200.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

NPathComplexity

Since: 0.1

The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

Example

class Foo {
    function bar() {
        // lots of complicated code
    }
}

Source https://phpmd.org/rules/codesize.html#npathcomplexity

The method add has 15 parameters. Consider reducing the number of parameters to less than 10.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

The method export_tickets_by_user_id() has an NPath complexity of 995436. The configured NPath complexity threshold is 200.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

NPathComplexity

Since: 0.1

The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

Example

class Foo {
    function bar() {
        // lots of complicated code
    }
}

Source https://phpmd.org/rules/codesize.html#npathcomplexity

The method getTicketsByCurrentUser() has an NPath complexity of 23961600. The configured NPath complexity threshold is 200.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

NPathComplexity

Since: 0.1

The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

Example

class Foo {
    function bar() {
        // lots of complicated code
    }
}

Source https://phpmd.org/rules/codesize.html#npathcomplexity

The method getTotalTicketsCurrentUser() has an NPath complexity of 69120. The configured NPath complexity threshold is 200.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

NPathComplexity

Since: 0.1

The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

Example

class Foo {
    function bar() {
        // lots of complicated code
    }
}

Source https://phpmd.org/rules/codesize.html#npathcomplexity

The method deleteUserFromTicketSystem() has an NPath complexity of 256. The configured NPath complexity threshold is 200.
Open

    public static function deleteUserFromTicketSystem($userId)
    {
        $userId = (int) $userId;
        $schema = Database::getManager()->getConnection()->createSchemaManager();

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

NPathComplexity

Since: 0.1

The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

Example

class Foo {
    function bar() {
        // lots of complicated code
    }
}

Source https://phpmd.org/rules/codesize.html#npathcomplexity

Avoid using undefined variables such as '$tickets' which will lead to PHP notices.
Open

            $tickets[] = $row;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$tickets' which will lead to PHP notices.
Open

        $tickets[0] = [
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$tickets' which will lead to PHP notices.
Open

        return $tickets;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

The class TicketManager has a coupling between objects value of 22. Consider to reduce the number of dependencies under 13.
Open

class TicketManager
{
    public const PRIORITY_NORMAL = 'NRM';
    public const PRIORITY_HIGH = 'HGH';
    public const PRIORITY_LOW = 'LOW';
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CouplingBetweenObjects

Since: 1.1.0

A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

Example

class Foo {
    /**
     * @var \foo\bar\X
     */
    private $x = null;

    /**
     * @var \foo\bar\Y
     */
    private $y = null;

    /**
     * @var \foo\bar\Z
     */
    private $z = null;

    public function setFoo(\Foo $foo) {}
    public function setBar(\Bar $bar) {}
    public function setBaz(\Baz $baz) {}

    /**
     * @return \SplObjectStorage
     * @throws \OutOfRangeException
     * @throws \InvalidArgumentException
     * @throws \ErrorException
     */
    public function process(\Iterator $it) {}

    // ...
}

Source https://phpmd.org/rules/design.html#couplingbetweenobjects

Missing class import via use statement (line '2055', column '21').
Open

        $form = new FormValidator('project', 'post', $url);
Severity: Minor
Found in public/main/inc/lib/TicketManager.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

Missing class import via use statement (line '1864', column '21').
Open

        $form = new FormValidator('category', 'post', $url);
Severity: Minor
Found in public/main/inc/lib/TicketManager.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

Missing class import via use statement (line '2173', column '21').
Open

        $form = new FormValidator('status', 'post', $url);
Severity: Minor
Found in public/main/inc/lib/TicketManager.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

Missing class import via use statement (line '2029', column '43').
Open

        $project->setLastEditDateTime(new DateTime($params['sys_lastedit_datetime']));
Severity: Minor
Found in public/main/inc/lib/TicketManager.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

Missing class import via use statement (line '2277', column '21').
Open

        $form = new FormValidator('priority', 'post', $url);
Severity: Minor
Found in public/main/inc/lib/TicketManager.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

The method add uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                        } else {
                            Display::addFlash(Display::return_message($subject));
                        }
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method update_message_status uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $sql .= " AND sys_insert_user_id != '$userId'";
        }
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method insertMessage uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        if (UPLOAD_ERR_NO_FILE != $file_attach['error']) {
                            return false;
                        }
                    }
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method getTicketsByCurrentUser uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                if (self::STATUS_FORWARDED !== $row['status_id']) {
                    $row['assigned_last_user'] = '<span style="color:#ff0000;">'.get_lang('To be assigned').'</span>';
                } else {
                    $row['assigned_last_user'] = '<span style="color:#00ff00;">'.get_lang('Message resent').'</span>';
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method assignTicketToUser uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            return false;
        }
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method sendNotification uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            // Send to assigned user and to author
            if ($requestUserInfo && $currentUserId != $requestUserInfo['id']) {
                MessageManager::send_message_simple(
                    $requestUserInfo['id'],
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method getNumberOfMessages uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $sql .= " AND user_id NOT IN (SELECT user_id FROM $table_main_admin)
                      AND ticket.status_id != '".self::STATUS_FORWARDED."'";
        }
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method add uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $categoryInfo = self::getCategory($category_id);
                $usersInCategory = self::getUsersInCategory($category_id);
                $message = '<h2>'.get_lang('Ticket info').'</h2><br />'.$helpDeskMessage;

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method getTicketsByCurrentUser uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    $row['assigned_last_user'] = '<span style="color:#00ff00;">'.get_lang('Message resent').'</span>';
                }
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method getTicketsByCurrentUser uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    $row['assigned_last_user'] = get_lang('Unknown user');
                }
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method get_assign_log uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $row['assignuser'] = get_lang('Unassign');
            }
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method getTicketsByCurrentUser uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $ticket = [
                    $icon.' '.Security::remove_XSS($row['subject']),
                    $row['status_title'],
                    $row['start_date'],
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method getTotalTicketsCurrentUser uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            if (!api_is_platform_admin()) {
                $sql .= " AND (ticket.assigned_last_user = $userId OR ticket.sys_insert_user_id = $userId )";
            }
        }
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method export_tickets_by_user_id uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                if ('no' == $keyword_unread) {
                    $sql .= " AND ticket.id NOT IN (
                              SELECT ticket.id
                              FROM  $table_support_tickets ticket,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

Avoid unused local variables such as '$attachment'.
Open

            foreach ($attachments as $attachment) {
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid unused parameters such as '$column'.
Open

        $column,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

The parameter $course_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $other_area is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $category_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $project_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $status_id is not named in camelCase.
Open

    public static function update_ticket_status(
        $status_id,
        $ticketId,
        $userId
    ) {
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $number_of_items is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $number_of_items is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

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

        $project_id,

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

        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);

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

        if (!empty($course_id)) {

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

            $params['course_id'] = $course_id;

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

        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);

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

        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);

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

        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);

Method name "TicketManager::get_ticket_detail_by_id" is not in camel caps format
Open

    public static function get_ticket_detail_by_id($ticketId)

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

        $table_support_project = Database::get_main_table(TABLE_TICKET_PROJECT);

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

            $sql = "UPDATE $table_support_category

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

        $keyword_start_date_end = isset($_GET['keyword_start_date_end']) ? Database::escape_string(trim($_GET['keyword_start_date_end'])) : '';

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

        if ($keyword_range && '' != $keyword_start_date_start && '' != $keyword_start_date_end) {

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

        $table_support_status = Database::get_main_table(TABLE_TICKET_STATUS);

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

        $keyword_range = isset($_GET['keyword_dates']) ? Database::escape_string(trim($_GET['keyword_dates'])) : '';

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

                      AND DATE_FORMAT( ticket.start_date,'%d/%m/%Y') <= '$keyword_start_date_end'";

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

        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);

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

        $table_support_status = Database::get_main_table(TABLE_TICKET_STATUS);

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

        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);

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

                $table_support_category category

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

                INNER JOIN $table_support_project project

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

        $category_id,

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

        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);

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

        if ($keyword_range && '' != $keyword_start_date_start && '' != $keyword_start_date_end) {

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

                        title LIKE '%$keyword_course%' OR

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

                    $img_source = ObjectIcon::PHONE;

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

                $img_source,

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

                INNER JOIN $table_support_status status

Missing parameter name
Open

     * @param $column

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

        if (empty($category_id)) {

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

        $category_id = (int) $category_id;

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

        $category_id = (int) $category_id;

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

            'category_id' => $category_id,

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

        $ticketId = Database::insert($table_support_tickets, $params);

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

                        $ticket_code,

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

            INNER JOIN $table_support_status status

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

        $keyword_range = !empty($keyword_start_date_start) && !empty($keyword_start_date_end);

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

        $other_area,

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

                    $usersInCategory = self::getUsersInCategory($category_id);

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

        if (false == $keyword_range && '' != $keyword_start_date_start) {

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

            $sql .= " AND DATE_FORMAT(ticket.start_date,'%d/%m/%Y') >= '$keyword_start_date_start' ";

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

                INNER JOIN $table_support_category cat

Expected 7 spaces after parameter type; 1 found
Open

     * @param int $from

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

        $table_support_status = Database::get_main_table(TABLE_TICKET_STATUS);

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

            FROM $table_support_tickets ticket

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

        if (false == $keyword_range && '' != $keyword_start_date_start) {

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

        if ($keyword_range && '' != $keyword_start_date_start && '' != $keyword_start_date_end) {

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

        if ('' != $keyword_course) {

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

        if ($keyword_range && '' != $keyword_start_date_start && '' != $keyword_start_date_end) {

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

        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);

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

        $course_id = (int) $course_id;

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

        $project_id = (int) $project_id;

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

            $usersInCategory = self::getUsersInCategory($category_id);

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

        $messageId = Database::insert($table_support_messages, $params);

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

                    if (0 == $file_attach['error']) {

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

                        code LIKE '%$keyword_course%' OR

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

            $sql .= " AND DATE_FORMAT( ticket.start_date,'%d/%m/%Y') = '$keyword_start_date_start' ";

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

        if ($keyword_range && '' != $keyword_start_date_start && '' != $keyword_start_date_end) {

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

            $course_table = Database::get_main_table(TABLE_MAIN_COURSE);

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

        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);

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

        $keyword_start_date_start = isset($_GET['keyword_start_date_start']) ? Database::escape_string(trim($_GET['keyword_start_date_start'])) : '';

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

        $keyword_course = isset($_GET['keyword_course']) ? Database::escape_string(trim($_GET['keyword_course'])) : '';

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

            $course_table = Database::get_main_table(TABLE_MAIN_COURSE);

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

        $sql .= " LIMIT $from, $number_of_items";

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

                    $img_source = ObjectIcon::EMAIL;

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

        $keyword_start_date_start = isset($_GET['keyword_start_date_start']) ? Database::escape_string(trim($_GET['keyword_start_date_start'])) : '';

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

        if ($keyword_range && '' != $keyword_start_date_start && '' != $keyword_start_date_end) {

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

                            code LIKE '%$keyword_course%' OR

Method name "TicketManager::get_all_tickets_status" is not in camel caps format
Open

    public static function get_all_tickets_status()

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

            'project_id' => $project_id,

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

            INNER JOIN $table_support_priority priority

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

        $keyword_range = !empty($keyword_start_date_start) && !empty($keyword_start_date_end);

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

                        visual_code LIKE '%$keyword_course%'

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

                INNER JOIN $table_support_priority priority

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

            $ticket_code = 'A'.str_pad($ticketId, 11, '0', STR_PAD_LEFT);

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

                    WHERE id = $category_id";

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

                        $ticket_code

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

                $usersInCategory = self::getUsersInCategory($category_id);

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

            $sql = "UPDATE $table_support_tickets

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

                foreach ($fileAttachments as $file_attach) {

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

            $sql .= " AND DATE_FORMAT(ticket.start_date,'%d/%m/%Y') >= '$keyword_start_date_start'

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

                    $img_source = ObjectIcon::USER;

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

                FROM $table_support_tickets ticket

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

        if ('' != $keyword_course) {

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

                        FROM $course_table

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

                            visual_code LIKE '%$keyword_course%'

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

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)

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

                    $img_source = ObjectIcon::TICKET;

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

            $sql .= " AND DATE_FORMAT( ticket.start_date,'%d/%m/%Y') >= '$keyword_start_date_start'

Method name "TicketManager::get_all_tickets_categories" is not in camel caps format
Open

    public static function get_all_tickets_categories($projectId, $order = '')

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

                $categoryInfo = self::getCategory($category_id);

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

                        if (UPLOAD_ERR_NO_FILE != $file_attach['error']) {

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

                      AND DATE_FORMAT(ticket.start_date,'%d/%m/%Y') <= '$keyword_start_date_end'";

Missing parameter name
Open

     * @param $direction

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

        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);

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

                            FROM $table_support_messages

Missing parameter name
Open

     * @param $column

Missing function doc comment
Open

    public function __construct()

Missing parameter name
Open

     * @param $numberItems

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

        $course_id,

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

        $course_id = (int) $course_id;

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

        $project_id = (int) $project_id;

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

            if (empty($category_id)) {

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

        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);

Missing parameter name
Open

     * @param $direction

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

        $keyword_course = isset($_GET['keyword_course']) ? Database::escape_string(trim($_GET['keyword_course'])) : '';

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

        if (false == $keyword_range && '' != $keyword_start_date_start) {

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

        if (false == $keyword_range && '' != $keyword_start_date_start) {

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

        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);

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

            if ($other_area > 0) {

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

                $ticket_code

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

            $sql = "UPDATE $table_support_tickets

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

                    SET code = '$ticket_code'

Expected 7 spaces after parameter type; 1 found
Open

     * @param int $number_of_items

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

        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);

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

        $keyword_range = !empty($keyword_start_date_start) && !empty($keyword_start_date_end);

Missing parameter name
Open

     * @param $from

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

                            $file_attach,

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

            INNER JOIN $table_support_category cat

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

                     SELECT id FROM $course_table

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

        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);

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

        $keyword_start_date_end = isset($_GET['keyword_start_date_end']) ? Database::escape_string(trim($_GET['keyword_start_date_end'])) : '';

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

                            title LIKE '%$keyword_course%' OR

Expected 12 spaces after parameter type; 1 found
Open

     * @param null $userId

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

                          OR concat(user.lastname,' ',user.firstname) LIKE '%$keyword_request_user%'

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

                              $table_support_messages message,

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

                              $table_main_user user

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

        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);

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

                    $message['attachments'][] = $attach_icon.PHP_EOL.$link;

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

        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);

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

        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);

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

        $sql = "UPDATE $table_support_tickets

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

        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);

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

        $sql = "UPDATE $table_support_tickets SET

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

                          OR user.username LIKE '%$keyword_request_user%') ";

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

            if ('' != $keyword_priority) {

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

                          $table_support_messages message,

Missing parameter name
Open

     * @param $id

Method name "TicketManager::update_message_status" is not in camel caps format
Open

    public static function update_message_status($ticketId, $userId)

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

        $status_id,

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

        $table_main_admin = Database::get_main_table(TABLE_MAIN_ADMIN);

Missing parameter name
Open

     * @param $from

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

                $table_support_status status ,

Missing parameter name
Open

     * @param $direction

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

            if ('' != $keyword_request_user) {

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

            if ('' == $keyword_range && '' != $keyword_start_date_start) {

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

        $number_of_items,

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

        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);

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

        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);

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

                $table_main_user user

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

            $keyword_request_user = Database::escape_string(

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

            $keyword_range = Database::escape_string(

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

                          OR user.official_code LIKE '%$keyword_request_user%'

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

            if ('1' == $keyword_range && '' != $keyword_start_date_start && '' != $keyword_start_date_end) {

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

            if ('yes' == $keyword_unread) {

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

                          FROM $table_support_tickets ticket,

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

                          $table_main_user user

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

        $sql = "UPDATE $table_support_messages

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

                    status_id = '$status_id',

Missing parameter name
Open

     * @param $number_of_items

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

        $table_support_status = Database::get_main_table(TABLE_TICKET_STATUS);

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

            $keyword_start_date_start = Database::escape_string(

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

            if ('' == $keyword_range && '' != $keyword_start_date_start) {

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

                "UPDATE $table_support_tickets SET

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

            $keyword_course = Database::escape_string(

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

                $sql .= " AND ticket.category_id = '$keyword_category'  ";

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

            if ('' != $keyword_priority) {

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

            if ('' != $keyword_course) {

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

                    INNER JOIN $table_main_user user

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

        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);

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

                $table_support_messages message ,

Method name "TicketManager::close_ticket" is not in camel caps format
Open

    public static function close_ticket($ticketId, $userId)

Method name "TicketManager::export_tickets_by_user_id" is not in camel caps format
Open

    public static function export_tickets_by_user_id(

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

        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);

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

            $keyword_source = Database::escape_string(

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

                          OR user.firstname LIKE '%$keyword_request_user%'

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

                $sql .= " AND ticket.priority_id = '$keyword_priority' ";

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

                $course_table = Database::get_main_table(TABLE_MAIN_COURSE);

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

                         WHERE (title LIKE '%$keyword_course%'

Method name "TicketManager::update_ticket_status" is not in camel caps format
Open

    public static function update_ticket_status(

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

        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);

Method name "TicketManager::get_assign_log" is not in camel caps format
Open

    public static function get_assign_log($ticketId)

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

            $keyword_priority = Database::escape_string(

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

                          AND DATE_FORMAT( ticket.start_date,'%d/%m/%Y') <= '$keyword_start_date_end'";

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

                INNER JOIN $table_support_category cat

Missing parameter name
Open

     * @param $column

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

                FROM $table_support_tickets ticket,

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

                $table_support_category cat ,

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

                         FROM $course_table

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

                INNER JOIN $table_support_priority priority

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

        $status_id = (int) $status_id;

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

                $table_main_user user

Method name "TicketManager::close_old_tickets" is not in camel caps format
Open

    public static function close_old_tickets()

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

        $number_of_items = (int) $number_of_items;

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

                          OR concat(user.firstname,' ',user.lastname) LIKE '%$keyword_request_user%'

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

                         OR code LIKE '%$keyword_course%'

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

        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);

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

        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);

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

            $keyword_category = Database::escape_string(

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

                    FROM $table_support_messages message

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

                $sql .= " AND DATE_FORMAT( ticket.start_date,'%d/%m/%Y') >= '$keyword_start_date_start'

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

        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);

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

            if ('1' == $keyword_range && '' != $keyword_start_date_start && '' != $keyword_start_date_end) {

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

                $sql .= " AND ticket.source = '$keyword_source' ";

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

        $status_id = (int) $status_id;

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

                INNER JOIN $table_support_status status

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

            $sql .= " AND user_id NOT IN (SELECT user_id FROM $table_main_admin)

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

            $attach_icon = Display::getMdiIcon(ObjectIcon::ATTACHMENT, 'ch-tool-icon', null, ICON_SIZE_SMALL);

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

                      AND user_id IN (SELECT user_id FROM $table_main_admin)  ";

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

        $sql .= " LIMIT $from,$number_of_items";

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

        $sql = "UPDATE $table_support_tickets SET

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

                $table_support_priority priority,

Missing parameter name
Open

     * @param $id

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

                $sql .= " AND ticket.status_id = '$keyword_status'  ";

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

                         OR visual_code LIKE '%$keyword_course%' )) ";

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

                FROM $table_support_tickets ticket

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

        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);

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

        $number_of_items = (int) $number_of_items;

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

        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);

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

            $keyword_unread = Database::escape_string(

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

                $sql .= " AND (ticket.request_user = '$keyword_request_user'

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

                          OR user.lastname LIKE '%$keyword_request_user%'

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

            if ('' != $keyword_status) {

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

                if ('no' == $keyword_unread) {

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

        $user_info = api_get_user_info();

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

        $userId = $user_info['user_id'];

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

                FROM $table_support_tickets ticket,

Method name "TicketManager::send_alert" is not in camel caps format
Open

    public static function send_alert($ticketId, $userId)

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

        $table_support_category = Database::get_main_table(

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

            $keyword_start_date_end = Database::escape_string(

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

            $keyword_status = Database::escape_string(

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

            if ('' != $keyword_category) {

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

                $sql .= " AND DATE_FORMAT( ticket.start_date,'%d/%m/%Y') = '$keyword_start_date_start' ";

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

            if ('1' == $keyword_range && '' != $keyword_start_date_start && '' != $keyword_start_date_end) {

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

                $sql .= " AND ticket.priority_id = '$keyword_priority'  ";

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

            if ('' != $keyword_source) {

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

                              FROM  $table_support_tickets ticket,

The variable $project_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_project is not named in camelCase.
Open

    public static function get_all_tickets_categories($projectId, $order = '')
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_project = Database::get_main_table(TABLE_TICKET_PROJECT);

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $ticket_code is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $ticket_code is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $project_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $ticket_code is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function get_all_tickets_categories($projectId, $order = '')
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_project = Database::get_main_table(TABLE_TICKET_PROJECT);

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function get_all_tickets_categories($projectId, $order = '')
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_project = Database::get_main_table(TABLE_TICKET_PROJECT);

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_project is not named in camelCase.
Open

    public static function get_all_tickets_categories($projectId, $order = '')
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_project = Database::get_main_table(TABLE_TICKET_PROJECT);

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $ticket_code is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $project_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $other_area is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function insertMessage(
        $ticketId,
        $subject,
        $content,
        $fileAttachments,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_priority is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_priority is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function getNumberOfMessages()
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function getNumberOfMessages()
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function insertMessage(
        $ticketId,
        $subject,
        $content,
        $fileAttachments,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $file_attach is not named in camelCase.
Open

    public static function insertMessage(
        $ticketId,
        $subject,
        $content,
        $fileAttachments,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_end is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $img_source is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_range is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function update_ticket_status(
        $status_id,
        $ticketId,
        $userId
    ) {
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_main_user is not named in camelCase.
Open

    public static function getNumberOfMessages()
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_main_admin is not named in camelCase.
Open

    public static function getNumberOfMessages()
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function send_alert($ticketId, $userId)
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $now = api_get_utc_datetime();

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function close_ticket($ticketId, $userId)
    {
        $ticketId = (int) $ticketId;
        $userId = (int) $userId;

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $status_id is not named in camelCase.
Open

    public static function update_ticket_status(
        $status_id,
        $ticketId,
        $userId
    ) {
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_info is not named in camelCase.
Open

    public static function getNumberOfMessages()
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function getNumberOfMessages()
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_priority is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_main_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $ticket_code is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_end is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_status is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_main_user is not named in camelCase.
Open

    public static function getNumberOfMessages()
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $number_of_items is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_end is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_range is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_range is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $number_of_items is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $img_source is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_end is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_main_user is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function update_ticket_status(
        $status_id,
        $ticketId,
        $userId
    ) {
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function close_ticket($ticketId, $userId)
    {
        $ticketId = (int) $ticketId;
        $userId = (int) $userId;

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_table is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_range is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $img_source is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_status is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function insertMessage(
        $ticketId,
        $subject,
        $content,
        $fileAttachments,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_priority is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_main_user is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $attach_icon is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function update_message_status($ticketId, $userId)
    {
        $ticketId = (int) $ticketId;
        $userId = (int) $userId;
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function insertMessage(
        $ticketId,
        $subject,
        $content,
        $fileAttachments,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_status is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_status is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function update_message_status($ticketId, $userId)
    {
        $ticketId = (int) $ticketId;
        $userId = (int) $userId;
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function update_message_status($ticketId, $userId)
    {
        $ticketId = (int) $ticketId;
        $userId = (int) $userId;
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $status_id is not named in camelCase.
Open

    public static function update_ticket_status(
        $status_id,
        $ticketId,
        $userId
    ) {
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $user_info is not named in camelCase.
Open

    public static function getNumberOfMessages()
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $file_attach is not named in camelCase.
Open

    public static function insertMessage(
        $ticketId,
        $subject,
        $content,
        $fileAttachments,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_table is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_priority is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_end is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_end is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_main_admin is not named in camelCase.
Open

    public static function getNumberOfMessages()
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_status is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function send_alert($ticketId, $userId)
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $now = api_get_utc_datetime();

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function insertMessage(
        $ticketId,
        $subject,
        $content,
        $fileAttachments,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_range is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_category is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_status is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_range is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_priority is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $img_source is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_priority is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_table is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_table is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function getTotalTicketsCurrentUser()
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $attach_icon is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_main_admin is not named in camelCase.
Open

    public static function getNumberOfMessages()
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $file_attach is not named in camelCase.
Open

    public static function insertMessage(
        $ticketId,
        $subject,
        $content,
        $fileAttachments,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_end is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $status_id is not named in camelCase.
Open

    public static function update_ticket_status(
        $status_id,
        $ticketId,
        $userId
    ) {
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $number_of_items is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_id is not named in camelCase.
Open

    public static function add(
        $category_id,
        $course_id,
        $sessionId,
        $project_id,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $file_attach is not named in camelCase.
Open

    public static function insertMessage(
        $ticketId,
        $subject,
        $content,
        $fileAttachments,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $img_source is not named in camelCase.
Open

    public static function getTicketsByCurrentUser($from, $number_of_items, $column, $direction)
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_priority = Database::get_main_table(TABLE_TICKET_PRIORITY);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function update_message_status($ticketId, $userId)
    {
        $ticketId = (int) $ticketId;
        $userId = (int) $userId;
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function getNumberOfMessages()
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
        $table_main_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_status is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_priority is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_status is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_source is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_range is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_main_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_status is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_request_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_status is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_priority is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_messages is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_request_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_category is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_request_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_request_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_end is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_priority is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_status is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_priority is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_priority is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_request_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_table is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_main_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_main_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_request_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_end is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_source is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $number_of_items is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_request_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_request_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_category is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_range is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_request_user is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_unread is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_category is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_table is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_unread is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_priority is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_course is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_range is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_source is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $table_support_tickets is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_end is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_start_date_start is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $keyword_unread is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The method get_all_tickets_categories is not named in camelCase.
Open

    public static function get_all_tickets_categories($projectId, $order = '')
    {
        $table_support_category = Database::get_main_table(TABLE_TICKET_CATEGORY);
        $table_support_project = Database::get_main_table(TABLE_TICKET_PROJECT);

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_all_tickets_status is not named in camelCase.
Open

    public static function get_all_tickets_status()
    {
        $table = Database::get_main_table(TABLE_TICKET_STATUS);
        $sql = "SELECT * FROM $table";
        $result = Database::query($sql);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method close_old_tickets is not named in camelCase.
Open

    public static function close_old_tickets()
    {
        $table = Database::get_main_table(TABLE_TICKET_TICKET);
        $now = api_get_utc_datetime();
        $userId = api_get_user_id();
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method send_alert is not named in camelCase.
Open

    public static function send_alert($ticketId, $userId)
    {
        $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
        $now = api_get_utc_datetime();

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method close_ticket is not named in camelCase.
Open

    public static function close_ticket($ticketId, $userId)
    {
        $ticketId = (int) $ticketId;
        $userId = (int) $userId;

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method update_ticket_status is not named in camelCase.
Open

    public static function update_ticket_status(
        $status_id,
        $ticketId,
        $userId
    ) {
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_ticket_detail_by_id is not named in camelCase.
Open

    public static function get_ticket_detail_by_id($ticketId)
    {
        $attachmentRepo = Container::getTicketMessageAttachmentRepository();

        $ticketId = (int) $ticketId;
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method update_message_status is not named in camelCase.
Open

    public static function update_message_status($ticketId, $userId)
    {
        $ticketId = (int) $ticketId;
        $userId = (int) $userId;
        $table_support_messages = Database::get_main_table(TABLE_TICKET_MESSAGE);
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_assign_log is not named in camelCase.
Open

    public static function get_assign_log($ticketId)
    {
        $table = Database::get_main_table(TABLE_TICKET_ASSIGNED_LOG);
        $ticketId = (int) $ticketId;

Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method export_tickets_by_user_id is not named in camelCase.
Open

    public static function export_tickets_by_user_id(
        $from,
        $number_of_items,
        $column,
        $direction,
Severity: Minor
Found in public/main/inc/lib/TicketManager.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

There are no issues that match your filters.

Category
Status