chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$params'.
Open

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

function modify_filter($id, $params, $row)
Severity: Minor
Found in public/main/ticket/projects.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 "per_page" is not in valid camel caps format
Open

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

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

    $table->per_page = 20;

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

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

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