YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Method __getParentAccounts has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __getParentAccounts($id, &$parentAccounts, &$encounteredAccounts, $depthBase = 0)
    {
        \App\Log::trace('Entering __getParentAccounts(' . $id . ') method ...');
        if ($depthBase == App\Config::module('Accounts', 'MAX_HIERARCHY_DEPTH')) {
            \App\Log::error('Exiting __getParentAccounts method ... - exceeded maximum depth of hierarchy');
Severity: Minor
Found in modules/Accounts/Accounts.php - About 1 hr to fix

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

        public function getListViewEntries(Vtiger_Paging_Model $pagingModel, $searchResult = false)
        {
            $moduleModel = $this->getModule();
            $moduleName = $moduleModel->get('name');
            $queryGenerator = $this->getQueryGenerator();
    Severity: Minor
    Found in modules/Products/models/ListView.php - About 1 hr to fix

      Method syncAddressBooks has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function syncAddressBooks(): int
          {
              \App\Log::trace('AddressBooks start', __METHOD__);
              $dataReader = $this->getDavCardsToSync()->createCommand()->query();
              $create = $deletes = $updates = $skipped = 0;
      Severity: Minor
      Found in modules/API/models/CardDAV.php - About 1 hr to fix

        Method getHeaders has 43 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getHeaders()
            {
                $fields = [];
                if ($this->get('viewId')) {
                    $moduleModel = $this->getRelationModel()->getRelationModuleModel();
        Severity: Minor
        Found in modules/Vtiger/models/RelationListView.php - About 1 hr to fix

          Method setDataFromRequest has 43 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function setDataFromRequest(App\Request $request)
              {
                  if (array_intersect(array_keys($this->fieldForChartModal), $request->getKeys())) {
                      $this->set('data', []);
                  }
          Severity: Minor
          Found in modules/Vtiger/dashboards/ChartFilterModel.php - About 1 hr to fix

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

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

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

                      registerEvents: function () {
                          const self = this,
                              container = this.getForm();
                          this.registerBasicEvents(container);
                          let form = container.find('form');

                Function callBackFunction has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                let callBackFunction = (data) => {
                                    App.Fields.Picklist.showSelect2ElementView(data.find('select'), { width: '100%' });
                                    let form = data.find('.createCustomFieldForm');
                                    form.attr('id', 'createFieldForm');
                                    App.Fields.Picklist.showSelect2ElementView(form.find('[name="pickListValues"]'), {

                  Function deleteUser has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          deleteUser: function (form) {
                              var listInstance = Vtiger_List_Js.getInstance();
                              var userid = form.find('[name="userid"]').val();
                              var transferUserId = form.find('[name="tranfer_owner_id"]').val();
                              var progressInstance = jQuery.progressIndicator({
                  Severity: Minor
                  Found in public_html/layouts/basic/modules/Users/resources/List.js - About 1 hr to fix

                    Function registerSubmitEvent has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            registerSubmitEvent() {
                                this.container.off('submit').on('submit', (e) => {
                                    e.preventDefault();
                                    this.container.find('.js-toggle-panel').find('.js-block-content').removeClass('d-none');
                                    if ($(e.currentTarget).validationEngine('validate')) {

                      Function registerAnalyzeFile has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          registerAnalyzeFile() {
                              let form = this.container.find('form');
                              form.validationEngine(app.validationEngineOptions);
                              this.container.find('.js-send-file').on('click', () => {
                                  if (!form.validationEngine('validate')) {

                        Function removeWidget has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                removeWidget: function () {
                                    const self = this;
                                    this.getContainer().on('click', '.js-widget-remove', function (e) {
                                        let element = $(e.currentTarget),
                                            listItem = $(element).parents('.grid-stack-item'),
                        Severity: Minor
                        Found in public_html/layouts/basic/modules/Vtiger/resources/DashBoard.js - About 1 hr to fix

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

                                  registerEventForRelatedTabClick: function () {
                                      let thisInstance = this;
                                      let detailContentsHolder = thisInstance.getContentHolder();
                                      let detailContainer = detailContentsHolder.closest('div.detailViewInfo');
                          
                          
                          Severity: Minor
                          Found in public_html/layouts/basic/modules/Vtiger/resources/Detail.js - About 1 hr to fix

                            Function callbackFunction has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                                callbackFunction = () => {
                                                    let previousValue = fieldnameElement.data('prevValue'),
                                                        ajaxEditNewValue = fieldElement.val(),
                                                        ajaxEditNewLable = fieldElement.val(),
                                                        activityDiv = currentDiv.closest('.activityEntries'),
                            Severity: Minor
                            Found in public_html/layouts/basic/modules/Vtiger/resources/Detail.js - About 1 hr to fix

                              Function getUi has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      getUi: function () {
                                          let comparatorSelectedOptionVal = this.get('comparatorElementVal'),
                                              html = '',
                                              selectContainer;
                                          if (
                              Severity: Minor
                              Found in public_html/layouts/basic/modules/Vtiger/resources/AdvanceFilter.js - About 1 hr to fix

                                Function registerMassActionsBtnEvents has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        registerMassActionsBtnEvents() {
                                            this.getListViewContainer().on('click', '.js-mass-action', (e) => {
                                                e.preventDefault();
                                                let element = $(e.currentTarget);
                                                let url = element.data('url');
                                Severity: Minor
                                Found in public_html/layouts/basic/modules/Vtiger/resources/List.js - About 1 hr to fix

                                  Function getValidator has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          getValidator: function (field) {
                                              let listOfValidators = [],
                                                  fieldData = field.data(),
                                                  fieldInfo = fieldData.fieldinfo;
                                              if (typeof fieldInfo === 'string') {
                                  Severity: Minor
                                  Found in public_html/layouts/resources/validator/BaseValidator.js - About 1 hr to fix

                                    Method testAddConfiguration has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function testAddConfiguration(): void
                                        {
                                            $app = \Settings_WebserviceApps_Record_Model::getCleanInstance();
                                            $app->set('type', 'WebserviceStandard');
                                            $app->set('status', 1);
                                    Severity: Minor
                                    Found in tests/Integrations/WebserviceStandardTest.php - About 1 hr to fix

                                      Method testIncrementNumberMonth has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function testIncrementNumberMonth(): void
                                          {
                                              $actualNumber = 1;
                                              $prefix = '{{YYYY}}-{{MM}}-{{DD}}/';
                                              $postfix = '';
                                      Severity: Minor
                                      Found in tests/Base/Z_ResetingRecordNumber.php - About 1 hr to fix

                                        Method testIncrementNumberYear has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function testIncrementNumberYear(): void
                                            {
                                                $actualNumber = 1;
                                                $prefix = '{{YYYY}}-{{MM}}-{{DD}}/';
                                                $postfix = '';
                                        Severity: Minor
                                        Found in tests/Base/Z_ResetingRecordNumber.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language