YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

AbstractBaseProduct has 26 functions (exceeds 20 allowed). Consider refactoring.
Open

abstract class AbstractBaseProduct
{
    private const DEFAULT_CURRENCY = 'EUR';

    /**
Severity: Minor
Found in app/YetiForce/Shop/AbstractBaseProduct.php - About 3 hrs to fix

    Chromium has 26 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Chromium extends Base
    {
        /** {@inheritdoc} */
        const DRIVER_NAME = 'LBL_CHROMIUM_PDF';
    
    
    Severity: Minor
    Found in app/Pdf/Drivers/Chromium.php - About 3 hrs to fix

      Importer has 26 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Importer
      {
          /**
           * End of line character.
           *
      Severity: Minor
      Found in app/Db/Importer.php - About 3 hrs to fix

        Method initializeListViewContents has 75 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function initializeListViewContents(App\Request $request, Vtiger_Viewer $viewer)
            {
                $qualifiedModuleName = $request->getModule(false);
                $pageNumber = $request->getInteger('page');
                $orderBy = $request->getForSql('orderby');
        Severity: Major
        Found in modules/Settings/Vtiger/views/List.php - About 3 hrs to fix

          Settings_PickListDependency_Record_Model has 26 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class Settings_PickListDependency_Record_Model extends Settings_Vtiger_Record_Model
          {
              private $nonMappedSourcePickListValues = false;
          
              /** @var \Vtiger_Module_Model Source module model */
          Severity: Minor
          Found in modules/Settings/PickListDependency/models/Record.php - About 3 hrs to fix

            Vtiger_MultiAttachment_UIType has 26 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class Vtiger_MultiAttachment_UIType extends Vtiger_Base_UIType
            {
                /** @var int Default attachments limit. */
                public const LIMIT = 3;
            
            
            Severity: Minor
            Found in modules/Vtiger/uitypes/MultiAttachment.php - About 3 hrs to fix

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

                  public function process(App\Request $request)
                  {
                      $moduleName = $request->getModule();
                      $record = $request->getInteger('record');
                      $recordModel = Vtiger_Record_Model::getInstanceById($record, $moduleName);
              Severity: Major
              Found in modules/Vtiger/views/QuickEditModal.php - About 3 hrs to fix

                Method getQuery has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function getQuery($recordId, $moduleName, $type)
                    {
                        $queries = [];
                        $db = App\Db::getInstance();
                        if (\in_array('Calendar', $type) && ($field = current(\Vtiger_Module_Model::getInstance('Calendar')->getReferenceFieldsForModule($moduleName)))) {
                Severity: Major
                Found in modules/Vtiger/widgets/HistoryRelation.php - About 3 hrs to fix

                  File SharingAccess.js has 291 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
                  'use strict';
                  
                  jQuery.Class(
                      'Settings_Sharing_Access_Js',

                    File Index.js has 290 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
                    'use strict';
                    
                    jQuery.Class(
                        'Settings_Inventory_Index_Js',

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

                              getUi: function () {
                                  let comparatorSelectedOptionVal = this.get('comparatorElementVal'),
                                      dateSpecificConditions = this.get('dateSpecificConditions'),
                                      html = '';
                                  if (comparatorSelectedOptionVal === 'bw' || comparatorSelectedOptionVal === 'custom') {
                      Severity: Major
                      Found in public_html/layouts/basic/modules/Vtiger/resources/AdvanceFilter.js - About 2 hrs to fix

                        File jstree.category.js has 290 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
                        /*globals jQuery, define, exports, require, document */
                        (function (factory) {
                            'use strict';
                            if (typeof define === 'function' && define.amd) {
                        Severity: Minor
                        Found in public_html/layouts/resources/libraries/jstree.category.js - About 2 hrs to fix

                          Method testCreateNewField has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function testCreateNewField($type, $param, $suffix = '')
                              {
                                  $key = $type . $suffix;
                                  $param['fieldType'] = $type;
                                  $param['fieldLabel'] = $type . 'FL' . $suffix;
                          Severity: Major
                          Found in tests/Settings/ModuleManager.php - About 2 hrs to fix

                            File VatifyEu.php has 290 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            /**
                             * Vatify API file.
                             *
                             * @see https://www.vatify.eu/coverage.html
                            Severity: Minor
                            Found in app/RecordCollectors/VatifyEu.php - About 2 hrs to fix

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

                                  public function process(App\Request $request)
                                  {
                                      $summary = $request->get('summary');
                                      $moduleName = $request->getByType('module_name', 2);
                                      $conditions = $request->getArray('conditions', 'Text');
                              Severity: Major
                              Found in modules/Settings/Workflows/actions/Save.php - About 2 hrs to fix

                                File Base.php has 289 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                <?php
                                
                                /**
                                 * Abstract base map file.
                                 *
                                Severity: Minor
                                Found in app/Integrations/Magento/Synchronizer/Maps/Base.php - About 2 hrs to fix

                                  Function registerPostLoadEvents has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                              registerPostLoadEvents(form, params, element) {
                                                  const submitSuccessCallback = params.callbackFunction || function () {};
                                                  const goToFullFormCallBack = params.goToFullFormcallback || function () {};
                                                  form.on('submit', (e) => {
                                                      if (form.hasClass('not_validation')) {
                                  Severity: Major
                                  Found in public_html/layouts/resources/app.js - About 2 hrs to fix

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

                                        public function process()
                                        {
                                            $html = '';
                                            [$relatedModuleName, $relatedModuleField, $fieldsToShow] = array_pad($this->params, 3, null);
                                            $fieldsToShow = !empty($fieldsToShow) ? explode(',', $fieldsToShow) : ['seq', 'name', 'qty', 'discount', 'currency', 'discountmode', 'taxmode', 'price', 'gross', 'net', 'tax', 'total'];
                                    Severity: Major
                                    Found in app/TextParser/ProductsTableRelatedModule.php - About 2 hrs to fix

                                      Method save has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function save()
                                          {
                                              if (!$this->isNew) {
                                                  switch ($this->typeSaving) {
                                                      case self::UPDATE_ALL_EVENTS:
                                      Severity: Major
                                      Found in modules/Calendar/models/RecuringEvents.php - About 2 hrs to fix

                                        Method showSearchResults has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function showSearchResults(App\Request $request)
                                            {
                                                $viewer = $this->getViewer($request);
                                                $moduleName = $request->getModule();
                                                $advFilterList = $request->getArray('advfilterlist', 'Text');
                                        Severity: Major
                                        Found in modules/Vtiger/views/BasicAjax.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language