YetiForceCompany/YetiForceCRM

View on GitHub
modules/OSSMailView/views/List.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Avoid unused parameters such as '$moduleName'.
Open

    public function isEditable($moduleName)
Severity: Minor
Found in modules/OSSMailView/views/List.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

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class OSSMailView_List_View extends Vtiger_List_View

The class OSSMailView_List_View is not named in CamelCase.
Open

class OSSMailView_List_View extends Vtiger_List_View
{
    public function isEditable($moduleName)
    {
        return false;
Severity: Minor
Found in modules/OSSMailView/views/List.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

Spaces must be used to indent lines; tabs are not allowed
Open

    public function isEditable($moduleName)

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

        return false;

Class name "OSSMailView_List_View" is not in camel caps format
Open

class OSSMailView_List_View extends Vtiger_List_View

There are no issues that match your filters.

Category
Status