YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

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

    public function process()
    {
        $moduleModel = \Vtiger_Module_Model::getInstance($this->textParser->moduleName);
        $fields = $moduleModel->getFields();
        $ids = $this->textParser->getParam('pdf')->getVariable('recordsId');
Severity: Major
Found in modules/OSSTimeControl/textparsers/List.php - About 2 hrs to fix

    Method getPagination has 54 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getPagination(App\Request $request)
        {
            $viewer = $this->getViewer($request);
            $cvId = $request->getByType('viewname', 2);
            $pageNumber = $request->getInteger('page');
    Severity: Major
    Found in modules/Vtiger/views/Pagination.php - About 2 hrs to fix

      Method loadColumns has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function loadColumns(): void
          {
              $moduleName = $this->fieldModel->getModuleName();
              $fieldName = $this->fieldModel->getName();
              $fieldNameForColor = App\Colors::sanitizeValue($fieldName);
      Severity: Major
      Found in modules/Vtiger/views/Kanban.php - About 2 hrs to fix

        Method getWidget has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getWidget()
            {
                $widget = [];
                $model = Vtiger_Module_Model::getInstance($this->Data['relatedmodule']);
                if ($model && $model->isPermitted('DetailView')) {
        Severity: Major
        Found in modules/Vtiger/widgets/RelatedModule.php - About 2 hrs to fix

          Method getRelatedListPageCount has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function getRelatedListPageCount(App\Request $request)
              {
                  $moduleName = $request->getModule();
                  $relatedModuleName = $request->getArray('relatedModule', 'Alnum');
                  $firstRelatedModuleName = current($relatedModuleName);
          Severity: Major
          Found in modules/Vtiger/actions/RelationAjax.php - About 2 hrs to fix

            Function confirmedCallback has 53 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                            confirmedCallback: () => {
                                let deleteRecordActionUrl =
                                    'index.php?module=' +
                                    app.getModuleName() +
                                    '&parent=' +
            Severity: Major
            Found in public_html/layouts/basic/modules/Users/resources/List.js - About 2 hrs to fix

              Function registerMassRecordsEvents has 53 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      registerMassRecordsEvents: function () {
                          const self = this;
                          this.getListViewContainer().on('click', '.js-mass-record-event', function () {
                              let target = $(this);
                              let listInstance = Vtiger_List_Js.getInstance();
              Severity: Major
              Found in public_html/layouts/basic/modules/Vtiger/resources/List.js - About 2 hrs to fix

                Function massActionSave has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        massActionSave: function (form, isMassEdit) {
                            if (typeof isMassEdit === 'undefined') {
                                isMassEdit = false;
                            }
                            let aDeferred = $.Deferred();
                Severity: Major
                Found in public_html/layouts/basic/modules/Vtiger/resources/List.js - About 2 hrs to fix

                  Function init has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          init(customParams) {
                              $('.input-group-text', this.container.closest('.dateTime')).on('click', function (e) {
                                  $(e.currentTarget).closest('.dateTime').find('input.dateTimePickerField').get(0).focus();
                              });
                              let dateFormat = CONFIG.dateFormat.toUpperCase();
                  Severity: Major
                  Found in public_html/layouts/resources/Fields.js - About 2 hrs to fix

                    Function setCalendarAdvancedOptions has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        setCalendarAdvancedOptions() {
                            const self = this;
                            return {
                                editable: !this.readonly && this.eventEdit == 1,
                                selectable: !this.readonly && this.eventCreate == 1,
                    Severity: Major
                    Found in public_html/layouts/resources/Calendar.js - About 2 hrs to fix

                      Function validateValue has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              validateValue: function (fieldValue) {
                                  if (fieldValue == '') {
                                      return true;
                                  }
                                  var field = this.getElement();
                      Severity: Major
                      Found in public_html/layouts/resources/validator/FieldValidator.js - About 2 hrs to fix

                        Method __create has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function __create()
                            {
                                \App\Log::trace("Creating Module $this->name ... STARTED", __METHOD__);
                                $db = \App\Db::getInstance();
                        
                        
                        Severity: Major
                        Found in vtlib/Vtiger/ModuleBasic.php - About 2 hrs to fix

                          Method testRecord has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function testRecord()
                              {
                                  $text = '+ $(record : NotExists)$ +';
                                  $this->assertSame('+  +', self::$parserClean->setContent($text)->parse()->getContent(), 'Expected empty string');
                          
                          
                          Severity: Major
                          Found in tests/App/TextParser.php - About 2 hrs to fix

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

                                public function process()
                                {
                                    if (!$this->textParser->recordModel || !$this->textParser->recordModel->getModule()->isInventory()) {
                                        return '';
                                    }
                            Severity: Major
                            Found in app/TextParser/TableTaxSTwoLang.php - About 2 hrs to fix

                              Method addReport has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public static function addReport(array $data): string
                                  {
                                      $status = 0;
                                      if (\Config\Components\Mail::$rcListAcceptAutomatically ?? false) {
                                          $status = 1;
                              Severity: Major
                              Found in app/Mail/Rbl.php - About 2 hrs to fix

                                Method addTables has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function addTables(Base $importer)
                                    {
                                        $this->logs .= "> start add tables ({$importer->dbType})\n";
                                        $startMain = microtime(true);
                                        foreach ($importer->tables as $tableName => $table) {
                                Severity: Major
                                Found in app/Db/Importer.php - About 2 hrs to fix

                                  Method getDisplayValue has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getDisplayValue(string $key)
                                      {
                                          $value = $this->get($key);
                                          switch ($key) {
                                              case 'tabid':
                                  Severity: Major
                                  Found in modules/Settings/AdvancedPermission/models/Record.php - About 2 hrs to fix

                                    Method import has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function import(App\Request $request): void
                                        {
                                            if (empty($_FILES['file']['name'])) {
                                                throw new \App\Exceptions\NoPermitted('LBL_PERMISSION_DENIED', 406);
                                            }
                                    Severity: Major
                                    Found in modules/Settings/Picklist/actions/SaveAjax.php - About 2 hrs to fix

                                      File SharedOwner.php has 255 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      <?php
                                      
                                      /**
                                       * UIType sharedOwner Field Class.
                                       *
                                      Severity: Minor
                                      Found in modules/Vtiger/uitypes/SharedOwner.php - About 2 hrs to fix

                                        Method createXml has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function createXml($entries, $entriesInventory)
                                            {
                                                $exportBlockName = \App\Config::component('Export', 'BLOCK_NAME');
                                                $xml = new \XMLWriter();
                                                $xml->openMemory();
                                        Severity: Major
                                        Found in modules/Vtiger/models/ExportToXml.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language