YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Method getStructure has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getStructure()
    {
        if (!empty($this->structuredValues)) {
            return $this->structuredValues;
        }
Severity: Minor
Found in modules/Vtiger/models/DetailRecordStructure.php - About 1 hr to fix

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

        public function process(App\Request $request)
        {
            $viewer = $this->getViewer($request);
            $moduleName = $request->getModule();
            if ($request->isAjax()) {
    Severity: Minor
    Found in modules/Vtiger/views/List.php - About 1 hr to fix

      Method preProcess has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function preProcess(App\Request $request, $display = true)
          {
              parent::preProcess($request, false);
      
              $moduleName = $request->getModule();
      Severity: Minor
      Found in modules/Vtiger/views/List.php - About 1 hr to fix

        Method getHeaderButtons has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getHeaderButtons(): array
            {
                $links = [];
                $moduleName = is_numeric($this->Data['relatedmodule']) ? App\Module::getModuleName($this->Data['relatedmodule']) : $this->Data['relatedmodule'];
                if (\App\Privilege::isPermitted($moduleName, 'CreateView')) {
        Severity: Minor
        Found in modules/Vtiger/widgets/Documents.php - About 1 hr to fix

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

              public function process(App\Request $request, $widget = null)
              {
                  $currentUser = Users_Record_Model::getCurrentUserModel();
                  $viewer = $this->getViewer($request);
                  $moduleName = $request->getModule();
          Severity: Minor
          Found in modules/Vtiger/dashboards/ProductsSoldToRenew.php - About 1 hr to fix

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

                public function process()
                {
                    \App\Log::trace('Start cron CardDAV');
                    if(!\App\YetiForce\Shop::check('YetiForceDav')){
                        $this->logs = \App\YetiForce\Shop::checkAlert('YetiForceDav');
            Severity: Minor
            Found in modules/Contacts/crons/CardDav.php - About 1 hr to fix

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

                  public function process(App\Request $request)
                  {
                      $viewer = $this->getViewer($request);
                      $moduleName = $request->getModule();
                      $widget = Vtiger_Widget_Model::getInstance($request->getInteger('linkid'), \App\User::getCurrentUserId());
              Severity: Minor
              Found in modules/HelpDesk/dashboards/TicketsByStatus.php - About 1 hr to fix

                Method saveMap has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function saveMap()
                    {
                        $saveMap = $this->request->get('save_map');
                        $mapName = $this->request->get('save_map_as');
                        if ($saveMap && !empty($mapName)) {
                Severity: Minor
                Found in modules/Import/views/Main.php - About 1 hr to fix

                  Method post has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function post(): ?array
                      {
                          $this->checkAccess();
                          if ('PLL_PASSWORD_2FA' === $this->getUserData('login_method') && ($response = $this->twoFactorAuth())) {
                              $this->saveLoginHistory([
                  Severity: Minor
                  Found in api/webservice/WebserviceStandard/Users/Login.php - About 1 hr to fix

                    Function registerSave has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            registerSave: function () {
                                let form = this.container.find('form');
                                this.container.find('.js-switch-btn').on('click', (e) => {
                                    e.preventDefault();
                                    if (form.validationEngine('validate')) {
                    Severity: Minor
                    Found in public_html/layouts/basic/modules/Users/resources/SwitchUsers.js - About 1 hr to fix

                      Function submit has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              submit() {
                                  var aDeferred = jQuery.Deferred();
                                  this.calculateValues();
                                  var form = this.getContainer();
                                  var progressIndicatorElement = $.progressIndicator({
                      Severity: Minor
                      Found in public_html/layouts/basic/modules/Settings/PDF/resources/Edit3.js - About 1 hr to fix

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

                                            confirmedCallback: () => {
                                                let fieldRow = currentTarget.closest('div.editFields');
                                                let fieldId = fieldRow.data('fieldId');
                                                let block = fieldRow.closest('.editFieldsTable');
                                                let blockId = block.data('blockId');

                          Function sendByAjaxCb has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                              sendByAjaxCb: (formData, response) => {
                                                  if (!response.success) {
                                                      return;
                                                  }
                                                  Settings_Vtiger_Index_Js.showMessage({

                            Function registerDataTables has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    registerDataTables: function (contentData) {
                                        const thisInstance = this;
                                        $.extend($.fn.dataTable.defaults, {
                                            language: {
                                                sLengthMenu: app.vtranslate('JS_S_LENGTH_MENU'),

                              Function registerWebserviceAppsEvent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      registerWebserviceAppsEvent: function () {
                                          $(document).on('click', '.js-edit-field-api', function (e) {
                                              const element = $(e.currentTarget);
                                              let progressInstance = $.progressIndicator({ blockInfo: { enabled: true } });
                                              AppConnector.request({

                                Function onValidationComplete has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                                    params.onValidationComplete = (form, valid) => {
                                                        if (valid) {
                                                            let saveButton = form.find(':submit'),
                                                                fieldNameValue = $('[name="fieldName"]', form).val(),
                                                                fieldTypeValue = $('[name="fieldType"]', form).val();

                                  Function registerSortableEvent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          registerSortableEvent: function () {
                                              var thisInstance = this;
                                              var sequenceList = {};
                                              var tbody = jQuery('tbody', jQuery('.listViewEntriesTable'));
                                              tbody.sortable({

                                    Function submit has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            submit: function () {
                                                var aDeferred = jQuery.Deferred();
                                                var form = this.getContainer();
                                                var formData = form.serializeFormData();
                                                var progressIndicatorElement = jQuery.progressIndicator({

                                      Function registerTaskStatusChangeEvent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              registerTaskStatusChangeEvent: function () {
                                                  var container = this.getContainer();
                                                  container.on('change', '.taskStatus', function (e) {
                                                      var currentStatusElement = $(e.currentTarget);
                                                      var url = currentStatusElement.data('statusurl');

                                        Function registerModuleTabEvent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                registerModuleTabEvent: function () {
                                                    const self = this;
                                                    const container = self.getContainer();
                                                    container.find('.js-change-tab').on('click', (e) => {
                                                        const clickedTab = $(e.currentTarget);
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language