YetiForceCompany/YetiForceCRM

View on GitHub
modules/Accounts/models/MassEditRecordStructure.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Saw misspelled annotation @returns. Did you mean @return?
Open

     *  @returns boolean true or false

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

class Accounts_MassEditRecordStructure_Model extends Vtiger_MassEditRecordStructure_Model

The class Accounts_MassEditRecordStructure_Model is not named in CamelCase.
Open

class Accounts_MassEditRecordStructure_Model extends Vtiger_MassEditRecordStructure_Model
{
    /**
     * Function that return Field Restricted are not.
     *

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 for alignment; tabs are not allowed
Open

     *  @returns boolean true or false

Spaces must be used for alignment; tabs are not allowed
Open

    public function isFieldRestricted($fieldModel)

Spaces must be used for alignment; tabs are not allowed
Open

        if ($restricted && 'accountname' == $fieldModel->getName()) {

Spaces must be used for alignment; tabs are not allowed
Open

            return false;

Spaces must be used for alignment; tabs are not allowed
Open

     *     @params Field Model

Spaces must be used for alignment; tabs are not allowed
Open

        }

Spaces must be used for alignment; tabs are not allowed
Open

     *

Spaces must be used for alignment; tabs are not allowed
Open

    {

Spaces must be used for alignment; tabs are not allowed
Open

     * @param mixed $fieldModel

Spaces must be used for alignment; tabs are not allowed
Open

        $restricted = parent::isFieldRestricted($fieldModel);

Spaces must be used for alignment; tabs are not allowed
Open

        return $restricted;

Spaces must be used for alignment; tabs are not allowed
Open

    }

Spaces must be used for alignment; 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

     *     @params Field Model

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

     * Function that return Field Restricted are not.

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

     *

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

class Accounts_MassEditRecordStructure_Model extends Vtiger_MassEditRecordStructure_Model

There are no issues that match your filters.

Category
Status