YetiForceCompany/YetiForceCRM

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

Summary

Maintainability
A
35 mins
Test Coverage
F
50%

Function getListFields has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function getListFields(): array
    {
        if (!isset($this->listFieldModels)) {
            $fieldObjects = [];
            foreach ($this->listFields as $fieldName => $fieldLabel) {
Severity: Minor
Found in modules/Settings/Vtiger/models/Module.php - About 35 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

Missing class import via use statement (line '69', column '37').
Open

                $fieldObjects[$fieldName] = new \App\Base([

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '103', column '14').
Open

        return new \App\Base(['name' => $fieldName, 'label' => $fieldName]);

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method getName has a boolean flag argument $includeParentIfExists, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function getName($includeParentIfExists = false)

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

Missing class import via use statement (line '143', column '20').
Open

        $sequence = (new App\Db\Query())->from('vtiger_settings_field')->where(['blockid' => $blockId])

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Avoid using static access to class 'App\Db' in method 'addSettingsField'.
Open

        $db = App\Db::getInstance();

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 'Settings_Vtiger_Menu_Model' in method 'deleteSettingsField'.
Open

        Settings_Vtiger_Menu_Model::clearCache();

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\Db' in method 'deleteSettingsFieldBymodule'.
Open

        $db = App\Db::getInstance();

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 getListFields uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    $fieldObjects[$fieldName]->set('label', $fieldLabel);
                }

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 'vtlib\Deprecated' in method 'addSettingsField'.
Open

        $blockId = vtlib\Deprecated::getSettingsBlockId($block);

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 'Vtiger_Loader' in method 'getInstance'.
Open

        $modelClassName = Vtiger_Loader::getComponentClassName('Model', '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

Avoid using static access to class 'Settings_Vtiger_Menu_Model' in method 'addSettingsField'.
Open

        Settings_Vtiger_Menu_Model::clearCache();

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 'vtlib\Deprecated' in method 'deleteSettingsField'.
Open

        App\Db::getInstance()->createCommand()->delete('vtiger_settings_field', ['name' => $name, 'blockid' => vtlib\Deprecated::getSettingsBlockId($block)])->execute();

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 'Settings_Vtiger_Menu_Model' in method 'deleteSettingsFieldBymodule'.
Open

        Settings_Vtiger_Menu_Model::clearCache();

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 "blockid" 3 times.
Open

        $sequence = (new App\Db\Query())->from('vtiger_settings_field')->where(['blockid' => $blockId])

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" 3 times.
Open

                    $fieldObjects[$fieldName]->set('label', $fieldLabel[0]);

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 "vtiger_settings_field" 5 times.
Open

    public $baseTable = 'vtiger_settings_field';

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.

Reference to undeclared property \Settings_Vtiger_Module_Model->listFieldModels
Open

            $this->listFieldModels = $fieldObjects;

Parameter $moduleName has undeclared type \type
Open

    public static function deleteSettingsFieldBymodule($moduleName)

Call to undeclared method \App\Db::createCommand
Open

        $db->createCommand()->insert('vtiger_settings_field', $params)->execute();
Severity: Critical
Found in modules/Settings/Vtiger/models/Module.php by phan

Call to undeclared method \App\Db\Query::from
Open

        $sequence = (new App\Db\Query())->from('vtiger_settings_field')->where(['blockid' => $blockId])
Severity: Critical
Found in modules/Settings/Vtiger/models/Module.php by phan

Suspicious type \type of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

        $db->createCommand()->delete('vtiger_settings_field', ['like', 'linkto', "module={$moduleName}&"])->execute();

Reference to undeclared property \Settings_Vtiger_Module_Model->listFieldModels
Open

        if (!isset($this->listFieldModels)) {

Call to undeclared method \App\Db::createCommand
Open

        $db->createCommand()->delete('vtiger_settings_field', ['like', 'linkto', "module={$moduleName}&"])->execute();
Severity: Critical
Found in modules/Settings/Vtiger/models/Module.php by phan

Saw unextractable annotation for comment '* @return <field_model>'</field_model>
Open

     * @return <Field_Model>

Reference to undeclared property \Settings_Vtiger_Module_Model->listFieldModels
Open

        return $this->listFieldModels;

Call to undeclared method \App\Db::createCommand
Open

        App\Db::getInstance()->createCommand()->delete('vtiger_settings_field', ['name' => $name, 'blockid' => vtlib\Deprecated::getSettingsBlockId($block)])->execute();
Severity: Critical
Found in modules/Settings/Vtiger/models/Module.php by phan

Avoid excessively long variable names like $includeParentIfExists. Keep variable name length under 20.
Open

    public function getName($includeParentIfExists = false)

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

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

class Settings_Vtiger_Module_Model extends \App\Base

Avoid variables with short names like $db. Configured minimum length is 3.
Open

        $db = App\Db::getInstance();

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

The class Settings_Vtiger_Module_Model is not named in CamelCase.
Open

class Settings_Vtiger_Module_Model extends \App\Base
{
    /** @var string Base table. */
    public $baseTable = 'vtiger_settings_field';

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

Avoid variables with short names like $db. Configured minimum length is 3.
Open

        $db = App\Db::getInstance();

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

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

    public $nameFields = ['name'];

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

        return $this->baseTable;

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

    /** @var string Base table. */

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

    public $baseIndex = 'fieldid';

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 getListFields(): array

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

    public $baseTable = 'vtiger_settings_field';

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

    /** @var array List fields. */

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

    public function getBaseTable()

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

            return $this->getParentName() . ':' . $this->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

    {

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

    public function getBaseIndex()

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

     * Function returns list of fields available in list view.

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

    public $name = 'Vtiger';

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 \App\Base[]

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

        return $this->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

    {

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

    /** @var string Base index. */

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

    /** @var string Module name. */

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

    public function getParentName()

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

        if (!isset($this->listFieldModels)) {

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

        return $this->baseIndex;

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

        if ($includeParentIfExists) {

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

        return 'Settings';

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

        return $this;

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

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

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

    public function getName($includeParentIfExists = false)

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

        $this->listFields = $fieldNames;

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

    public function setListFields($fieldNames)

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

                if (\is_array($fieldLabel)) {

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

    public function hasCreatePermissions()

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

    public static function getInstance($name = 'Settings:Vtiger')

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

     * Function to get Index view 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

            foreach ($this->listFields as $fieldName => $fieldLabel) {

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

     * @param string $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

        $params['sequence'] = ((int) $sequence) + 1;

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

        $db->createCommand()->insert('vtiger_settings_field', $params)->execute();

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

    public static function deleteSettingsField($block, $name)

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

                    $fieldObjects[$fieldName]->set('moduleName', $fieldLabel[1]);

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 getField($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

                $fieldObjects[$fieldName] = new \App\Base([

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

                    $fieldObjects[$fieldName]->set('label', $fieldLabel);

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

            $this->listFieldModels = $fieldObjects;

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

        return $this->nameFields;

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 <Field_Model>

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

    public static function addSettingsField($block, $params)

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

     * @param string $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

        return new $modelClassName();

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

        App\Db::getInstance()->createCommand()->delete('vtiger_settings_field', ['name' => $name, 'blockid' => vtlib\Deprecated::getSettingsBlockId($block)])->execute();

Line exceeds 120 characters; contains 169 characters
Open

        App\Db::getInstance()->createCommand()->delete('vtiger_settings_field', ['name' => $name, 'blockid' => vtlib\Deprecated::getSettingsBlockId($block)])->execute();

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

     */

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

        $modelClassName = Vtiger_Loader::getComponentClassName('Model', 'Module', $name);

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

        $db = App\Db::getInstance();

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

    public function getNameFields()

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

        return true;

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

    public function isPagingSupported()

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

     * @return $this instance

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

     *

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

        Settings_Vtiger_Menu_Model::clearCache();

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

                    'name' => $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

        return true;

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

        $sequence = (new App\Db\Query())->from('vtiger_settings_field')->where(['blockid' => $blockId])

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

     * @param type $moduleName

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

        return $this->listFieldModels;

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

     *

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

     * Function to get field using field 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

    {

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

        $params['blockid'] = $blockId;

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

        Settings_Vtiger_Menu_Model::clearCache();

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 static function deleteSettingsFieldBymodule($moduleName)

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

        $db->createCommand()->delete('vtiger_settings_field', ['like', 'linkto', "module={$moduleName}&"])->execute();

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

                    $fieldObjects[$fieldName]->set('label', $fieldLabel[0]);

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

     * @return string[] list field names

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

            ->max('sequence');

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

    }

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

     * Function to get the instance of Settings module 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

    public function getIndexViewUrl(): string

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

     * @return string URL

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

        $db = App\Db::getInstance();

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

     */

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

            $fieldObjects = [];

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 new \App\Base(['name' => $fieldName, 'label' => $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

     * Delete settings field by module name.

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

     * Function to get name fields of this module.

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

        return 'index.php?module=' . $this->getName() . '&parent=' . $this->getParentName() . '&view=Index';

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

        $blockId = vtlib\Deprecated::getSettingsBlockId($block);

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

        Settings_Vtiger_Menu_Model::clearCache();

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

    }

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

class Settings_Vtiger_Module_Model extends \App\Base

There are no issues that match your filters.

Category
Status