YetiForceCompany/YetiForceCRM

View on GitHub
modules/Vtiger/views/MeetingModal.php

Summary

Maintainability
A
2 hrs
Test Coverage
F
0%

Method process has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function process(App\Request $request)
    {
        $this->initMeetingData($request);
        $url = $this->meetingUrl;
        $moduleName = $request->getModule();
Severity: Minor
Found in modules/Vtiger/views/MeetingModal.php - About 1 hr to fix

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

        public function process(App\Request $request)
        {
            $this->initMeetingData($request);
            $url = $this->meetingUrl;
            $moduleName = $request->getModule();
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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 process() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
    Open

        public function process(App\Request $request)
        {
            $this->initMeetingData($request);
            $url = $this->meetingUrl;
            $moduleName = $request->getModule();
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.php by phpmd

    CyclomaticComplexity

    Since: 0.1

    Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

    Example

    // Cyclomatic Complexity = 11
    class Foo {
    1   public function example() {
    2       if ($a == $b) {
    3           if ($a1 == $b1) {
                    fiddle();
    4           } elseif ($a2 == $b2) {
                    fiddle();
                } else {
                    fiddle();
                }
    5       } elseif ($c == $d) {
    6           while ($c == $d) {
                    fiddle();
                }
    7        } elseif ($e == $f) {
    8           for ($n = 0; $n < $h; $n++) {
                    fiddle();
                }
            } else {
                switch ($z) {
    9               case 1:
                        fiddle();
                        break;
    10              case 2:
                        fiddle();
                        break;
    11              case 3:
                        fiddle();
                        break;
                    default:
                        fiddle();
                        break;
                }
            }
        }
    }

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

    The class Vtiger_MeetingModal_View has a coupling between objects value of 16. Consider to reduce the number of dependencies under 13.
    Open

    class Vtiger_MeetingModal_View extends \App\Controller\Modal
    {
        /** {@inheritdoc} */
        public $modalIcon = 'mdi mdi-card-account-phone';
        /** {@inheritdoc} */
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.php by phpmd

    CouplingBetweenObjects

    Since: 1.1.0

    A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

    Example

    class Foo {
        /**
         * @var \foo\bar\X
         */
        private $x = null;
    
        /**
         * @var \foo\bar\Y
         */
        private $y = null;
    
        /**
         * @var \foo\bar\Z
         */
        private $z = null;
    
        public function setFoo(\Foo $foo) {}
        public function setBar(\Bar $bar) {}
        public function setBaz(\Baz $baz) {}
    
        /**
         * @return \SplObjectStorage
         * @throws \OutOfRangeException
         * @throws \InvalidArgumentException
         * @throws \ErrorException
         */
        public function process(\Iterator $it) {}
    
        // ...
    }

    Source https://phpmd.org/rules/design.html#couplingbetweenobjects

    Missing class import via use statement (line '61', column '28').
    Open

                    $date->setTimezone(new \DateTimeZone(\App\User::getCurrentUserModel()->getDetail('time_zone')));
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.php by phpmd

    MissingImport

    Since: 2.7.0

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

    Example

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

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

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

                throw new \App\Exceptions\NoPermittedToRecord('ERR_NO_PERMISSIONS_FOR_THE_RECORD', 406);
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.php by phpmd

    MissingImport

    Since: 2.7.0

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

    Example

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

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

    Missing class import via use statement (line '59', column '17').
    Open

                    $date = new \DateTime();
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.php by phpmd

    MissingImport

    Since: 2.7.0

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

    Example

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

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

    Avoid using static access to class '\App\Json' in method 'process'.
    Open

            $viewer->assign('TEMPLATE_PARAMS', \App\Json::encode(['meetingUrl' => $url, 'meetingExpires' => $expires ?? '']));
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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\TextParser' in method 'process'.
    Open

                $textParser = \App\TextParser::getInstanceById($recordId, $moduleName);
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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\Record' in method 'getPageTitle'.
    Open

            $label = \App\Record::getLabel($request->getInteger('record'));
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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\Privilege' in method 'checkPermission'.
    Open

            if ($request->isEmpty('record', true) || !$fieldModel || !$fieldModel->isViewable() || !\App\Privilege::isPermitted($moduleName, 'DetailView', $request->getInteger('record'))) {
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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 assigning values to variables in if clauses and the like (line '67', column '42').
    Open

        public function process(App\Request $request)
        {
            $this->initMeetingData($request);
            $url = $this->meetingUrl;
            $moduleName = $request->getModule();
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.php by phpmd

    IfStatementAssignment

    Since: 2.7.0

    Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($foo = 'bar') { // possible typo
                // ...
            }
            if ($baz = 0) { // always false
                // ...
            }
        }
    }

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

    Avoid using static access to class '\App\Mail' in method 'process'.
    Open

            $sendInvitation = ($isActive || $simpleUrl) && \App\Mail::checkInternalMailClient();
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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\Config' in method 'process'.
    Open

            $templateId = \App\Config::component('MeetingService', 'emailTemplateModule', [])[$moduleName] ?? \App\Config::component('MeetingService', 'emailTemplateDefault', 0);
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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\MeetingService' in method 'process'.
    Open

            $meeting = \App\MeetingService::getInstance();
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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\Mail' in method 'process'.
    Open

            if ($sendInvitation && $templateId && ($template = \App\Mail::getTemplate($templateId, false))) {
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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\User' in method 'process'.
    Open

                $userRoomUrl = $meeting->getUrl($data, \App\User::getCurrentUserRealId(), $this->moderator);
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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\Utils\Completions' in method 'process'.
    Open

                $templateData = $textParser->setContent(\App\Utils\Completions::decode(\App\Purifier::purifyHtml($template['content'])))->parse()->getContent();
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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\Purifier' in method 'process'.
    Open

                $templateData = $textParser->setContent(\App\Utils\Completions::decode(\App\Purifier::purifyHtml($template['content'])))->parse()->getContent();
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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 '\Vtiger_Record_Model' in method 'initMeetingData'.
    Open

            $recordModel = \Vtiger_Record_Model::getInstanceById($request->getInteger('record'), $request->getModule());
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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\Config' in method 'process'.
    Open

    }
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.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

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

            if ($request->isEmpty('record', true) || !$fieldModel || !$fieldModel->isViewable() || !\App\Privilege::isPermitted($moduleName, 'DetailView', $request->getInteger('record'))) {
    Severity: Critical
    Found in modules/Vtiger/views/MeetingModal.php by sonar-php

    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 method decode from undeclared class \App\Utils\Completions
    Open

                $templateData = $textParser->setContent(\App\Utils\Completions::decode(\App\Purifier::purifyHtml($template['content'])))->parse()->getContent();
    Severity: Critical
    Found in modules/Vtiger/views/MeetingModal.php by phan

    Call to method getInstanceById from undeclared class \App\TextParser (Did you mean class \Tests\App\TextParser)
    Open

                $textParser = \App\TextParser::getInstanceById($recordId, $moduleName);
    Severity: Critical
    Found in modules/Vtiger/views/MeetingModal.php by phan

    Call to undeclared method \Vtiger_MeetingModal_View::getViewer
    Open

            $viewer = $this->getViewer($request);
    Severity: Critical
    Found in modules/Vtiger/views/MeetingModal.php by phan

    Reference to undeclared class \App\Controller\Modal
    Open

            ]), parent::getModalScripts($request));
    Severity: Critical
    Found in modules/Vtiger/views/MeetingModal.php by phan

    Class extends undeclared class \App\Controller\Modal
    Open

    class Vtiger_MeetingModal_View extends \App\Controller\Modal
    Severity: Critical
    Found in modules/Vtiger/views/MeetingModal.php by phan

    Call to undeclared method \Vtiger_MeetingModal_View::checkAndConvertJsScripts
    Open

            return array_merge($this->checkAndConvertJsScripts([
    Severity: Critical
    Found in modules/Vtiger/views/MeetingModal.php by phan

    Call to method getCurrentUserRealId from undeclared class \App\User (Did you mean class \Tests\App\User)
    Open

                $userRoomUrl = $meeting->getUrl($data, \App\User::getCurrentUserRealId(), $this->moderator);
    Severity: Critical
    Found in modules/Vtiger/views/MeetingModal.php by phan

    Reference to undeclared class \App\Controller\Modal
    Open

            return $label ? $label : parent::getPageTitle($request);
    Severity: Critical
    Found in modules/Vtiger/views/MeetingModal.php by phan

    Call to method getCurrentUserModel from undeclared class \App\User (Did you mean class \Tests\App\User)
    Open

                    $date->setTimezone(new \DateTimeZone(\App\User::getCurrentUserModel()->getDetail('time_zone')));
    Severity: Critical
    Found in modules/Vtiger/views/MeetingModal.php by phan

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

    class Vtiger_MeetingModal_View extends \App\Controller\Modal

    The class Vtiger_MeetingModal_View is not named in CamelCase.
    Open

    class Vtiger_MeetingModal_View extends \App\Controller\Modal
    {
        /** {@inheritdoc} */
        public $modalIcon = 'mdi mdi-card-account-phone';
        /** {@inheritdoc} */
    Severity: Minor
    Found in modules/Vtiger/views/MeetingModal.php by phpmd

    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

        /** {@inheritdoc} */

    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

            $meeting = \App\MeetingService::getInstance();

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

        /**

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

         *

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

        {

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

         * @var string Meeting URL

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

        {

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

            $templateData = $userRoomUrl = '';

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

                    $date->setTimezone(new \DateTimeZone(\App\User::getCurrentUserModel()->getDetail('time_zone')));

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

            $this->initMeetingData($request);

    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

        public function getModalScripts(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

            $url = $this->meetingUrl;

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

                $userRoomUrl = $meeting->getUrl($data, \App\User::getCurrentUserRealId(), $this->moderator);

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

        public function initMeetingData(App\Request $request)

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

            $label = \App\Record::getLabel($request->getInteger('record'));

    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 $showFooter = false;

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

            if ($request->isEmpty('record', true) || !$fieldModel || !$fieldModel->isViewable() || !\App\Privilege::isPermitted($moduleName, 'DetailView', $request->getInteger('record'))) {

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

            if ($isActive) {

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

            $templateId = \App\Config::component('MeetingService', 'emailTemplateModule', [])[$moduleName] ?? \App\Config::component('MeetingService', 'emailTemplateDefault', 0);

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

            $viewer->assign('MEETING_GUEST_URL', $url);

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

        }

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

         * Initiation.

    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

        protected $meetingUrl = '';

    Line exceeds 120 characters; contains 185 characters
    Open

            if ($request->isEmpty('record', true) || !$fieldModel || !$fieldModel->isViewable() || !\App\Privilege::isPermitted($moduleName, 'DetailView', $request->getInteger('record'))) {

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

                $textParser->setParam('meetingUrl', $url);

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

            $viewer->assign('EMAIL_TEMPLATE', $templateData ? $templateId : 0);

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

            $recordModel = \Vtiger_Record_Model::getInstanceById($request->getInteger('record'), $request->getModule());

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

            $this->moderator = $recordModel->isEditable();

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

        public function getPageTitle(App\Request $request)

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

        public $successBtn = '';

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

        {

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

                    $expires = $date->format('Y-m-d H:i:s (T P)');

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

                }

    Line exceeds 120 characters; contains 122 characters
    Open

            $viewer->assign('TEMPLATE_PARAMS', \App\Json::encode(['meetingUrl' => $url, 'meetingExpires' => $expires ?? '']));

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

            return array_merge($this->checkAndConvertJsScripts([

    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

                $textParser->setParam('meetingExpires', $expires ?? '');

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

            }

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

            $this->meetingUrl = $recordModel->get($fieldName);

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

            return $label ? $label : parent::getPageTitle($request);

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

                'libraries.clipboard.dist.clipboard'

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

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

                $textParser = \App\TextParser::getInstanceById($recordId, $moduleName);

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

                $templateData = $textParser->setContent(\App\Utils\Completions::decode(\App\Purifier::purifyHtml($template['content'])))->parse()->getContent();

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

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

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

            $viewer->assign('SIMPLE_URL', $simpleUrl);

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

            $fieldName = $request->getByType('field', \App\Purifier::ALNUM);

    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

            $simpleUrl = $meeting->isEmpty('url') || 0 !== strpos($url, $meeting->get('url'));

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

            if ($sendInvitation && $templateId && ($template = \App\Mail::getTemplate($templateId, false))) {

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

            $viewer->assign('SEND_INVITATION', $sendInvitation && $templateData);

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

        public function checkPermission(App\Request $request)

    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

                throw new \App\Exceptions\NoPermittedToRecord('ERR_NO_PERMISSIONS_FOR_THE_RECORD', 406);

    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

            $sendInvitation = ($isActive || $simpleUrl) && \App\Mail::checkInternalMailClient();

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

         */

    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

            $viewer->assign('TEMPLATE_PARAMS', \App\Json::encode(['meetingUrl' => $url, 'meetingExpires' => $expires ?? '']));

    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 $modalIcon = 'mdi mdi-card-account-phone';

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

                    $date = new \DateTime();

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

                    $date->setTimestamp($data['exp']);

    Line exceeds 120 characters; contains 156 characters
    Open

                $templateData = $textParser->setContent(\App\Utils\Completions::decode(\App\Purifier::purifyHtml($template['content'])))->parse()->getContent();

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

        }

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

         * @var bool Moderator

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

        }

    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

        protected $moderator = false;

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

            $fieldModel = Vtiger_Module_Model::getInstance($moduleName)->getFieldByName($request->getByType('field', \App\Purifier::ALNUM));

    Line exceeds 120 characters; contains 136 characters
    Open

            $fieldModel = Vtiger_Module_Model::getInstance($moduleName)->getFieldByName($request->getByType('field', \App\Purifier::ALNUM));

    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

            $isActive = $meeting->isActive() && $meeting->validateUrl($url);

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

                $data = $meeting->getDataFromUrl($url);

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

                if (!empty($data['exp'])) {

    Line exceeds 120 characters; contains 174 characters
    Open

            $templateId = \App\Config::component('MeetingService', 'emailTemplateModule', [])[$moduleName] ?? \App\Config::component('MeetingService', 'emailTemplateDefault', 0);

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

            $viewer->assign('EMAIL_TEMPLATE_DATA', $templateData);

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

            $viewer->view('Modals/MeetingModal.tpl', $request->getModule());

    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

        /** {@inheritdoc} */

    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('MEETING_URL', $userRoomUrl);

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

            ]), parent::getModalScripts($request));

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

    class Vtiger_MeetingModal_View extends \App\Controller\Modal

    There are no issues that match your filters.

    Category
    Status