YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/Vtiger/models/Menu.php

Summary

Maintainability
C
7 hrs
Test Coverage
F
4%

Function getMenu has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public static function getMenu(string $moduleName, string $view, string $mode = '', &$selected = null): array
    {
        $selectedFieldId = 0;
        $selectedBlockId = 0;
        $menu = [];
Severity: Minor
Found in modules/Settings/Vtiger/models/Menu.php - About 4 hrs 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

Method getMenu has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function getMenu(string $moduleName, string $view, string $mode = '', &$selected = null): array
    {
        $selectedFieldId = 0;
        $selectedBlockId = 0;
        $menu = [];
Severity: Major
Found in modules/Settings/Vtiger/models/Menu.php - About 2 hrs to fix

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

        public static function getSelectedFieldFromModule(string $moduleName): ?Settings_Vtiger_MenuItem_Model
        {
            foreach (self::getAll() as $menuModel) {
                foreach ($menuModel->getMenuItems() as $menuItem) {
                    if ($menuItem->getParam('module') === $moduleName && $menuItem->isPermitted()) {
    Severity: Minor
    Found in modules/Settings/Vtiger/models/Menu.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 getMenu() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10.
    Open

        public static function getMenu(string $moduleName, string $view, string $mode = '', &$selected = null): array
        {
            $selectedFieldId = 0;
            $selectedBlockId = 0;
            $menu = [];

    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

    Refactor this function to reduce its Cognitive Complexity from 28 to the 15 allowed.
    Open

        public static function getMenu(string $moduleName, string $view, string $mode = '', &$selected = null): array

    Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

    See

    Missing class import via use statement (line '207', column '19').
    Open

            $rowData = (new App\Db\Query())

    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 '156', column '23').
    Open

                $dataReader = (new App\Db\Query())->from(self::$menusTable)->orderBy(['sequence' => SORT_ASC])->createCommand()->query();

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

            return App\Purifier::decodeHtml((string) $this->get('linkto'));

    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\Cache' in method 'getAll'.
    Open

            if (!\App\Cache::has($cacheName, $key)) {

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

                        'name' => \App\Language::translate($menuModel->getLabel(), 'Settings::Vtiger'),

    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\Cache' in method 'clearCache'.
    Open

            \App\Cache::delete('MenuItemAll', \Settings_Vtiger_MenuItem_Model::ACTIVE);

    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\Security\AdminAccess' in method 'isPermitted'.
    Open

            return (empty($this->getParam('module')) || \App\Security\AdminAccess::isPermitted($this->getParam('module'), $userId))

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

                        'name' => \App\Language::translate($menuModel->getLabel(), 'Settings::Vtiger'),

    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\Cache' in method 'clearCache'.
    Open

            \App\Cache::delete('MenuItemAll', \Settings_Vtiger_MenuItem_Model::INACTIVE);

    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\Cache' in method 'getAll'.
    Open

            return \App\Cache::get($cacheName, $key);

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

                            $children[$fieldId]['addonIconTitle'] = App\Language::translate('LBL_PAID_FUNCTIONALITY');

    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\Cache' in method 'clearCache'.
    Open

            \App\Cache::delete('MenuAll', '');

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

                } else {
                    if (!$selectedBlockId && $menuModel->isSelected($moduleName, $view, $mode)) {
                        $selectedBlockId = $blockId;
                    }
                    $menu[$blockId] = [

    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 assigning values to variables in if clauses and the like (line '292', column '60').
    Open

        public static function getMenu(string $moduleName, string $view, string $mode = '', &$selected = null): array
        {
            $selectedFieldId = 0;
            $selectedBlockId = 0;
            $menu = [];

    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\Language' in method 'getMenu'.
    Open

                            'name' => \App\Language::translate($menuItem->get('name'), $menuItem->getModuleName()),

    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\Cache' in method 'getAll'.
    Open

                \App\Cache::save($cacheName, $key, $menuModels);

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

            $userId = $userId ?: \App\User::getCurrentUserId();

    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 '\vtlib\Functions' in method 'getParam'.
    Open

                $this->params = \vtlib\Functions::getQueryParams($this->getUrl());

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

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

    Avoid using static access to class 'Settings_Vtiger_MenuItem_Model' in method 'getMenuItems'.
    Open

            return Settings_Vtiger_MenuItem_Model::getAll($this->getId());

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

                            'moduleName' => $menuItem->getModuleName(),

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

                $dataReader = (new App\Db\Query())->from(self::$menusTable)->orderBy(['sequence' => SORT_ASC])->createCommand()->query();

    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 "Settings::Vtiger" 4 times.
    Open

                        'name' => \App\Language::translate($menuModel->getLabel(), 'Settings::Vtiger'),

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

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

    Noncompliant Code Example

    With the default threshold of 3:

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

    Compliant Solution

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

    Exceptions

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

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

            return $this->getParam('view') === $view && $this->getParam('module') === $moduleName && $this->getParam('mode') === $mode;

    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 "active" 5 times.
    Open

                            'active' => $selectedFieldId === $menuItem->getId(),

    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.

    Remove this unused "TYPE_LINK" private field.
    Open

        private const TYPE_LINK = 1;

    If a private field is declared but not used in the program, it can be considered dead code and should therefore be removed. This will improve maintainability because developers will not wonder what the variable is used for.

    Noncompliant Code Example

    class MyClass {
      private $foo = 4;                       //foo is unused
    
      public function compute($a) {
        return $a * 4;
      }
    }
    

    Compliant Solution

    class MyClass {
    
      public function compute($a) {
        return $a * 4;
      }
    }
    

    See

    Call to undeclared method \App\Db\Query::from
    Open

            $rowData = (new App\Db\Query())
    Severity: Critical
    Found in modules/Settings/Vtiger/models/Menu.php by phan

    Argument 2 (key) is 0 but \App\Cache::delete() takes string defined at /code/app/Cache.php:105
    Open

            \App\Cache::delete('MenuItemAll', \Settings_Vtiger_MenuItem_Model::ACTIVE);

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

            $userId = $userId ?: \App\User::getCurrentUserId();
    Severity: Critical
    Found in modules/Settings/Vtiger/models/Menu.php by phan

    Assigning false to property but \Settings_Vtiger_Menu_Model::$cacheInstance is array
    Open

        public static $cacheInstance = false;

    Saw unextractable annotation for comment '* @return <settings_vtiger_menu_model> instance'</settings_vtiger_menu_model>
    Open

         * @return <Settings_Vtiger_Menu_Model> instance

    Saw unextractable annotation for comment '* @return <settings_vtiger_menu_model> instance'</settings_vtiger_menu_model>
    Open

         * @return <Settings_Vtiger_Menu_Model> instance

    Argument 2 (key) is 1 but \App\Cache::delete() takes string defined at /code/app/Cache.php:105
    Open

            \App\Cache::delete('MenuItemAll', \Settings_Vtiger_MenuItem_Model::INACTIVE);

    Call to undeclared method \App\Db\Query::from
    Open

                $dataReader = (new App\Db\Query())->from(self::$menusTable)->orderBy(['sequence' => SORT_ASC])->createCommand()->query();
    Severity: Critical
    Found in modules/Settings/Vtiger/models/Menu.php by phan

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

    class Settings_Vtiger_Menu_Model extends \App\Base

    The class Settings_Vtiger_Menu_Model is not named in CamelCase.
    Open

    class Settings_Vtiger_Menu_Model extends \App\Base
    {
        /**
         * Menu type: Label.
         */

    CamelCaseClassName

    Since: 0.2

    It is considered best practice to use the CamelCase notation to name classes.

    Example

    class class_name {
    }

    Source

    Avoid variables with short names like $id. Configured minimum length is 3.
    Open

        public static function getInstanceById(int $id)

    ShortVariable

    Since: 0.2

    Detects when a field, local, or parameter has a very short name.

    Example

    class Something {
        private $q = 15; // VIOLATION - Field
        public static function main( array $as ) { // VIOLATION - Formal
            $r = 20 + $this->q; // VIOLATION - Local
            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                $r += $this->q;
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#shortvariable

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

         * Menu type: Link.

    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 static $menusTable = 'vtiger_settings_blocks';

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

        /**

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

         * Menu type: Label.

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

        private const TYPE_LINK = 1;

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

         * Function to get the Id of the Menu Model.

    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

        /**

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

         * @var array Parses the URL into variables

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

        protected $params;

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

        private const TYPE_LABEL = 0;

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

        protected static $menuId = 'blockid';

    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 App\Purifier::decodeHtml((string) $this->get('linkto'));

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

                && (empty($this->get('admin_access')) || false !== strpos($this->get('admin_access'), ",{$userId},"));

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

         * @param string $key

    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 (!isset($this->params)) {

    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 static function getSelectedFieldFromModule(string $moduleName): ?Settings_Vtiger_MenuItem_Model

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

        /**

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

         * Static Function to get the instance of Settings Menu model for the given menu name.

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

         * @param string $name - Menu Name

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

            $selectedBlockId = 0;

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

                        $children[$fieldId] = [

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

                        'icon' => $menuModel->get('icon'),

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

                        $selectedBlockId = $blockId;

    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 void

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

            \App\Cache::delete('MenuItemAll', \Settings_Vtiger_MenuItem_Model::ACTIVE);

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

         * @return int - Menu Id

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

         * @return string - Menu Label

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

            return $this->get('type');

    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->params = \vtlib\Functions::getQueryParams($this->getUrl());

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

            return Settings_Vtiger_MenuItem_Model::getAll($this->getId());

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

         * @return \Settings_Vtiger_Menu_Model[]

    Line exceeds 120 characters; contains 133 characters
    Open

                $dataReader = (new App\Db\Query())->from(self::$menusTable)->orderBy(['sequence' => SORT_ASC])->createCommand()->query();

    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

                }

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

                            $selected = $menuItem;

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

        public function getId()

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

         * @return string - Menu Label

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

         */

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

         * Check permission.

    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

         * Gets menu element by module.

    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 Settings_Vtiger_Menu_Model|null

    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

                        ];

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

                            $children[$fieldId]['addonIconTitle'] = App\Language::translate('LBL_PAID_FUNCTIONALITY');

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

                        'type' => 'Label',

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

                    }

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

                        'icon' => $menuModel->get('icon'),

    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

         * @param string $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

        {

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

         *

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

            $cacheName = 'MenuAll';

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

                    $menuModels[$blockId] = self::getInstanceFromArray($rowData);

    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

         * @param array $valueMap

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

        }

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

                ->from(self::$menusTable)

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

            if ($rowData) {

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

         * Gets menu elements.

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

                            'parent' => 'Settings',

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

                            'moduleName' => $menuItem->getModuleName(),

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

                        if ($menuItem->get('premium')) {

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

                        'sequence' => $menuModel->get('sequence'),

    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 bool

    Line exceeds 120 characters; contains 127 characters
    Open

            return (empty($this->getParam('module')) || \App\Security\AdminAccess::isPermitted($this->getParam('module'), $userId))

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

         *

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

            foreach (self::getAll() as $menuModel) {

    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

                            'newwindow' => '0',

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

                        'moduleName' => 'Settings::Vtiger',

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

                        'newwindow' => '0',

    Line exceeds 120 characters; contains 126 characters
    Open

            if (0 === $selectedFieldId && 0 === $selectedBlockId && ($selected = self::getSelectedFieldFromModule($moduleName))) {

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

        }

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

        }

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

        /**

    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

                $dataReader = (new App\Db\Query())->from(self::$menusTable)->orderBy(['sequence' => SORT_ASC])->createCommand()->query();

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

                \App\Cache::save($cacheName, $key, $menuModels);

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

         * Array with instances, kay as number id element of menu.

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

         * @param int $id

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

        public static function getInstance($name)

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

         *

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

            foreach (self::getAll() as $blockId => $menuModel) {

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

                    foreach ($menuModel->getMenuItems() as $fieldId => $menuItem) {

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

                            'id' => $menuItem->getId(),

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

                        'active' => $selectedBlockId === $blockId,

    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 (!$selectedBlockId && $menuModel->isSelected($moduleName, $view, $mode)) {

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

        }

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

         *

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

        public static function clearCache(): void

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

        }

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

         * Function to get the menu label.

    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

            $userId = $userId ?: \App\User::getCurrentUserId();

    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

                foreach ($menuModel->getMenuItems() as $menuItem) {

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

        public static function getInstanceFromArray($valueMap)

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

         * @return <Settings_Vtiger_Menu_Model> instance

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

                    $menu[$blockId] = [

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

                    $menu[$blockId] = [

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

            return $this->get(self::$menuId);

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

         * @return string - Menu Item landing url

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

         * Check if the menu item has been selected.

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

         * @return bool

    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\Cache::has($cacheName, $key)) {

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

                while ($rowData = $dataReader->read()) {

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

         *

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

                ->limit(1)

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

                return self::getInstanceFromArray($rowData);

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

         * @param string     $view

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

            $menu = [];

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

                if (!$menuModel->isPermitted()) {

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

                    $children = [];

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

                            'type' => 'Shortcut',

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

                            $children[$fieldId]['addonIcon'] = 'yfi-premium color-yellow-600';

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

                        'id' => $blockId,

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

        public function getLabel()

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

         * @param string $moduleName

    Line exceeds 120 characters; contains 131 characters
    Open

            return $this->getParam('view') === $view && $this->getParam('module') === $moduleName && $this->getParam('mode') === $mode;

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

            return null;

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

         * Static Function to get the instance of Settings Menu model with the given value map array.

    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

         * @param string     $mode

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

                            $selectedFieldId = $menuItem->getId();

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

         * Clear cache.

    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->getParam('view') === $view && $this->getParam('module') === $moduleName && $this->getParam('mode') === $mode;

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

         * @param int $userId

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

            return $this->params[$key] ?? '';

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

                    if ($menuItem->getParam('module') === $moduleName && $menuItem->isPermitted()) {

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

                }

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

         */

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

        public static function getAll(): array

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

                $dataReader->close();

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

         * @var array

    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

         * @param string     $moduleName

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

         * @return array

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

                            'active' => $selectedFieldId === $menuItem->getId(),

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

                    }

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

                        'active' => $selectedBlockId === $blockId,

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

            }

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

            \App\Cache::delete('MenuItemAll', \Settings_Vtiger_MenuItem_Model::INACTIVE);

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

            return $this->get('label');

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

         * Function to get the menu type.

    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

         * @param string $mode

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

        }

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

         * Function returns menu items for the current menu.

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

        /**

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

                    $blockId = (int) $rowData[self::$menuId];

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

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

            return self::getAll()[$id] ?? null;

    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 (0 === $selectedFieldId && 0 === $selectedBlockId && ($selected = self::getSelectedFieldFromModule($moduleName))) {

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

            return $menu;

    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

         * Function to get the url to get to the Settings Menu Block.

    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 isPermitted(int $userId = 0): bool

    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 getParam(string $key): string

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

        public function getMenuItems()

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

         * @return Settings_Vtiger_MenuItem_Model|null

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

                        return $menuItem;

    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

                            $selectedBlockId = $menuItem->getBlockId();

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

                        'sequence' => $menuModel->get('sequence'),

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

                        'childs' => $children,

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

                        'dataurl' => $menuModel->getUrl(),

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

                }

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

         * Gets data from 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

        {

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

        /**

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

            $rowData = (new App\Db\Query())

    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 (!$menuItem->isPermitted()) {

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

                            continue;

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

                            'dataurl' => $menuItem->getUrl(),

    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

                        'type' => 'Shortcut',

    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

        public function getType()

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

         * @return \Settings_Vtiger_MenuItem_Model[]

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

            $key = '';

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

                $menuModels = [];

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

            return \App\Cache::get($cacheName, $key);

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

         * @return <Settings_Vtiger_Menu_Model> instance

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

                ->where(['label' => $name])

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

                ->one();

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

                            'name' => \App\Language::translate($menuItem->get('name'), $menuItem->getModuleName()),

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

                        }

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

                        'name' => \App\Language::translate($menuModel->getLabel(), 'Settings::Vtiger'),

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

                        'name' => \App\Language::translate($menuModel->getLabel(), 'Settings::Vtiger'),

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

                        'moduleName' => 'Settings::Vtiger',

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

                $menu[$selected->getBlockId()]['childs'][$selected->getId()]['active'] = 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

         */

    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

        }

    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 false;

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

        public static function getMenu(string $moduleName, string $view, string $mode = '', &$selected = null): array

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

                    continue;

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

                        if (!$selectedBlockId && $menuItem->isSelected($moduleName, $view, $mode)) {

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

                            'sequence' => $menuItem->get('sequence'),

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

                $menu[$selected->getBlockId()]['active'] = 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

         */

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

        public function getUrl()

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

        public function isSelected(string $moduleName, string $view, string $mode = ''): bool

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

            return (empty($this->getParam('module')) || \App\Security\AdminAccess::isPermitted($this->getParam('module'), $userId))

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

         * @return string

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

        {

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

         * @param string $moduleName

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

         * Static function to get the list of all the Settings Menus.

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

            return new self($valueMap);

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

         * Gets block instance.

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

        public static function getInstanceById(int $id)

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

         * @param mixed|null $selected

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

         */

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

            $selectedFieldId = 0;

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

                if (self::TYPE_LABEL === (int) $menuModel->getType()) {

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

                            'icon' => $menuItem->get('iconpath'),

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

                        'id' => $blockId,

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

        /**

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

            \App\Cache::delete('MenuAll', '');

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

    class Settings_Vtiger_Menu_Model extends \App\Base

    There are no issues that match your filters.

    Category
    Status