YetiForceCompany/YetiForceCRM

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

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

class EmailTemplates_List_View extends Vtiger_List_View

The class EmailTemplates_List_View is not named in CamelCase.
Open

class EmailTemplates_List_View extends Vtiger_List_View
{
    /**
     * Function to get the list of Script models to be included.
     *
Severity: Minor
Found in modules/EmailTemplates/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

     *

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

     *

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

        $scriptInstances = $this->checkAndConvertJsScripts($fileNames);

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

     */

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

        $parentScript = parent::getFooterScripts($request);

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

        $fileNames = [

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 Vtiger_JsScript_Model[]

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

    public function getFooterScripts(App\Request $request)

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

            'libraries.clipboard.dist.clipboard',

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

        return array_merge($parentScript, $scriptInstances);

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

     * @param \App\Request $request

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

     * Function to get the list of Script models to be included.

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

class EmailTemplates_List_View extends Vtiger_List_View

There are no issues that match your filters.

Category
Status