YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

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

    public function process()
    {
        foreach (App\Integrations\Magento\Config::getAllServers() as $serverId => $config) {
            if (0 === (int) $config['status']) {
                continue;
Severity: Minor
Found in modules/Vtiger/crons/Magento.php - About 1 hr to fix

    Method getChild has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getChild(int $id, array &$childRow, int $depthBase): array
        {
            \App\Log::trace('Entering getChild(' . $id . ',' . $depthBase . ') method ...');
            if (empty($id) || $depthBase === \App\Config::module('HelpDesk', 'MAX_HIERARCHY_DEPTH')) {
                \App\Log::error('Exiting getChild method ... - exceeded maximum depth of hierarchy');
    Severity: Minor
    Found in modules/HelpDesk/models/Module.php - About 1 hr to fix

      Method getParentIStorages has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getParentIStorages($id, &$parentIStorages, &$encounteredIStorages, $depthBase = 0)
          {
              \App\Log::trace('Entering getParentIStorages(' . $id . ') method ...');
      
              if ($depthBase === App\Config::module('IStorages', 'MAX_HIERARCHY_DEPTH')) {
      Severity: Minor
      Found in modules/IStorages/IStorages.php - About 1 hr to fix

        Method getParent has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getParent(int $id, array &$parent, array &$encountered, int $depthBase = 0): array
            {
                \App\Log::trace('Entering getParent(' . $id . ') method ...');
                if ($depthBase === \App\Config::module('Project', 'MAX_HIERARCHY_DEPTH')) {
                    \App\Log::error('Exiting getParent method ... - exceeded maximum depth of hierarchy');
        Severity: Minor
        Found in modules/Project/Project.php - About 1 hr to fix

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

              public function process()
              {
                  $db = App\Db::getInstance();
                  $dataReader = (new App\Db\Query())->from('u_#__openstreetmap_record_updater')
                      ->limit(App\Config::module('OpenStreetMap', 'cronMaxUpdatedAddresses'))
          Severity: Minor
          Found in modules/OpenStreetMap/crons/UpdaterRecordsCoordinates.php - About 1 hr to fix

            Function registerEvents has 44 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    registerEvents: function () {
                        const self = this,
                            editContainer = $('#EditView'),
                            jstreeInstance = self.createTree();
                        editContainer.validationEngine();

              Function registerSubmitEvent has 44 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  registerSubmitEvent: function () {
                      var thisInstance = this;
                      var form = jQuery('[name="EditProfile"]');
                      form.on('submit', function (e) {
                          let button = form.find('button[type="submit"]'),

                Function registerAddBlockDashBoard has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        registerAddBlockDashBoard: function () {
                            var thisInstance = this;
                            var contents = jQuery('#layoutDashBoards');
                            contents.find('.addBlockDashBoard').on('click', function (e) {
                                var addBlockContainer = contents.find('.addBlockDashBoardModal').clone(true, true);

                  Function registerDeleteFilterClickEvent has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          registerDeleteFilterClickEvent: function () {
                              const self = this;
                              let listViewFilterBlock = this.getFilterBlock();
                              if (listViewFilterBlock != false) {
                                  //used mouseup event to stop the propagation of customfilter select change event.
                  Severity: Minor
                  Found in public_html/layouts/basic/modules/Documents/resources/List.js - About 1 hr to fix

                    Function triggerSendEmail has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            triggerSendEmail: function (params, callBackFunction, row) {
                                let listInstance = Vtiger_List_Js.getInstance();
                                if (row) {
                                    listInstance.listViewContentContainer = row.closest('.js-list__form');
                                }
                    Severity: Minor
                    Found in public_html/layouts/basic/modules/Vtiger/resources/List.js - About 1 hr to fix

                      Function registerGenetateButton has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              registerGenetateButton: function (container) {
                                  const thisInstance = this;
                                  container.find('button.js-genetate-button').on('click', function (e) {
                                      document.progressLoader = $.progressIndicator({
                                          message: app.vtranslate('JS_LOADING_PLEASE_WAIT'),
                      Severity: Minor
                      Found in public_html/layouts/basic/modules/Vtiger/resources/GenerateModal.js - About 1 hr to fix

                        Function loadWidget has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                loadWidget: function (widgetContainer) {
                                    const self = this;
                                    let urlParams = widgetContainer.data('url');
                                    let mode = widgetContainer.data('mode');
                                    let moduleName = app.getModuleName();
                        Severity: Minor
                        Found in public_html/layouts/basic/modules/Vtiger/resources/DashBoard.js - About 1 hr to fix

                          Function showCurrencyChangeModal has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  showCurrencyChangeModal: function (select, option) {
                                      let thisInstance = this;
                                      if (thisInstance.lockCurrencyChange == true) {
                                          return;
                                      }
                          Severity: Minor
                          Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

                            Function registerChangeTax has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    registerChangeTax: function () {
                                        const thisInstance = this;
                                        thisInstance.form.on('click', '.changeTax', function (e) {
                                            let parentRow;
                                            let element = $(e.currentTarget);
                            Severity: Minor
                            Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

                              Function validateFile has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function validateFile() {
                                      const fieldInfo = $(editor.element.$).data('fieldinfo');
                                      let length = editor.getData().length,
                                          selectedImg = editor.getSelection();
                                      if (selectedImg) selectedImg = selectedImg.getSelectedElement();

                                Function reloadAfterSave has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    reloadAfterSave: function (responseData, params, form, element) {
                                        if (responseData.skipReload) {
                                            return;
                                        }
                                        const moduleName = params['module'];
                                Severity: Minor
                                Found in public_html/layouts/resources/app.js - About 1 hr to fix

                                  Function validate has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          validate: function () {
                                              let response = this._super();
                                              if (response != true) {
                                                  return response;
                                              }
                                  Severity: Minor
                                  Found in public_html/layouts/resources/validator/FieldValidator.js - About 1 hr to fix

                                    Function registerEventForClockPicker has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        registerEventForClockPicker: function (timeInputs = $('.clockPicker')) {
                                            if (!timeInputs.hasClass('clockPicker')) {
                                                timeInputs = timeInputs.find('.clockPicker');
                                            }
                                            if (!timeInputs.length) {
                                    Severity: Minor
                                    Found in public_html/layouts/resources/app.js - About 1 hr to fix

                                      Method testEmployee has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function testEmployee()
                                          {
                                              $currentUser = \App\User::getCurrentUserId();
                                              $userName = 'Employee';
                                              $userExistsId = (new \App\Db\Query())->select(['id'])->from('vtiger_users')->where(['user_name' => $userName])
                                      Severity: Minor
                                      Found in tests/App/TextParser.php - About 1 hr to fix

                                        Method getAllModules has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public static function getAllModules($isEntityType = true, $showRestricted = false, $presence = false, $colorActive = false, $ownedby = false)
                                            {
                                                if (\App\Cache::has('moduleTabs', 'all')) {
                                                    $moduleList = \App\Cache::get('moduleTabs', 'all');
                                                } else {
                                        Severity: Minor
                                        Found in vtlib/Vtiger/Functions.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language