YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function triggerReviewChanges has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        triggerReviewChanges: function (reviewUrl) {
            let listInstance = Vtiger_List_Js.getInstance();
            let validationResult = listInstance.checkListRecordSelected();
            if (validationResult !== true) {
                app.showConfirmModal({
Severity: Minor
Found in public_html/layouts/basic/modules/Vtiger/resources/List.js - About 1 hr to fix

    Function registerLoadMore has 49 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            registerLoadMore: function () {
                var thisInstance = this;
                var parent = thisInstance.getContainer();
                var contentContainer = parent.find('.dashboardWidgetContent');
                var loadMoreHandler = contentContainer.find('.load-more');

      Function selectCallbackCreateModal has 49 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          selectCallbackCreateModal(modal, info) {
              let startDate = info.start,
                  endDate = info.end;
              if (info['allDay']) {
                  endDate.setDate(endDate.getDate() - 1);
      Severity: Minor
      Found in public_html/layouts/resources/Calendar.js - About 1 hr to fix

        Function onLoad has 49 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                onLoad: function () {
                    /* Get image preview element */
                    imgPreview = this.getContentElement('tab-source', 'preview');
        
                    /* Constrain proportions or not */

          Function registerPopoverRecord has 49 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              registerPopoverRecord: function (
                  selectElement = $('.js-popover-tooltip--record'),
                  customParams = {},
                  container = $(document)
              ) {
          Severity: Minor
          Found in public_html/layouts/resources/app.js - About 1 hr to fix

            Method setPicklistValues has 49 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function setPicklistValues($values)
                {
                    // Non-Role based picklist values
                    if (16 === $this->uitype) {
                        $this->setNoRolePicklistValues($values);
            Severity: Minor
            Found in vtlib/Vtiger/Field.php - About 1 hr to fix

              Function createItem has 49 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      createItem(file) {
                          const item = document.createElement('fieldset');
                          item.setAttribute('class', 'c-multi-attachment--file bg-light js-handle');
                          item.setAttribute('data-key', file.key);
              
              
              Severity: Minor
              Found in public_html/layouts/resources/Fields.js - About 1 hr to fix

                Method retrieveEntityInfo has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function retrieveEntityInfo(int $record, string $module)
                    {
                        if (!isset($record)) {
                            throw new \App\Exceptions\NoPermittedToRecord('LBL_RECORD_NOT_FOUND');
                        }
                Severity: Minor
                Found in include/CRMEntity.php - About 1 hr to fix

                  Method populateRelatedSharingPrivileges has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function populateRelatedSharingPrivileges($enttype, $userId, $module, $relmodule, $pertype, $varArr = false)
                      {
                          $dbCommand = \App\Db::getInstance()->createCommand();
                          $tabId = Module::getModuleId($module);
                          $relTabId = Module::getModuleId($relmodule);
                  Severity: Minor
                  Found in app/UserPrivilegesFile.php - About 1 hr to fix

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

                        public function process(): int
                        {
                            $query = (new \App\Db\Query())->select([
                                'ID_DOKUMENTU_HANDLOWEGO', 'ID_FIRMY', 'ID_KONTRAHENTA', 'ID_DOK_ORYGINALNEGO',
                                'NUMER', 'FORMA_PLATNOSCI', 'UWAGI', 'KONTRAHENT_NAZWA', 'WARTOSC_NETTO', 'WARTOSC_BRUTTO', 'DOK_KOREKTY', 'DATA_KURS_WAL', 'DOK_WAL', 'SYM_WAL',
                    Severity: Minor
                    Found in app/Integrations/Wapro/Synchronizer/Invoice.php - About 1 hr to fix

                      Method parseDateTime has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          private function parseDateTime(): void
                          {
                              $allDay = 0;
                              $endHasTime = $startHasTime = false;
                              $endField = 'VEVENT' === ((string) $this->vcomponent->name) ? 'DTEND' : 'DUE';
                      Severity: Minor
                      Found in app/Integrations/Dav/Calendar.php - About 1 hr to fix

                        Method retrieveEntityInfo has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function retrieveEntityInfo(int $record, string $module)
                            {
                                \App\Log::trace("Entering into retrieveEntityInfo($record, $module) method.");
                                if ('' == $record) {
                                    \App\Log::error('record is empty. returning null');
                        Severity: Minor
                        Found in modules/Users/Users.php - About 1 hr to fix

                          Method getTree has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function getTree($category = false, $treeValue = false)
                              {
                                  $tree = [];
                                  $templateId = $this->getId();
                                  if (empty($templateId)) {
                          Severity: Minor
                          Found in modules/Settings/TreesManager/models/Record.php - About 1 hr to fix

                            Method getAssignedProjectsTasks has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function getAssignedProjectsTasks($mode, $pagingModel, $user, $recordId = false)
                                {
                                    $currentUser = Users_Record_Model::getCurrentUserModel();
                                    if (!$user) {
                                        $user = $currentUser->getId();
                            Severity: Minor
                            Found in modules/Home/models/Module.php - About 1 hr to fix

                              Method getEntityCount has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function getEntityCount(): array
                                  {
                                      $colors = \App\Fields\Picklist::getColors('activitytype', false);
                                      $currentUser = Users_Record_Model::getCurrentUserModel();
                                      $startDate = DateTimeField::convertToDBTimeZone($this->get('start'));
                              Severity: Minor
                              Found in modules/Calendar/models/Calendar.php - About 1 hr to fix

                                Method updateCard has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function updateCard($moduleName, $record, $card)
                                    {
                                        \App\Log::trace(__METHOD__ . ' | Start CRM ID:' . $record['crmid']);
                                        $vcard = Sabre\VObject\Reader::read($card['carddata']);
                                        $vcard->PRODID = self::PRODID;
                                Severity: Minor
                                Found in modules/API/models/CardDAV.php - About 1 hr to fix

                                  Method createCard has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function createCard($moduleName, $record)
                                      {
                                          \App\Log::trace(__METHOD__ . ' | Start CRM ID:' . $record['crmid']);
                                  
                                          $vcard = new Sabre\VObject\Component\VCard();
                                  Severity: Minor
                                  Found in modules/API/models/CardDAV.php - About 1 hr to fix

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

                                        public function process(App\Request $request)
                                        {
                                            $viewer = $this->getViewer($request);
                                            $sourceModuleName = $request->getByType('source_module', \App\Purifier::ALNUM);
                                            $moduleName = $request->getModule();
                                    Severity: Minor
                                    Found in modules/CustomView/views/EditAjax.php - About 1 hr to fix

                                      Method getChartData has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function getChartData()
                                          {
                                              $this->setUpModelFields();
                                              if ('Table' === $this->chartType) {
                                                  return $this->getRows();
                                      Severity: Minor
                                      Found in modules/Vtiger/models/ChartFilter.php - About 1 hr to fix

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

                                            public function process(App\Request $request)
                                            {
                                                $data = [];
                                                $sourceModule = $request->getByType('srcModule');
                                                $srcModuleModel = Vtiger_Module_Model::getInstance($sourceModule);
                                        Severity: Minor
                                        Found in modules/OpenStreetMap/actions/GetMarkers.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language