YetiForceCompany/YetiForceCRM

View on GitHub
modules/Vtiger/inventoryfields/Subunit.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_Subunit_InventoryField extends Vtiger_Unit_InventoryField

The class Vtiger_Subunit_InventoryField is not named in CamelCase.
Open

class Vtiger_Subunit_InventoryField extends Vtiger_Unit_InventoryField
{
    /** {@inheritdoc} */
    protected $type = 'Subunit';
    /** {@inheritdoc} */

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

    /** {@inheritdoc} */

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

    protected $columnName = 'subunit';

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

    /** {@inheritdoc} */

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

    protected $defaultLabel = 'FL_SUBUNIT';

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

    protected $type = 'Subunit';

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

    protected $dbType = 'string';

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

    /** {@inheritdoc} */

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

    protected $onlyOne = true;

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

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

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

class Vtiger_Subunit_InventoryField extends Vtiger_Unit_InventoryField

There are no issues that match your filters.

Category
Status