YetiForceCompany/YetiForceCRM

View on GitHub
modules/Documents/models/Relation.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 Documents_Relation_Model extends Vtiger_Relation_Model

The class Documents_Relation_Model is not named in CamelCase.
Open

class Documents_Relation_Model extends Vtiger_Relation_Model
{
    /**
     * Set exceptional data.
     */
Severity: Minor
Found in modules/Documents/models/Relation.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

        $this->setData($data);

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

            'modulename' => $this->getParentModuleModel()->getName(),

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

     * Set exceptional data.

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

            'actions' => 'ADD, SELECT',

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

            'tabid' => $this->getParentModuleModel()->getId(),

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

            'related_tabid' => $this->getRelationModuleModel()->getId(),

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

            'name' => 'getRelatedRecord',

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

    public function setExceptionData()

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

        $data = [

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

class Documents_Relation_Model extends Vtiger_Relation_Model

There are no issues that match your filters.

Category
Status