YetiForceCompany/YetiForceCRM

View on GitHub
app/Controller/Modal.php

Summary

Maintainability
A
1 hr
Test Coverage
A
94%

The class Modal has 16 fields. Consider redesigning Modal to keep the number of fields under 15.
Open

abstract class Modal extends View\Base
{
    /**
     * Modal size.
     *
Severity: Minor
Found in app/Controller/Modal.php by phpmd

TooManyFields

Since: 0.1

Classes that have too many fields could be redesigned to have fewer fields, possibly through some nested object grouping of some of the information. For example, a class with city/state/zip fields could instead have one Address field.

Example

class Person {
   protected $one;
   private $two;
   private $three;
   [... many more fields ...]
}

Source https://phpmd.org/rules/codesize.html#toomanyfields

Method preProcessAjax has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function preProcessAjax(\App\Request $request)
    {
        $moduleName = $request->getModule(false);
        $view = $request->getByType('view', 2);
        if ($this->modalId) {
Severity: Minor
Found in app/Controller/Modal.php - About 1 hr to fix

    Avoid unused parameters such as '$request'.
    Open

        protected function preProcessTplName(\App\Request $request)
    Severity: Minor
    Found in app/Controller/Modal.php by phpmd

    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

    syntax error, unexpected 'bool' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
    Open

        protected bool $blurBackground = false;
    Severity: Critical
    Found in app/Controller/Modal.php by phan

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

                $pageTitle = \App\Language::translate($moduleName, $moduleName);
    Severity: Minor
    Found in app/Controller/Modal.php by phpmd

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

                $pageTitle = \App\Language::translate($this->pageTitle, $moduleName);
    Severity: Minor
    Found in app/Controller/Modal.php by phpmd

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

            } else {
                $pageTitle = \App\Language::translate($moduleName, $moduleName);
            }
    Severity: Minor
    Found in app/Controller/Modal.php by phpmd

    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

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

        public $headerClass = '';
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var string
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var string[]
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * Show modal header.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var string
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $modalId = '';
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var string
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * The name of the success button icon.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var string
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var bool
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var bool Auto register events
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var string
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * The name of the success button.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $successBtn = 'LBL_SAVE';
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('VIEW', $view);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('MODAL_CSS', $this->getModalCss($request));
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $this->showHeader = false;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $this->showFooter = false;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            return $this->showFooter;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * The name of the danger button.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var string
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $dangerBtn = 'LBL_CANCEL';
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $autoRegisterEvents = true;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $moduleName = $request->getModule(false);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $this->modalData['mode'] = $request->getByType('mode', 'Alnum');
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @return \Vtiger_CssScript_Model[]
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            return 'Modals/Header.tpl';
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * Modal icon.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * Modal data.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var string
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /** @var bool Blur background */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('MODULE_NAME', $moduleName);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $viewer->assign('BTN_SUCCESS_ICON', $this->successBtnIcon);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $viewer->assign('BTN_DANGER', $this->dangerBtn);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $lockExit = false;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $showFooter = true;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        protected bool $draggable = true;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('MODAL_TITLE', $this->getPageTitle($request));
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('MODAL_SCRIPTS', $this->getModalScripts($request));
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * Get modal css files that need to loaded in the modal.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /** {@inheritdoc} */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /** {@inheritdoc} */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $successBtnIcon = 'fas fa-check';
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * Block the window closing.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        protected $pageTitle;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            if ($request->has('mode')) {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('LOCK_EXIT', $this->lockExit);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('REGISTER_EVENTS', $this->autoRegisterEvents);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * Get modal scripts files that need to loaded in the modal.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewName = $request->getByType('view', 2);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $moduleName = $request->getModule();
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * Pre process template name.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        protected function preProcessTplName(\App\Request $request)
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('MODULE', $moduleName);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            if ($this->showHeader) {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $viewer->view('Modals/Footer.tpl', $request->getModule());
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            return $this->checkAndConvertCssStyles([
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            ]);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * Modal size.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * Header class.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('MODAL_ID', $this->modalId);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('BLUR_BACKGROUND', $this->blurBackground);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            if ($this->showFooter()) {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $viewer = $this->getViewer($request);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewName = $request->getByType('view', 2);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                "modules.{$request->getModule()}.$viewName",
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $modalData = [];
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var string
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * The name of the footerClass.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /** @var bool Draggable */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            if ($this->modalId) {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('MODAL_VIEW', $this);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $viewer->view($this->preProcessTplName($request), $moduleName);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            ]);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * Modal ID.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public function getPageTitle(\App\Request $request)
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            return $pageTitle;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @return string
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        protected function showFooter()
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $modalIcon = '';
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /** @var string Page title. */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public function preProcessAjax(\App\Request $request)
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $this->modalData['view'] = $view;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $this->modalData['module'] = $moduleName;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer = $this->getViewer($request);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            if ($request->getBoolean('onlyBody')) {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $viewer->assign('BTN_SUCCESS', $this->successBtn);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public function getModalCss(\App\Request $request)
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            if (isset($this->pageTitle)) {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * Show modal footer.
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        protected bool $blurBackground = false;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            } else {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $view = $request->getByType('view', 2);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $this->modalData['modalid'] = $this->modalId;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $viewer->assign('FOOTER_CLASS', $this->footerClass);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @param \App\Request $request
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $pageTitle = \App\Language::translate($this->pageTitle, $moduleName);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $modalSize = 'modal-lg';
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $showHeader = true;
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /** {@inheritdoc} */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                "modules.{$request->getModule()}.resources.$viewName",
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        {
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('PARENT_MODULE', $request->getByType('parent', 2));
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public function postProcessAjax(\App\Request $request)
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public function getModalScripts(\App\Request $request)
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                "modules.Vtiger.resources.$viewName",
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var bool
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            $viewer->assign('MODAL_DRAGGABLE', $this->draggable);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @return \Vtiger_JsScript_Model[]
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            return $this->checkAndConvertJsScripts([
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @param \App\Request $request
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                $pageTitle = \App\Language::translate($moduleName, $moduleName);
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @param \App\Request $request
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        public $footerClass = '';
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         * @var bool
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /** {@inheritdoc} */
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

            }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

                "modules.Vtiger.$viewName",
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

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

        }
    Severity: Minor
    Found in app/Controller/Modal.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status