YetiForceCompany/YetiForceCRM

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

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Saw unextractable annotation for comment '* @return <array> list of modules'</array>
Open

     * @return <Array> list of modules

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

class Settings_Profiles_Module_Model extends Settings_Vtiger_Module_Model

The class Settings_Profiles_Module_Model is not named in CamelCase.
Open

class Settings_Profiles_Module_Model extends Settings_Vtiger_Module_Model
{
    public $baseTable = 'vtiger_profile';
    public $baseIndex = 'profileid';
    public $listFields = ['profilename' => 'Name', 'description' => 'Description'];

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

        return 'index.php?module=Profiles&parent=Settings&view=Edit';

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

    public $baseIndex = 'profileid';

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

    /**

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

    const FIELD_ACTIVE = 0;

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

    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

    public $listFields = ['profilename' => 'Name', 'description' => 'Description'];

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

    const GLOBAL_ACTION_VIEW = 1;

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

    const NOT_PERMITTED_VALUE = 1;

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

     *

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 static function getNonVisibleModulesList()

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

    const GLOBAL_ACTION_EDIT = 2;

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

    const FIELD_READWRITE = 0;

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

    const FIELD_READONLY = 1;

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

     * @return <Array> list of modules

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=Profiles&parent=Settings&view=List';

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

     * Function to get non visible modules list.

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 string - url

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

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

    const FIELD_INACTIVE = 1;

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

    public $name = 'Profiles';

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

    }

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

    const GLOBAL_ACTION_DEFAULT_VALUE = 1;

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

    const IS_PERMITTED_VALUE = 0;

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 ['ModTracker', 'Import', 'Home', 'OSSMailScanner'];

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

class Settings_Profiles_Module_Model extends Settings_Vtiger_Module_Model

There are no issues that match your filters.

Category
Status