public/main/dashboard/block.class.php
Avoid unused local variables such as '$charset'. Open
Open
global $charset;
- Read upRead up
- Exclude checks
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
Open
).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'">
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 16 Open
Open
api_htmlentities(
- Exclude checks
Missing function doc comment Open
Open
public function getDeleteLink(): string
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 12 Open
Open
).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'">
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 16 Open
Open
api_htmlentities(
- Exclude checks