YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/MappedFields/views/Edit.php

Summary

Maintainability
B
5 hrs
Test Coverage
F
0%

Method step has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function step($step, App\Request $request)
    {
        $viewer = $this->getViewer($request);
        $moduleName = $request->getModule();
        $qualifiedModuleName = $request->getModule(false);
Severity: Minor
Found in modules/Settings/MappedFields/views/Edit.php - About 1 hr to fix

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

        public function step($step, App\Request $request)
        {
            $viewer = $this->getViewer($request);
            $moduleName = $request->getModule();
            $qualifiedModuleName = $request->getModule(false);
    Severity: Minor
    Found in modules/Settings/MappedFields/views/Edit.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

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

        public function preProcess(App\Request $request, $display = true)

    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

    Avoid using static access to class 'Vtiger_Module_Model' in method 'step'.
    Open

                    $moduleModel = Vtiger_Module_Model::getInstance($moduleSourceName);

    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_RecordStructure_Model' in method 'step'.
    Open

                    $recordStructureInstance = Vtiger_RecordStructure_Model::getInstanceForModule($moduleModel);

    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_MappedFields_Module_Model' in method 'step'.
    Open

                    $viewer->assign('REL_MODULE_MODEL', Settings_MappedFields_Module_Model::getInstance($moduleInstance->get('reltabid')));

    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_MappedFields_Module_Model' in method 'preProcess'.
    Open

                $moduleInstance = Settings_MappedFields_Module_Model::getInstanceById($recordId);

    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_MappedFields_Module_Model' in method 'step'.
    Open

                    $viewer->assign('SEL_MODULE_MODEL', Settings_MappedFields_Module_Model::getInstance($moduleInstance->get('tabid')));

    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_MappedFields_Module_Model' in method 'step'.
    Open

            $allModules = Settings_MappedFields_Module_Model::getSupportedModules();

    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_AdvancedFilter_Helper' in method 'step'.
    Open

                    $viewer->assign('ADVANCE_CRITERIA', Vtiger_AdvancedFilter_Helper::transformToAdvancedFilterCondition($moduleInstance->get('conditions')));

    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_MappedFields_Module_Model' in method 'step'.
    Open

                $moduleInstance = Settings_MappedFields_Module_Model::getInstanceById($recordId);

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

            } else {
                $moduleInstance = Settings_MappedFields_Module_Model::getCleanInstance();
            }

    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 '\App\Module' in method 'step'.
    Open

                    $moduleSourceName = \App\Module::getModuleName($moduleInstance->get('tabid'));

    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_MappedFields_Module_Model' in method 'step'.
    Open

                $moduleInstance = Settings_MappedFields_Module_Model::getCleanInstance();

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

            $recordId = !$request->isEmpty('record') ? $request->getInteger('record') : '';

    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.

    Avoid unused parameters such as '$display'.
    Open

        public function preProcess(App\Request $request, $display = true)

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    Call to undeclared method \Vtiger_Viewer::assign
    Open

                    $viewer->assign('SOURCE_MODULE', $moduleSourceName);

    Call to undeclared method \Vtiger_Viewer::assign
    Open

                    $viewer->assign('ADVANCE_CRITERIA', Vtiger_AdvancedFilter_Helper::transformToAdvancedFilterCondition($moduleInstance->get('conditions')));

    Call to undeclared method \Vtiger_Viewer::assign
    Open

                $viewer->assign('MAPPEDFIELDS_MODULE_MODEL', $moduleInstance);

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('MAPPEDFIELDS_MODULE_MODEL', $moduleInstance);

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('QUALIFIED_MODULE', $qualifiedModuleName);

    Call to undeclared method \Vtiger_Viewer::assign
    Open

                    $viewer->assign('RECORD_STRUCTURE', $recordStructureInstance->getStructure());

    Call to undeclared method \Vtiger_Viewer::assign
    Open

                    $viewer->assign('SEL_MODULE_MODEL', Settings_MappedFields_Module_Model::getInstance($moduleInstance->get('tabid')));

    Call to undeclared method \Vtiger_Viewer::assign
    Open

                    $viewer->assign('REL_MODULE_MODEL', Settings_MappedFields_Module_Model::getInstance($moduleInstance->get('reltabid')));

    Call to undeclared method \Vtiger_Viewer::assign
    Open

                $viewer->assign('MODE', 'edit');

    Call to method getInstance from undeclared class \App\Fields\Owner
    Open

                    $assignedToValues['LBL_USERS'] = \App\Fields\Owner::getInstance()->getAccessibleUsers();

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('RECORD_MODE', $request->getMode());

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('MODULE', $moduleName);

    Call to method getInstance from undeclared class \App\Fields\Owner
    Open

                    $assignedToValues['LBL_GROUPS'] = \App\Fields\Owner::getInstance()->getAccessibleGroups();

    Call to undeclared method \Vtiger_Viewer::assign
    Open

                    $viewer->assign('USERS_LIST', $assignedToValues);

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('RECORDID', $recordId);

    Call to undeclared method \Vtiger_Viewer::assign
    Open

                $viewer->assign('RECORDID', $recordId);

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('ALL_MODULES', $allModules);

    Argument 1 (tabId) is \Value but \App\Module::getModuleName() takes int defined at /code/app/Module.php:129
    Open

                    $moduleSourceName = \App\Module::getModuleName($moduleInstance->get('tabid'));

    Argument 1 (moduleName) is \Value but \Settings_MappedFields_Module_Model::getInstance() takes string defined at /code/modules/Settings/MappedFields/models/Module.php:163
    Open

                    $viewer->assign('SEL_MODULE_MODEL', Settings_MappedFields_Module_Model::getInstance($moduleInstance->get('tabid')));

    Argument 1 (moduleName) is \Value but \Settings_MappedFields_Module_Model::getInstance() takes string defined at /code/modules/Settings/MappedFields/models/Module.php:163
    Open

                    $viewer->assign('REL_MODULE_MODEL', Settings_MappedFields_Module_Model::getInstance($moduleInstance->get('reltabid')));

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        public function preProcess(App\Request $request, $display = true)
        {
            parent::preProcess($request);
            $viewer = $this->getViewer($request);
            $recordId = !$request->isEmpty('record') ? $request->getInteger('record') : '';
    Severity: Major
    Found in modules/Settings/MappedFields/views/Edit.php and 1 other location - About 3 hrs to fix
    modules/Settings/Workflows/views/Edit.php on lines 24..36

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 149.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

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

                    $recordStructureInstance = Vtiger_RecordStructure_Model::getInstanceForModule($moduleModel);

    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_MappedFields_Edit_View extends Settings_Vtiger_Index_View

    The class Settings_MappedFields_Edit_View is not named in CamelCase.
    Open

    class Settings_MappedFields_Edit_View extends Settings_Vtiger_Index_View
    {
        public function process(App\Request $request)
        {
            $step = strtolower($request->getMode());

    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

                $moduleInstance = Settings_MappedFields_Module_Model::getInstanceById($recordId);

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

                $viewer->assign('RECORDID', $recordId);

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

                    $viewer->view('Step3.tpl', $qualifiedModuleName);

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

            if ($recordId) {

    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

            $viewer->assign('QUALIFIED_MODULE', $qualifiedModuleName);

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

                    $recordStructureInstance = Vtiger_RecordStructure_Model::getInstanceForModule($moduleModel);

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

            $qualifiedModuleName = $request->getModule(false);

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

                    $viewer->assign('REL_MODULE_MODEL', Settings_MappedFields_Module_Model::getInstance($moduleInstance->get('reltabid')));

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

        {

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

                $recordId = $request->getInteger('record');

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

            $viewer->assign('MODULE', $moduleName);

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

                    $assignedToValues = [];

    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 'step1':

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

        }

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

                'modules.Vtiger.resources.AdvanceFilter',

    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

            if (!$request->isEmpty('record')) {

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

        public function process(App\Request $request)

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

            $viewer->assign('RECORDID', $recordId);

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

                    $viewer->assign('SOURCE_MODULE', $moduleSourceName);

    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

                "modules.Settings.$moduleName.resources.Edit1",

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

                "modules.Settings.$moduleName.resources.Edit3",

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

                $moduleInstance = Settings_MappedFields_Module_Model::getInstanceById($recordId);

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

                $moduleInstance = Settings_MappedFields_Module_Model::getCleanInstance();

    Line exceeds 120 characters; contains 154 characters
    Open

                    $viewer->assign('ADVANCE_CRITERIA', Vtiger_AdvancedFilter_Helper::transformToAdvancedFilterCondition($moduleInstance->get('conditions')));

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

                case 'step2':

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

            $viewer->view('EditHeader.tpl', $request->getModule(false));

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

                    $viewer->assign('RECORD_STRUCTURE', $recordStructureInstance->getStructure());

    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

                    $viewer->assign('USERS_LIST', $assignedToValues);

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

                'modules.Vtiger.resources.AdvanceFilterEx',

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

                    $moduleSourceName = \App\Module::getModuleName($moduleInstance->get('tabid'));

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

                    $viewer->assign('SEL_MODULE_MODEL', Settings_MappedFields_Module_Model::getInstance($moduleInstance->get('tabid')));

    Line exceeds 120 characters; contains 132 characters
    Open

                    $viewer->assign('SEL_MODULE_MODEL', Settings_MappedFields_Module_Model::getInstance($moduleInstance->get('tabid')));

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

            $viewer->assign('MAPPEDFIELDS_MODULE_MODEL', $moduleInstance);

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

                    $assignedToValues['LBL_GROUPS'] = \App\Fields\Owner::getInstance()->getAccessibleGroups();

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

                    $viewer->view('Step2.tpl', $qualifiedModuleName);

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

                    $viewer->view('Step1.tpl', $qualifiedModuleName);

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

            ]));

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

            $moduleName = $request->getModule();

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

            switch ($step) {

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

                    $moduleModel = Vtiger_Module_Model::getInstance($moduleSourceName);

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

        {

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

            $viewer = $this->getViewer($request);

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

            $viewer->assign('RECORD_MODE', $request->getMode());

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

        public function step($step, App\Request $request)

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

                case 'step4':

    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 array_merge(parent::getFooterScripts($request), $this->checkAndConvertJsScripts([

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

                'modules.Settings.Vtiger.resources.Edit',

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

            $allModules = Settings_MappedFields_Module_Model::getSupportedModules();

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

            $step = strtolower($request->getMode());

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

            parent::preProcess($request);

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

            $viewer = $this->getViewer($request);

    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

                    $viewer->assign('ADVANCE_CRITERIA', Vtiger_AdvancedFilter_Helper::transformToAdvancedFilterCondition($moduleInstance->get('conditions')));

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

            $this->step($step, $request);

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

            $recordId = !$request->isEmpty('record') ? $request->getInteger('record') : '';

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

                $viewer->assign('MODE', 'edit');

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

                    $assignedToValues['LBL_USERS'] = \App\Fields\Owner::getInstance()->getAccessibleUsers();

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

        public function getFooterScripts(App\Request $request)

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

                "modules.Settings.$moduleName.resources.Edit",

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

                "modules.Settings.$moduleName.resources.Edit2",

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

                "modules.Settings.$moduleName.resources.Edit4",

    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 preProcess(App\Request $request, $display = true)

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

                $viewer->assign('MAPPEDFIELDS_MODULE_MODEL', $moduleInstance);

    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

            $viewer->assign('ALL_MODULES', $allModules);

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

                    $viewer->view('Step4.tpl', $qualifiedModuleName);

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

                case 'step3':

    Line exceeds 120 characters; contains 135 characters
    Open

                    $viewer->assign('REL_MODULE_MODEL', Settings_MappedFields_Module_Model::getInstance($moduleInstance->get('reltabid')));

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

            $moduleName = $request->getModule();

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

            }

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

    class Settings_MappedFields_Edit_View extends Settings_Vtiger_Index_View

    There are no issues that match your filters.

    Category
    Status