YetiForceCompany/YetiForceCRM

View on GitHub
modules/Vtiger/inventoryfields/Picklist.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 Vtiger_Picklist_InventoryField extends Vtiger_Basic_InventoryField

The class Vtiger_Picklist_InventoryField is not named in CamelCase.
Open

class Vtiger_Picklist_InventoryField extends Vtiger_Basic_InventoryField
{
    protected $type = 'Picklist';
    protected $defaultLabel = 'LBL_PICKLIST';
    protected $columnName = 'picklist';

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

    protected $type = 'Picklist';

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

    }

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

    protected $onlyOne = false;

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

        return $values;

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

            $values = $params['values'];

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

    protected $defaultLabel = 'LBL_PICKLIST';

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

    {

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

    protected $purifyType = \App\Purifier::TEXT;

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

        if (isset($params['values'])) {

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

    public function getEditTemplateName()

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

    public function getPicklistValues()

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

        $values = [];

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

    }

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

    protected $columnName = 'picklist';

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

    {

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

        $params = $this->getParamsConfig();

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

    /** {@inheritdoc} */

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

        return 'inventoryTypes/Picklist.tpl';

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

class Vtiger_Picklist_InventoryField extends Vtiger_Basic_InventoryField

There are no issues that match your filters.

Category
Status