YetiForceCompany/YetiForceCRM

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

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Assigning string to property but \Settings_PBX_Module_Model->baseIndex is string[]
Open

    public $baseIndex = 'pbxid';
Severity: Minor
Found in modules/Settings/PBX/models/Module.php by phan

Assigning string to property but \Settings_PBX_Module_Model->baseTable is string[]
Open

    public $baseTable = 's_yf_pbx';
Severity: Minor
Found in modules/Settings/PBX/models/Module.php by phan

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

class Settings_PBX_Module_Model extends Settings_Vtiger_Module_Model

The class Settings_PBX_Module_Model is not named in CamelCase.
Open

class Settings_PBX_Module_Model extends Settings_Vtiger_Module_Model
{
    /**
     * Table 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

    /**

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

     * Table name.

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

     * List of fields displayed in list view.

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

    public $baseTable = 's_yf_pbx';

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

     * Table 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

    /**

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

     * @var string[]

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

    public $baseIndex = 'pbxid';

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

     * @var string[]

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

     *

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

     * @var string[]

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

     * Module Name.

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

     * @var string

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 = 'PBX';

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

    public $listFields = ['name' => 'LBL_NAME', 'type' => 'LBL_TYPE', 'default' => 'LBL_DEFAULT'];

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

     */

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

     */

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

class Settings_PBX_Module_Model extends Settings_Vtiger_Module_Model

There are no issues that match your filters.

Category
Status