YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function fillNewRecordData has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    fillNewRecordData(moduleName) {
        const data = {
            email: this.mailItem.from.emailAddress,
            email1: this.mailItem.from.emailAddress,
            relationOperation: true,

    Method testListView has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function testListView(): void
        {
            $this->url('index.php?module=Accounts&view=List');
            static::assertSame('Accounts', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
            $this->logs = self::$recordId = $this->driver->findElement(WebDriverBy::id('Accounts_listView_row_1'))->getAttribute('data-id');
    Severity: Minor
    Found in tests/Gui/ViewsTest.php - About 1 hr to fix

      Method readCatalog has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function readCatalog(string $catalogToRead)
          {
              $catalogPath = static::getBackupCatalogPath();
              $catalogToReadArray = $returnStructure = [];
              if (empty($catalogPath)) {
      Severity: Minor
      Found in app/Utils/Backup.php - About 1 hr to fix

        Method getListViewEntries has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getListViewEntries($pagingModel)
            {
                $module = $this->getModule();
                $parentModuleName = $module->getParentName();
                if (!empty($parentModuleName)) {
        Severity: Minor
        Found in modules/Settings/Mail/models/ListView.php - About 1 hr to fix

          Method global has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function global(App\Request $request)
              {
                  $moduleName = $request->getModule(false);
                  $data = [];
                  $type = 'global';
          Severity: Minor
          Found in modules/Settings/ApiAddress/actions/SaveConfig.php - About 1 hr to fix

            Method unfoldFlowed has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                protected static function unfoldFlowed(string $text, bool $delSp = false): string
                {
                    $text = preg_split('/\r?\n/', $text);
                    $last = -1;
                    $qLevel = 0;
            Severity: Minor
            Found in modules/OSSMail/models/Record.php - About 1 hr to fix

              Method detail has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function detail(App\Request $request)
                  {
                      $recordModel = Vtiger_Record_Model::getInstanceById($request->getInteger('record'), $request->getModule());
                      if ('PLL_PRESENTATION' === $recordModel->get('knowledgebase_view')) {
                          $content = [];
              Severity: Minor
              Found in modules/KnowledgeBase/actions/KnowledgeBaseAjax.php - About 1 hr to fix

                Method getRecords has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function getRecords($user)
                    {
                        $this->initListViewController();
                        if (!$user) {
                            $user = App\User::getCurrentUserId();
                Severity: Minor
                Found in modules/Vtiger/models/MiniList.php - About 1 hr to fix

                  Method getRecordDetail has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function getRecordDetail(int $recordId, ?int $currencyId, string $moduleName, string $fieldName): array
                      {
                          $recordModel = Vtiger_Record_Model::getInstanceById($recordId);
                          if (!$recordModel->isViewable()) {
                              throw new \App\Exceptions\NoPermittedToRecord('ERR_NO_PERMISSIONS_FOR_THE_RECORD', 406);
                  Severity: Minor
                  Found in modules/Vtiger/actions/Inventory.php - About 1 hr to fix

                    Method updateRelation has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function updateRelation(App\Request $request)
                        {
                            $sourceModule = $request->getModule();
                            $sourceRecordId = $request->getInteger('src_record');
                            $relatedModule = $request->getByType('related_module', 2);
                    Severity: Minor
                    Found in modules/Vtiger/actions/RelationAjax.php - About 1 hr to fix

                      Method sendMails has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function sendMails(App\Request $request): void
                          {
                              $moduleName = $request->getModule();
                              $field = $request->getByType('field', 'Alnum');
                              $sourceModule = $request->getByType('sourceModule', 'Alnum');
                      Severity: Minor
                      Found in modules/Vtiger/actions/Mail.php - About 1 hr to fix

                        Method createQuery has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function createQuery(): void
                            {
                                $this->queryGenerator = new \App\QueryGenerator('Users');
                                $limit = 1000;
                                if ($requestLimit = $this->controller->request->getHeader('x-row-limit')) {
                        Severity: Minor
                        Found in api/webservice/WebserviceStandard/Users/RecordsList.php - About 1 hr to fix

                          Method get has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function get(App\Request $request)
                              {
                                  if (!\App\RequestUtil::isNetConnection()) {
                                      $this->error();
                                      return false;
                          Severity: Minor
                          Found in modules/OpenStreetMap/files/TileLayer.php - About 1 hr to fix

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

                                    registerSubmitFrom(data) {
                                        data.find('button[name=saveButton]').prop('disabled', true);
                                        data.find('input[name=user_code]').on('keyup', (e) => {
                                            if (e.keyCode !== 13) {
                                                data.find('button[name=saveButton]').prop('disabled', $(e.currentTarget).val().length === 0);

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

                                      massDeleteAction: function () {
                                          $('.massDelete').on('click', function () {
                                              let listInstance = Settings_Vtiger_List_Js.getInstance();
                                              let validationResult = listInstance.checkListRecordSelected();
                                              if (validationResult != true) {
                              Severity: Minor
                              Found in public_html/layouts/basic/modules/Settings/Mail/resources/List.js - About 1 hr to fix

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

                                        registerEditFolders: function (container) {
                                            const self = this;
                                            container.find('.js-edit-folders').on('click', (e) => {
                                                let element = $(e.currentTarget);
                                                let userContainer = element.closest('td');

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

                                          createStep2: function (type) {
                                              var thisInstance = this;
                                              var tabId = thisInstance.getTabId();
                                              var progressIndicatorElement = jQuery.progressIndicator({ position: 'html' });
                                              app.showModalWindow(

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

                                            saveDetails: function (form, currentTrElement) {
                                                const thisInstance = this;
                                                let params = form.serializeFormData();
                                                const saveButton = form.find('[type="submit"]');
                                                saveButton.prop('disabled', true);

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

                                              registerEventForRelatedTabClick: function () {
                                                  var thisInstance = this;
                                                  var detailContentsHolder = thisInstance.getContentHolder();
                                                  var detailContainer = detailContentsHolder.closest('div.detailViewInfo');
                                                  jQuery('.related', detailContainer).on('click', 'li:not(.spaceRelatedList)', function (e, urlAttributes) {
                                      Severity: Minor
                                      Found in public_html/layouts/basic/modules/Campaigns/resources/Detail.js - About 1 hr to fix

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

                                                pageJumpHandler: function (e) {
                                                    let aDeferred = jQuery.Deferred();
                                                    let thisInstance = this;
                                                    if (e.which == 13) {
                                                        let element = jQuery(e.currentTarget);
                                        Severity: Minor
                                        Found in public_html/layouts/basic/modules/Vtiger/resources/RelatedList.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language