modules/Vtiger/inventoryfields/Picklist.php
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Vtiger_Picklist_InventoryField extends Vtiger_Basic_InventoryField
- Exclude checks
The class Vtiger_Picklist_InventoryField is not named in CamelCase. Open
Open
class Vtiger_Picklist_InventoryField extends Vtiger_Basic_InventoryField
{
protected $type = 'Picklist';
protected $defaultLabel = 'LBL_PICKLIST';
protected $columnName = 'picklist';
- Read upRead up
- Exclude checks
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
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected $type = 'Picklist';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected $onlyOne = false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $values;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$values = $params['values'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected $defaultLabel = 'LBL_PICKLIST';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected $purifyType = \App\Purifier::TEXT;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (isset($params['values'])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getEditTemplateName()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getPicklistValues()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$values = [];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected $columnName = 'picklist';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$params = $this->getParamsConfig();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return 'inventoryTypes/Picklist.tpl';
- Exclude checks
Class name "Vtiger_Picklist_InventoryField" is not in camel caps format Open
Open
class Vtiger_Picklist_InventoryField extends Vtiger_Basic_InventoryField
- Exclude checks