YetiForceCompany/YetiForceCRM

View on GitHub
modules/OSSMailView/models/ListView.php

Summary

Maintainability
A
2 hrs
Test Coverage
A
93%

Method getListViewMassActions has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getListViewMassActions($linkParams)
    {
        $currentUserModel = Users_Privileges_Model::getCurrentUserPrivilegesModel();
        $moduleModel = $this->getModule();
        $massActionLinks = [];
Severity: Major
Found in modules/OSSMailView/models/ListView.php - About 2 hrs to fix

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

        public function getListViewMassActions($linkParams)
        {
            $currentUserModel = Users_Privileges_Model::getCurrentUserPrivilegesModel();
            $moduleModel = $this->getModule();
            $massActionLinks = [];
    Severity: Minor
    Found in modules/OSSMailView/models/ListView.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

    Avoid using undefined variables such as '$links' which will lead to PHP notices.
    Open

            return $links;

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

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

    Avoid using undefined variables such as '$links' which will lead to PHP notices.
    Open

                $links['LISTVIEWMASSACTION'][] = Vtiger_Link_Model::getInstanceFromValues($massActionLink);

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

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

    Avoid using static access to class 'Users_Privileges_Model' in method 'getListViewMassActions'.
    Open

            $currentUserModel = Users_Privileges_Model::getCurrentUserPrivilegesModel();

    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_Link_Model' in method 'getListViewMassActions'.
    Open

                $links['LISTVIEWMASSACTION'][] = Vtiger_Link_Model::getInstanceFromValues($massActionLink);

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

            if (\App\Mail::checkInternalMailClient() && \App\Privilege::isPermitted($moduleModel->getName(), 'CreateView')) {

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

            if (\App\Mail::checkInternalMailClient() && \App\Privilege::isPermitted($moduleModel->getName(), 'CreateView')) {

    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 "index.php?module=" 4 times.
    Open

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassState&state=Active&sourceView=List',

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "linkurl" 7 times.
    Open

                    'linkurl' => "javascript:window.location='index.php?module=OSSMail&view=Compose'",

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "LISTVIEWMASSACTION" 7 times.
    Open

                    'linktype' => 'LISTVIEWMASSACTION',

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "linklabel" 7 times.
    Open

                    'linklabel' => 'LBL_CREATEMAIL',

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "linkicon" 7 times.
    Open

                    'linkicon' => 'fas fa-plus',

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "linktype" 7 times.
    Open

                    'linktype' => 'LISTVIEWBASIC',

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "dataUrl" 4 times.
    Open

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassState&state=Active&sourceView=List',

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "js-mass-record-event" 4 times.
    Open

                    'linkclass' => 'js-mass-record-event',

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

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

                    'linkclass' => 'modCT_' . $moduleModel->getName(),

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "javascript:" 4 times.
    Open

                    'linkurl' => 'javascript:',

    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.

    Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
    Open

                    'linkclass' => 'modCT_' . $moduleModel->getName(),

    Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
    Open

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassState&state=Archived&sourceView=List',

    Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
    Open

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassState&state=Trash&sourceView=List',

    Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
    Open

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassState&state=Active&sourceView=List',

    Variable $links was undeclared, but array fields are being added to it.
    Open

                $links['LISTVIEWMASSACTION'][] = Vtiger_Link_Model::getInstanceFromValues($massActionLink);

    Argument 1 (moduleName) is false but \App\Privilege::isPermitted() takes string defined at /code/app/Privilege.php:48
    Open

            if (\App\Mail::checkInternalMailClient() && \App\Privilege::isPermitted($moduleModel->getName(), 'CreateView')) {

    Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
    Open

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassDelete&sourceView=List',

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

    class OSSMailView_ListView_Model extends Vtiger_ListView_Model

    The class OSSMailView_ListView_Model is not named in CamelCase.
    Open

    class OSSMailView_ListView_Model extends Vtiger_ListView_Model
    {
        /** {@inheritdoc} */
        public function getBasicLinks()
        {

    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

                $massActionLinks[] = [

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

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassState&state=Archived&sourceView=List',

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

                    'linkclass' => 'js-mass-record-event',

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

            if ($moduleModel->isPermitted('MassTrash')) {

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

            return $links;

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

        {

    Line exceeds 120 characters; contains 150 characters
    Open

                    'linkurl' => 'javascript:OSSMailView_List_Js.triggerChangeType("index.php?module=' . $moduleModel->get('name') . '&view=ChangeType")',

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

                $massActionLinks[] = [

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

                    'linklabel' => 'LBL_MASS_DELETE',

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

                $links['LISTVIEWMASSACTION'][] = Vtiger_Link_Model::getInstanceFromValues($massActionLink);

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

        }

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

                    'linkurl' => "javascript:window.location='index.php?module=OSSMail&view=Compose'",

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

                ];

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

                    'linkurl' => 'javascript:',

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

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassState&state=Trash&sourceView=List',

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

                    'linkicon' => 'fas fa-eraser',

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

            $basicLinks = [];

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

                    'linkurl' => 'javascript:OSSMailView_List_Js.bindMails("index.php?module=' . $moduleModel->get('name') . '&action=BindMails")',

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

                    'linkicon' => 'yfi yfi-full-editing-view',

    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

            }

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

            if ($currentUserModel->hasModuleActionPermission($moduleModel->getId(), 'EditView')) {

    Line exceeds 120 characters; contains 143 characters
    Open

                    'linkurl' => 'javascript:OSSMailView_List_Js.bindMails("index.php?module=' . $moduleModel->get('name') . '&action=BindMails")',

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

                    'linklabel' => 'LBL_ChangeType',

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

                    'linkurl' => 'javascript:',

    Line exceeds 120 characters; contains 128 characters
    Open

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassState&state=Archived&sourceView=List',

    Line exceeds 120 characters; contains 125 characters
    Open

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassState&state=Trash&sourceView=List',

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

                $massActionLinks[] = [

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

        {

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

                    'linktype' => 'LISTVIEWBASIC',

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

            return $basicLinks;

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

                    'linktype' => 'LISTVIEWMASSACTION',

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

            }

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

                    'linktype' => 'LISTVIEWMASSACTION',

    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

                $massActionLinks[] = [

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

            if ($moduleModel->isPermitted('MassActive')) {

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

            if ($moduleModel->isPermitted('MassArchived')) {

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

                    'linklabel' => 'LBL_MASS_ARCHIVE',

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

            if ($moduleModel->isPermitted('MassDelete')) {

    Line exceeds 120 characters; contains 121 characters
    Open

            if (\App\Mail::checkInternalMailClient() && \App\Privilege::isPermitted($moduleModel->getName(), 'CreateView')) {

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

                    'linkclass' => 'modCT_' . $moduleModel->getName(),

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

                    'linkicon' => 'fas fa-undo-alt',

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

                ];

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

                    'linkurl' => 'javascript:OSSMailView_List_Js.triggerChangeType("index.php?module=' . $moduleModel->get('name') . '&view=ChangeType")',

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

                    'linklabel' => 'LBL_MASS_MOVE_TO_TRASH',

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

                    'linkicon' => 'fas fa-trash-alt',

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

                    'linkclass' => 'js-mass-record-event',

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

            foreach ($massActionLinks as $massActionLink) {

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

                $basicLinks[] = [

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

                    'linklabel' => 'LBL_CREATEMAIL',

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

                    'linkicon' => 'fas fa-plus',

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

                    'linkicon' => 'fas fa-redo-alt',

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

                    'linklabel' => 'LBL_MASS_ACTIVATE',

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

                    'linkclass' => 'js-mass-record-event',

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

                    'linktype' => 'LISTVIEWMASSACTION',

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

            $currentUserModel = Users_Privileges_Model::getCurrentUserPrivilegesModel();

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

                    'linkicon' => 'fas fa-archive',

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

                    'linkurl' => 'javascript:',

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

            if (\App\Mail::checkInternalMailClient() && \App\Privilege::isPermitted($moduleModel->getName(), 'CreateView')) {

    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

                    'linklabel' => 'LBL_BindMails',

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

                    'linkurl' => 'javascript:',

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

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassState&state=Active&sourceView=List',

    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

        /** {@inheritdoc} */

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

        public function getBasicLinks()

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

        }

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

                    'linktype' => 'LISTVIEWMASSACTION',

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

                $massActionLinks[] = [

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

                    'linktype' => 'LISTVIEWMASSACTION',

    Line exceeds 120 characters; contains 126 characters
    Open

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassState&state=Active&sourceView=List',

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

            }

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

                    'linkclass' => 'js-mass-record-event',

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

                    'dataUrl' => 'index.php?module=' . $moduleModel->getName() . '&action=MassDelete&sourceView=List',

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

            $moduleModel = $this->getModule();

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

            $moduleModel = $this->getModule();

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

                    'linktype' => 'LISTVIEWMASSACTION',

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

                    'showLabel' => 1,

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

        public function getListViewMassActions($linkParams)

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

            $massActionLinks = [];

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

                $massActionLinks[] = [

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

                ];

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

    class OSSMailView_ListView_Model extends Vtiger_ListView_Model

    There are no issues that match your filters.

    Category
    Status