YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/Widgets/views/Widget.php

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

Method createStep2 has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

    Avoid using static access to class 'Settings_Widgets_Module_Model' in method 'edit'.
    Open

            $moduleModel = Settings_Widgets_Module_Model::getInstance($qualifiedModuleName);

    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_Widgets_Module_Model' in method 'createStep2'.
    Open

            $moduleModel = Settings_Widgets_Module_Model::getInstance($qualifiedModuleName);

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

            $widgetModuleName = \App\Module::getModuleName($widgetInfo['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 'Vtiger_Loader' in method 'edit'.
    Open

            $className = Vtiger_Loader::getComponentClassName('Widget', $type, $widgetModuleName);

    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\Relation' in method 'edit'.
    Open

            $viewer->assign('RELATEDMODULES', \App\Relation::getByModule($widgetModuleName));

    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_Widgets_Module_Model' in method 'createStep1'.
    Open

            $moduleModel = Settings_Widgets_Module_Model::getInstance($qualifiedModuleName);

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

            $widgetModuleName = \App\Module::getModuleName($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 '\App\Relation' in method 'createStep2'.
    Open

            $viewer->assign('RELATEDMODULES', \App\Relation::getByModule($widgetModuleName));

    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 'createStep2'.
    Open

            $className = Vtiger_Loader::getComponentClassName('Widget', $type, $widgetModuleName);

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

            } else {
                $this->createStep1($request);
            }

    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

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

            $viewer->assign('MODULE_MODEL', $moduleModel);

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

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

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

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

    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.

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('SOURCEMODULE', $widgetModuleName);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('QUALIFIED_MODULE', $qualifiedModuleName);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('WID', $wid);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('SOUNRCE_MODULE', $sourceModule);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

                $viewer->assign('WIDGET', $widgetInstance);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Suspicious array access to \type
    Open

            $widgetModuleName = \App\Module::getModuleName($widgetInfo['tabid']);

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('TYPE', $type);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Suspicious array access to \type
    Open

            $viewer->assign('SOURCE', $widgetInfo['tabid']);

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('SOURCE', $widgetInfo['tabid']);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('MODULE_MODEL', $moduleModel);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('MODULE_MODEL', $moduleModel);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('MODULE', $moduleName);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('QUALIFIED_MODULE', $qualifiedModuleName);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('RELATEDMODULES', \App\Relation::getByModule($widgetModuleName));
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('QUALIFIED_MODULE', $qualifiedModuleName);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('WIDGETINFO', $widgetInfo);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('TYPE', $type);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Suspicious array access to \type
    Open

            $type = $widgetInfo['type'];

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('SOURCE', $tabId);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('WID', '');
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('MODULE_MODEL', $moduleModel);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('RELATEDMODULES', \App\Relation::getByModule($widgetModuleName));
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

                $viewer->assign('WIDGET', $widgetInstance);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('MODULE', $moduleName);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('MODULE', $moduleName);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('WIDGETINFO', [
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('SOURCEMODULE', $widgetModuleName);
    Severity: Critical
    Found in modules/Settings/Widgets/views/Widget.php by phan

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

    class Settings_Widgets_Widget_View extends Settings_Vtiger_Index_View

    The class Settings_Widgets_Widget_View is not named in CamelCase.
    Open

    class Settings_Widgets_Widget_View extends Settings_Vtiger_Index_View
    {
        /** {@inheritdoc} */
        public function process(App\Request $request)
        {

    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

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

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

            }

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

         * Create widget - first step.

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

         * @param \App\Request $request

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

        public function createStep2(App\Request $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

         *

    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

            if ($mode) {

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

            $moduleModel = Settings_Widgets_Module_Model::getInstance($qualifiedModuleName);

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

         * Create widget - second step.

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

            $viewer->assign('TYPE', $type);

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

                'data' => [

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

                'label' => '',

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

         * @param \App\Request $request

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

            $viewer->assign('MODULE_MODEL', $moduleModel);

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

        }

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

         * @param \App\Request $request

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

            $viewer->assign('WIDGETINFO', [

    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('TYPE', $type);

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

                $this->{$mode}($request);

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

            $sourceModule = $request->getInteger('mod');

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

            $viewer->assign('SOURCEMODULE', $widgetModuleName);

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

            $viewer->assign('MODULE_MODEL', $moduleModel);

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

        /**

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

                $tplName = $widgetInstance->getConfigTplName();

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

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

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

            $viewer->assign('WID', '');

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

            $widgetInfo = $moduleModel->getWidgetInfo($wid);

    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

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

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

            $viewer->assign('SOURCE', $tabId);

    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

            $mode = $request->getMode();

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

         */

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

                    'checkbox' => '', 'customView' => '[]',

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

            if (class_exists($className)) {

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

        public function edit(App\Request $request)

    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('MODULE_MODEL', $moduleModel);

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

                $viewer->view("Detail/Widget/$tplName.tpl", $widgetModuleName);

    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

            $className = Vtiger_Loader::getComponentClassName('Widget', $type, $widgetModuleName);

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

                $this->createStep1($request);

    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

        }

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

            $moduleModel = Settings_Widgets_Module_Model::getInstance($qualifiedModuleName);

    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

            $viewer->assign('RELATEDMODULES', \App\Relation::getByModule($widgetModuleName));

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

                $tplName = $widgetInstance->getConfigTplName();

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

            $moduleModel = Settings_Widgets_Module_Model::getInstance($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

            $viewer->assign('SOUNRCE_MODULE', $sourceModule);

    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

        /**

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

        {

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

            $className = Vtiger_Loader::getComponentClassName('Widget', $type, $widgetModuleName);

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

         *

    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

        public function process(App\Request $request)

    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

                    'action' => '', 'switchHeader' => '', 'filter' => '',

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

            $wid = $request->getInteger('id');

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

                $viewer->assign('WIDGET', $widgetInstance);

    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('SOURCE', $widgetInfo['tabid']);

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

            if (class_exists($className)) {

    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

                    'limit' => 5, 'relatedmodule' => '',  'columns' => '',

    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

        }

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

         */

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

            $type = $widgetInfo['type'];

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

            $viewer->assign('SOURCEMODULE', $widgetModuleName);

    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

            $viewer->assign('RELATEDMODULES', \App\Relation::getByModule($widgetModuleName));

    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

        /**

    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 createStep1(App\Request $request)

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

            $widgetModuleName = \App\Module::getModuleName($tabId);

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

                ],

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

         * Edit widget.

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

            $tabId = $request->getInteger('tabId');

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

            $widgetModuleName = \App\Module::getModuleName($widgetInfo['tabid']);

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

                $viewer->view("Detail/Widget/$tplName.tpl", $widgetModuleName);

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

            }

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

                $widgetInstance = new $className($widgetModuleName, null, null, []);

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

            $viewer->assign('WIDGETINFO', $widgetInfo);

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

                $widgetInstance = new $className($widgetModuleName, null, null, $widgetInfo);

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

            $type = $request->getByType('type', 'Alnum');

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

                $viewer->assign('WIDGET', $widgetInstance);

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

            $viewer->assign('WID', $wid);

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

    class Settings_Widgets_Widget_View extends Settings_Vtiger_Index_View

    There are no issues that match your filters.

    Category
    Status