YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/Roles/models/Module.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

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

class Settings_Roles_Module_Model extends Settings_Vtiger_Module_Model

The class Settings_Roles_Module_Model is not named in CamelCase.
Open

class Settings_Roles_Module_Model extends Settings_Vtiger_Module_Model
{
    public $baseTable = 'vtiger_role';
    public $baseIndex = 'roleid';
    public $listFields = ['roleid' => 'Role Id', 'rolename' => 'Name'];

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 $baseTable = 'vtiger_role';

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

    public $baseIndex = 'roleid';

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

    public $listFields = ['roleid' => 'Role Id', 'rolename' => 'Name'];

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

    public $name = 'Roles';

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

     * @return string - url

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 'index.php?module=Roles&parent=Settings&view=Index';

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

     * @return string - url

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

    public function getCreateRecordUrl()

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

        return 'index.php?module=Roles&parent=Settings&view=Index';

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

    {

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

    public function getDefaultUrl()

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

     * Function to get the url for default view of the module.

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

    }

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

     * Function to get the url for Create view of the module.

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

    /**

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

class Settings_Roles_Module_Model extends Settings_Vtiger_Module_Model

There are no issues that match your filters.

Category
Status