YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/Groups/models/Module.php

Summary

Maintainability
A
3 hrs
Test Coverage
F
51%

Method getFieldInstanceByName has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getFieldInstanceByName($name)
    {
        $params = [];
        switch ($name) {
            case 'groupname':
Severity: Major
Found in modules/Settings/Groups/models/Module.php - About 2 hrs to fix

    Function getFieldInstanceByName has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Open

        public function getFieldInstanceByName($name)
        {
            $params = [];
            switch ($name) {
                case 'groupname':
    Severity: Minor
    Found in modules/Settings/Groups/models/Module.php - About 45 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Avoid using static access to class '\vtlib\Functions' in method 'getFieldInstanceByName'.
    Open

                    foreach (\vtlib\Functions::getAllModules(true, true, 0) as $module) {

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    The method getEditViewStructure uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

                } else {
                    $defaultValue = $fieldModel->get('defaultvalue');
                    $fieldModel->set('fieldvalue', $defaultValue ?? '');
                }

    ElseExpression

    Since: 1.4.0

    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($flag) {
                // one branch
            } else {
                // another branch
            }
        }
    }

    Source https://phpmd.org/rules/cleancode.html#elseexpression

    Avoid using static access to class '\Vtiger_Field_Model' in method 'getFieldInstanceByName'.
    Open

            return $params ? \Vtiger_Field_Model::init($this->getName(true), $params, $name) : null;

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\Language' in method 'getFieldInstanceByName'.
    Open

                        $params['picklistValues'][$module['tabid']] = \App\Language::translate($module['name'], $module['name']);

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Define a constant instead of duplicating this literal "table" 4 times.
    Open

                        'table' => $this->getBaseTable()

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "description" 3 times.
    Open

        public $listFields = ['groupname' => 'Name', 'description' => 'Description'];

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "65535" 3 times.
    Open

                        'maximumlength' => '65535',

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "groupname" 3 times.
    Open

        public $listFields = ['groupname' => 'Name', 'description' => 'Description'];

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "picklistValues" 4 times.
    Open

                        'picklistValues' => []

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "purifyType" 5 times.
    Open

                        'purifyType' => \App\Purifier::TEXT,

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "uitype" 5 times.
    Open

                        'uitype' => 1,

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "maximumlength" 5 times.
    Open

                        'maximumlength' => '100',

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "typeofdata" 5 times.
    Open

                        'typeofdata' => 'V~M',

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "label" 5 times.
    Open

                        'label' => 'Name',

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Returning type null but getFieldInstanceByName() is declared to return \Vtiger_Field_Model
    Open

            return $params ? \Vtiger_Field_Model::init($this->getName(true), $params, $name) : null;

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

    class Settings_Groups_Module_Model extends Settings_Vtiger_Module_Model

    The class Settings_Groups_Module_Model is not named in CamelCase.
    Open

    class Settings_Groups_Module_Model extends Settings_Vtiger_Module_Model
    {
        public $baseTable = 'vtiger_groups';
        public $baseIndex = 'groupid';
        public $listFields = ['groupname' => 'Name', 'description' => 'Description'];

    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

        /** @var string[] Fields name for edit view */

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

            $structure = [];

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

         *

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

        public function getFieldInstanceByName($name)

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

                    $params = [

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

                    break;

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

                        'purifyType' => \App\Purifier::INTEGER,

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

                    ];

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

                    break;

    Spaces must be used to indent lines; 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

            }

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

        }

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

         * Get fields instance by name.

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

                        'uitype' => 53,

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

                        'purifyType' => \App\Purifier::TEXT,

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

         * Function to get the url for default view of the module.

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

            'groupname',

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

        /**

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

                } else {

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

        /**

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

                        'label' => 'Description',

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

                        'table' => $this->getBaseTable()

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

         * @return string - url

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

        public function getCreateRecordUrl()

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

         *

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

                    $fieldModel->set('fieldvalue', $recordModel->get($fieldName));

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

         * @param string $name

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

                        'name' => $name,

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

                        'typeofdata' => 'V~M',

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

        public $editFields = [

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

            'parentid',

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

         * Editable fields.

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

         *

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

        public function getEditViewStructure($recordModel = null): array

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

                if ($recordModel && $recordModel->has($fieldName)) {

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

                    ];

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

                        'label' => 'LBL_MODULES',

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

                        'maximumlength' => '65535',

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

        {

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

        public function getEditableFields(): array

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

         * Get structure fields.

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

                case 'groupname':

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

                case 'modules':

    Spaces must be used to indent lines; 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

         */

    Spaces must be used to indent lines; 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 = [

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

                case 'description':

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

                case 'parentid':

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

                        'picklistValues' => []

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

                        'name' => $name,

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

                    $fieldModel->set('fieldvalue', $defaultValue ?? '');

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

                        'name' => $name,

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

        public $listFields = ['groupname' => 'Name', 'description' => 'Description'];

    Spaces must be used to indent lines; 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

         * @return string - url

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

        ];

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

                        'purifyType' => \App\Purifier::TEXT,

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

                        'table' => $this->getBaseTable()

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

                        'maximumlength' => '4294967295',

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

                    foreach (\vtlib\Functions::getAllModules(true, true, 0) as $module) {

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

        public $baseTable = 'vtiger_groups';

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

        public $name = 'Groups';

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

         * @param Settings_Groups_Record_Model|null $recordModel

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

                $structure[$fieldName] = $fieldModel;

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

        {

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

                        'label' => 'Name',

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

                        'typeofdata' => 'V~M',

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

                        'typeofdata' => 'V~O',

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

                        'table' => $this->getBaseTable(),

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

        public $baseIndex = 'groupid';

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

         */

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

            'members'

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

                    break;

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

                    ];

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

                        'label' => 'FL_PARENT',

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

                    $params = [

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

         *

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

            'description',

    Spaces must be used to indent lines; 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

         * @return array

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

                        'maximumlength' => '100',

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

                        'uitype' => 33,

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

            'modules',

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

        /**

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

            return $this->editFields;

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

         *

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

            return 'index.php?module=Groups&parent=Settings&view=List';

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

         * @return Vtiger_Field_Model

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

         */

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

            switch ($name) {

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

                        'purifyType' => \App\Purifier::TEXT,

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

                    $params = [

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

        /**

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

        public function getDefaultUrl()

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

         * Function to get the url for create view of the module.

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

        }

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

         * @return array

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

                $fieldModel = $this->getFieldInstanceByName($fieldName);

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

                    $defaultValue = $fieldModel->get('defaultvalue');

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

            $params = [];

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

                        'uitype' => 1,

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

                        'name' => $name,

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

                        'maximumlength' => '65535',

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

                        'picklistValues' => []

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

                    $params = [

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

            return 'index.php?module=Groups&parent=Settings&view=Edit';

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

            foreach ($this->editFields as $fieldName) {

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

            return $structure;

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

                        'uitype' => 1,

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

                        'typeofdata' => 'I~O',

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

                        'table' => '',

    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['picklistValues'][$module['tabid']] = \App\Language::translate($module['name'], $module['name']);

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

                    }

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

                    break;

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

                case 'members':

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

                        'purifyType' => \App\Purifier::TEXT,

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

                        'name' => $name,

    Line exceeds 120 characters; contains 125 characters
    Open

                        $params['picklistValues'][$module['tabid']] = \App\Language::translate($module['name'], $module['name']);

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

                        'typeofdata' => 'V~M',

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

                    ];

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

                        'label' => 'LBL_GROUP_MEMBERS',

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

            }

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

                    break;

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

        }

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

                default:

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

                        'uitype' => 33,

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

                        'maximumlength' => '65535',

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

                        'picklistValues' => []

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

                    break;

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

            return $params ? \Vtiger_Field_Model::init($this->getName(true), $params, $name) : null;

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

    class Settings_Groups_Module_Model extends Settings_Vtiger_Module_Model

    There are no issues that match your filters.

    Category
    Status