YetiForceCompany/YetiForceCRM

View on GitHub
modules/OSSMailView/views/Preview.php

Summary

Maintainability
A
2 hrs
Test Coverage
F
0%

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

    public function process(App\Request $request)
    {
        $moduleName = $request->getModule();
        $record = $request->getInteger('record');
        $load = $request->get('noloadlibs');
Severity: Minor
Found in modules/OSSMailView/views/Preview.php - About 1 hr to fix

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

        public function process(App\Request $request)
        {
            $moduleName = $request->getModule();
            $record = $request->getInteger('record');
            $load = $request->get('noloadlibs');
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.php - About 25 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

        public function preProcess(App\Request $request, $display = true)
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.php by phpmd

    BooleanArgumentFlag

    Since: 1.4.0

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

    Example

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

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

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

                throw new \App\Exceptions\NoPermittedToRecord('ERR_NO_PERMISSIONS_FOR_THE_RECORD', 406);
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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\Purifier' in method 'process'.
    Open

                $content = nl2br(\App\Layout::truncateHtml(\App\Purifier::purify($recordModel->get('content')), 'full'));
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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 'OSSMailView_Record_Model' in method 'process'.
    Open

            $recordModel = OSSMailView_Record_Model::getInstanceById($record, $moduleName);
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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

                    $firstLetter = '<span class="fas fa-exclamation-triangle text-danger" title="' . \App\Purifier::encodeHtml($verifySender['info']) . '"></span>';
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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 '59', column '9').
    Open

        public function process(App\Request $request)
        {
            $moduleName = $request->getModule();
            $record = $request->getInteger('record');
            $load = $request->get('noloadlibs');
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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\TextUtils' in method 'process'.
    Open

            $firstLetter = strtoupper(App\TextUtils::textTruncate(trim(strip_tags($recordModel->getDisplayValue('from_email'))), 1, false));
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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 process uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

            } else {
                $content = nl2br(\App\Layout::truncateHtml(\App\Purifier::purify($recordModel->get('content')), 'full'));
            }
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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

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

                $content = nl2br(\App\Layout::truncateHtml(\App\Purifier::purify($recordModel->get('content')), 'full'));
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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\Rbl' in method 'process'.
    Open

                $rblInstance = \App\Mail\Rbl::getInstance([]);
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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

            $recordPermission = \App\Privilege::isPermitted($moduleName, 'DetailView', $recordId);
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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' in method 'process'.
    Open

            if (\App\Utils::isHtml($recordModel->get('content'))) {
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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 "content" 3 times.
    Open

            if (\App\Utils::isHtml($recordModel->get('content'))) {
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.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.

    Avoid unused parameters such as '$request'.
    Open

        public function getModalScripts(App\Request $request)
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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

    Avoid unused parameters such as '$display'.
    Open

        public function preProcess(App\Request $request, $display = true)
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('SHOW_FOOTER', false);
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('FIRSTLETTER', $firstLetter);
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('ATTACHMENTS', $recordModel->getAttachments());
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('CC', $recordModel->getDisplayValue('cc_email'));
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('ISMODAL', $request->isAjax());
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('NOLOADLIBS', $load);
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('RECORD', $record);
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('SRECORD', $request->getInteger('srecord'));
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('OWNER', $recordModel->getDisplayValue('assigned_user_id'));
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('SENT', $recordModel->getDisplayValue('createdtime'));
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('RECORD_MODEL', $recordModel);
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('MODULENAME', $moduleName);
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('SMODULENAME', $request->getByType('smodule'));
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('TO', explode(',', $recordModel->getDisplayValue('to_email')));
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Argument 4 (length) is 'full' but \OSSMailView_Record_Model::getDisplayValue() takes bool|false|int defined at /code/modules/Vtiger/models/Record.php:416
    Open

                $content = $recordModel->getDisplayValue('content', false, false, 'full');
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('FIRSTLETTERBG', $firstLetterBg);
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('SCRIPTS', $this->getModalScripts($request));
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('FOOTER_SCRIPTS', $this->getFooterScripts($request));
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('BCC', $recordModel->getDisplayValue('bcc_email'));
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

    Call to undeclared method \Vtiger_Viewer::assign
    Open

            $viewer->assign('CONTENT', $content);
    Severity: Critical
    Found in modules/OSSMailView/views/Preview.php by phan

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

    class OSSMailView_Preview_View extends Vtiger_Index_View

    The class OSSMailView_Preview_View is not named in CamelCase.
    Open

    class OSSMailView_Preview_View extends Vtiger_Index_View
    {
        const TYPE_COLORS = [
            0 => 'bgGreen',
            1 => 'bgDanger',
    Severity: Minor
    Found in modules/OSSMailView/views/Preview.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

        const TYPE_COLORS = [

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

        ];

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

            $recordPermission = \App\Privilege::isPermitted($moduleName, 'DetailView', $recordId);

    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 = $this->getViewer($request);

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

            $viewer->assign('FOOTER_SCRIPTS', $this->getFooterScripts($request));

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

            ]);

    Line exceeds 120 characters; contains 136 characters
    Open

            $firstLetter = strtoupper(App\TextUtils::textTruncate(trim(strip_tags($recordModel->getDisplayValue('from_email'))), 1, false));

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

            if ($recordModel->get('orginal_mail')) {

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

                    $firstLetter = '<span class="fas fa-exclamation-triangle text-danger" title="' . \App\Purifier::encodeHtml($verifySender['info']) . '"></span>';

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

            $viewer->assign('FIRSTLETTER', $firstLetter);

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

            $viewer->assign('RECORD', $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

            $viewer->assign('TO', explode(',', $recordModel->getDisplayValue('to_email')));

    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('NOLOADLIBS', $load);

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

            $viewer->assign('CC', $recordModel->getDisplayValue('cc_email'));

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

                $rblInstance->parse();

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

            }

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

        }

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

        {

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

            return $this->checkAndConvertJsScripts([

    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

        {

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

            $viewer->assign('BCC', $recordModel->getDisplayValue('bcc_email'));

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

            $viewer->assign('RECORD_MODEL', $recordModel);

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

            $firstLetter = strtoupper(App\TextUtils::textTruncate(trim(strip_tags($recordModel->getDisplayValue('from_email'))), 1, false));

    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

            return true;

    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('MODULENAME', $moduleName);

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

            $viewer->assign('SMODULENAME', $request->getByType('smodule'));

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

            2 => 'bgBlue',

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

            $recordModel = OSSMailView_Record_Model::getInstanceById($record, $moduleName);

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

                $content = nl2br(\App\Layout::truncateHtml(\App\Purifier::purify($recordModel->get('content')), 'full'));

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

            $viewer->assign('SENT', $recordModel->getDisplayValue('createdtime'));

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

            1 => 'bgDanger',

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

            $viewer->assign('ISMODAL', $request->isAjax());

    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

        }

    Line exceeds 120 characters; contains 160 characters
    Open

                    $firstLetter = '<span class="fas fa-exclamation-triangle text-danger" title="' . \App\Purifier::encodeHtml($verifySender['info']) . '"></span>';

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

                    $firstLetterBg = 'bg-warning';

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

            $viewer->assign('OWNER', $recordModel->getDisplayValue('assigned_user_id'));

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

            parent::preProcess($request, false);

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

            $viewer->assign('FIRSTLETTERBG', $firstLetterBg);

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

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

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

            $load = $request->get('noloadlibs');

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

                $content = $recordModel->getDisplayValue('content', false, false, 'full');

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

            $viewer->assign('SCRIPTS', $this->getModalScripts($request));

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

            $viewer->assign('SRECORD', $request->getInteger('srecord'));

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

            0 => 'bgGreen',

    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

        {

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

            if (\App\Utils::isHtml($recordModel->get('content'))) {

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

            }

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

                $rblInstance->set('rawBody', $recordModel->get('orginal_mail'));

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

            $viewer->view('preview.tpl', 'OSSMailView');

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

                if (($verifySender = $rblInstance->verifySender()) && !$verifySender['status']) {

    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('CONTENT', $content);

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

            $viewer->assign('ATTACHMENTS', $recordModel->getAttachments());

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

            }

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

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

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

            $viewer->assign('SHOW_FOOTER', false);

    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

                '~layouts/basic/modules/OSSMailView/resources/preview.js',

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

            if (!$recordPermission) {

    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

            $firstLetterBg = self::TYPE_COLORS[$recordModel->get('type')];

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

                $rblInstance = \App\Mail\Rbl::getInstance([]);

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

    class OSSMailView_Preview_View extends Vtiger_Index_View

    There are no issues that match your filters.

    Category
    Status