chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$id'.
Open

function modify_filter($id, $params, $row)
Severity: Minor
Found in public/main/ticket/priorities.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

Avoid unused parameters such as '$params'.
Open

function modify_filter($id, $params, $row)
Severity: Minor
Found in public/main/ticket/priorities.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

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

$this_section = 'tickets';

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

if (0 == $table->per_page) {

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

function modify_filter($id, $params, $row)

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

    $table->per_page = 20;

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

$user_id = api_get_user_id();

There are no issues that match your filters.

Category
Status