modules/OSSEmployees/models/Relation.php
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class OSSEmployees_Relation_Model extends Vtiger_Relation_Model
- Exclude checks
The class OSSEmployees_Relation_Model is not named in CamelCase. Open
Open
class OSSEmployees_Relation_Model extends Vtiger_Relation_Model
{
/** {@inheritdoc} */
public function privilegeToDelete(Vtiger_Record_Model $recordModel = null, int $recordId = null): bool
{
- 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
public function privilegeToDelete(Vtiger_Record_Model $recordModel = null, int $recordId = null): bool
- 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
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return 'OSSTimeControl' !== $this->getRelationModuleName() && parent::privilegeToDelete($recordModel, $recordId);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Line exceeds 120 characters; contains 121 characters Open
Open
return 'OSSTimeControl' !== $this->getRelationModuleName() && parent::privilegeToDelete($recordModel, $recordId);
- Exclude checks
Class name "OSSEmployees_Relation_Model" is not in camel caps format Open
Open
class OSSEmployees_Relation_Model extends Vtiger_Relation_Model
- Exclude checks