chamilo/chamilo-lms

View on GitHub
public/main/dashboard/block.class.php

Summary

Maintainability
A
0 mins
Test Coverage

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

        global $charset;
Severity: Minor
Found in public/main/dashboard/block.class.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

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

            ).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'">

Multi-line function call not indented correctly; expected 12 spaces but found 16
Open

                api_htmlentities(

Missing function doc comment
Open

    public function getDeleteLink(): string

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

            ).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'">

Multi-line function call not indented correctly; expected 12 spaces but found 16
Open

                api_htmlentities(

There are no issues that match your filters.

Category
Status