YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

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

        registerEvents: function () {
            let thisInstance = this;
            const container = thisInstance.getContentsContainer(),
                menuContainer = container.find('.js-menu--scroll'),
                quickCreateModal = container.find('.quickCreateModules');
Severity: Minor
Found in public_html/layouts/basic/modules/Vtiger/resources/Header.js - About 1 hr to fix

    Function triggerMassAction has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            triggerMassAction: function (massActionUrl, type) {
                const self = this.relatedListInstance;
                let validationResult = self.checkListRecordSelected();
                if (validationResult != true) {
                    let progressIndicatorElement = $.progressIndicator(),
    Severity: Minor
    Found in public_html/layouts/basic/modules/Vtiger/resources/RelatedList.js - About 1 hr to fix

      Function registerPaginationEvents has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              registerPaginationEvents: function () {
                  let thisInstance = this;
                  let relatedContent = this.content;
                  this.content.on('click', '#relatedViewNextPageButton', function (e) {
                      if ($(this).hasClass('disabled')) {
      Severity: Minor
      Found in public_html/layouts/basic/modules/Vtiger/resources/RelatedList.js - About 1 hr to fix

        Function registerChangeCustomFilterEvent has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                registerChangeCustomFilterEvent: function (event) {
                    let target = $(event.currentTarget);
                    let selectOption = '';
                    let selectOptionId = '';
                    if (target.is('option')) {
        Severity: Minor
        Found in public_html/layouts/basic/modules/Vtiger/resources/List.js - About 1 hr to fix

          Function autoCompleteEvent has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  autoCompleteEvent() {
                      let autoCompleteElement = $('input.treeAutoComplete', this.container);
                      if (autoCompleteElement.hasClass('ui-autocomplete-input')) {
                          autoCompleteElement.autocomplete('destroy');
                      }
          Severity: Minor
          Found in public_html/layouts/resources/Fields.js - About 1 hr to fix

            Function registerDetailView has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    registerDetailView: function (container) {
                        this.container = container;
                        var coordinates = container.find('#coordinates').val();
                        coordinates = JSON.parse(coordinates);
                        var startCoordinate = [0, 0];
            Severity: Minor
            Found in public_html/layouts/basic/modules/OpenStreetMap/resources/Map.js - About 1 hr to fix

              Function addPreviewPopover has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  addPreviewPopover(file, template, imageSrc) {
                      const thisInstance = this;
                      let fileSize = '';
                      const fileInfo = this.getFileInfo(file.hash);
                      let size = fileInfo.sizeDisplay || fileInfo.size;
              Severity: Minor
              Found in public_html/layouts/resources/fields/MultiImage.js - About 1 hr to fix

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

                    public function testLogIn2fa(): void
                    {
                        $request = $this->httpClient->get('Users/TwoFactorAuth', self::$requestOptions);
                        $this->logs = $body = $request->getBody()->getContents();
                        $response = \App\Json::decode($body);
                Severity: Minor
                Found in tests/Integrations/WebserviceStandardTest.php - About 1 hr to fix

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

                      public function testLeadingZeros(): void
                      {
                          for ($leadingZeros = 0; $leadingZeros < 7; ++$leadingZeros) {
                              $actualNumber = 1;
                              $prefix = '{{YYYY}}-{{MM}}-{{DD}}/';
                  Severity: Minor
                  Found in tests/Base/Z_ResetingRecordNumber.php - About 1 hr to fix

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

                        public static function activate(string $moduleName, string $fieldName): bool
                        {
                            $moduleModel = \Vtiger_Module_Model::getInstance($moduleName);
                            if (!($fieldModel = $moduleModel->getFieldByName($fieldName))) {
                                return false;
                    Severity: Minor
                    Found in app/RecordStatus.php - About 1 hr to fix

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

                          public static function vtwsPopulateConvertLeadEntities($entityvalue, $entity, Vtiger_Record_Model $recordModel, $leadinfo)
                          {
                              $targetModuleModel = Vtiger_Module_Model::getInstance($entityvalue['name']);
                              $entityName = $entityvalue['name'];
                              $dataReader = (new \App\Db\Query())->from('vtiger_convertleadmapping')->createCommand()->query();
                      Severity: Minor
                      Found in include/Webservices/ConvertLead.php - About 1 hr to fix

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

                            public static function getFieldsPermissions($tabId, $readOnly = true)
                            {
                                Log::trace('Entering ' . __METHOD__ . ": $tabId");
                                if (Cache::has(__METHOD__ . User::getCurrentUserId(), $tabId)) {
                                    $fields = Cache::get(__METHOD__ . User::getCurrentUserId(), $tabId);
                        Severity: Minor
                        Found in app/Field.php - About 1 hr to fix

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

                              public function parseBaseSearchParamsToCondition($searchParams)
                              {
                                  if (empty($searchParams)) {
                                      return [];
                                  }
                          Severity: Minor
                          Found in app/QueryGenerator.php - About 1 hr to fix

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

                                public function find($value)
                                {
                                    if (empty($value) || !\App\RequestUtil::isNetConnection()) {
                                        return [];
                                    }
                            Severity: Minor
                            Found in app/Map/Address/OpenCageGeocoder.php - About 1 hr to fix

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

                                  public function process(App\Request $request)
                                  {
                                      $recordId = $request->getInteger('id');
                                      $moduleInstance = Settings_MappedFields_Module_Model::getInstanceById($recordId);
                              
                              
                              Severity: Minor
                              Found in modules/Settings/MappedFields/actions/ExportTemplate.php - About 1 hr to fix

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

                                    public function historyVisitPurpose(App\Request $request)
                                    {
                                        $rows = $columns = [];
                                        foreach ($request->getArray('columns') as $key => $value) {
                                            $columns[$key] = $value['name'];
                                Severity: Minor
                                Found in modules/Settings/AdminAccess/actions/GetData.php - About 1 hr to fix

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

                                      public function save(Workflow $workflow)
                                      {
                                          if (isset($workflow->id)) {
                                              $wf = $workflow;
                                              if (null === $wf->filtersavedinnew) {
                                  Severity: Minor
                                  Found in modules/com_vtiger_workflow/VTWorkflowManager.php - About 1 hr to fix

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

                                        public function doTask($rawRecordModel)
                                        {
                                            $recordModel = \Vtiger_Record_Model::getCleanInstance($rawRecordModel->getModuleName());
                                            $recordModel->setData($rawRecordModel->getData());
                                            $recordModel->ext = $rawRecordModel->ext;
                                    Severity: Minor
                                    Found in modules/com_vtiger_workflow/tasks/VTUpdateFieldsTask.php - About 1 hr to fix

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

                                          public function syncCrmRecord($moduleName)
                                          {
                                              $create = $updates = 0;
                                              $query = $this->getCrmRecordsToSync($moduleName);
                                              if (!$query) {
                                      Severity: Minor
                                      Found in modules/API/models/CardDAV.php - About 1 hr to fix

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

                                            public function verifyDashboard($moduleName)
                                            {
                                                \App\Log::trace('Entering ' . __METHOD__ . '(' . $moduleName . ')');
                                                $currentUser = Users_Record_Model::getCurrentUserModel();
                                                $blockId = Settings_WidgetsManagement_Module_Model::getBlocksFromModule($moduleName, $currentUser->getRole(), $this->get('dashboardId'));
                                        Severity: Minor
                                        Found in modules/Vtiger/models/DashBoard.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language