YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Method getTicketsByStatus has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getTicketsByStatus($owner)
    {
        $moduleName = 'HelpDesk';
        $ticketStatus = Settings_SupportProcesses_Module_Model::getTicketStatusNotModify();
        $query = new \App\Db\Query();
Severity: Major
Found in modules/HelpDesk/dashboards/TicketsByStatus.php - About 2 hrs to fix

    Method getMarkerColor has 71 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function getMarkerColor($value)
        {
            static $indexColor = 0;
            if (empty($value)) {
                return '#000';
    Severity: Major
    Found in modules/OpenStreetMap/models/Coordinate.php - About 2 hrs to fix

      `` has 25 functions (exceeds 20 allowed). Consider refactoring.
      Open

          {
              /**
               * Var to store colors container
               */
              container: false,
      Severity: Minor
      Found in public_html/layouts/basic/modules/Settings/Colors/resources/Index.js - About 2 hrs to fix

        `` has 25 functions (exceeds 20 allowed). Consider refactoring.
        Open

            {
                container: false,
                noCache: false,
                instancesCache: {},
                init: function () {
        Severity: Minor
        Found in public_html/layouts/basic/modules/Vtiger/resources/DashBoard.js - About 2 hrs to fix

          `` has 25 functions (exceeds 20 allowed). Consider refactoring.
          Open

              MultiAttachment: class MultiAttachment {
                  /**
                   * Constructor
                   * @param {jQuery} container
                   * @param {Object} options
          Severity: Minor
          Found in public_html/layouts/resources/Fields.js - About 2 hrs to fix

            `` has 25 functions (exceeds 20 allowed). Consider refactoring.
            Open

            export default {
                layout(state) {
                    return state.layout
                },
                dialog(state) {
            Severity: Minor
            Found in public_html/src/layouts/basic/modules/Chat/store/getters.js - About 2 hrs to fix

              Language has 25 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Language
              {
                  /**
                   * Default language code.
                   */
              Severity: Minor
              Found in app/Language.php - About 2 hrs to fix

                Owner has 25 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class Owner
                {
                    /**
                     * Module name or false.
                     *
                Severity: Minor
                Found in app/Fields/Owner.php - About 2 hrs to fix

                  YetiForcePDF has 25 functions (exceeds 20 allowed). Consider refactoring.
                  Open

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

                    Base has 25 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class Base
                    {
                        /** @var string Database section. */
                        public $dbType = 'base';
                    
                    
                    Severity: Minor
                    Found in app/Db/Importers/Base.php - About 2 hrs to fix

                      Settings_TreesManager_Record_Model has 25 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class Settings_TreesManager_Record_Model extends Settings_Vtiger_Record_Model
                      {
                          /**
                           * Function to get the Id.
                           *
                      Severity: Minor
                      Found in modules/Settings/TreesManager/models/Record.php - About 2 hrs to fix

                        Settings_AutomaticAssignment_Record_Model has 25 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class Settings_AutomaticAssignment_Record_Model extends Settings_Vtiger_Record_Model
                        {
                            /** @var array Record changes */
                            protected $changes = [];
                        
                        
                        Severity: Minor
                        Found in modules/Settings/AutomaticAssignment/models/Record.php - About 2 hrs to fix

                          File Z_Chat.php has 284 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          
                          /**
                           * Chat test class.
                           *
                          Severity: Minor
                          Found in tests/Base/Z_Chat.php - About 2 hrs to fix

                            Function registerChangeCreateEntityEvent has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    registerChangeCreateEntityEvent: function () {
                                        var thisInstance = this;
                                        $('[name="mappingPanel"]').on('change', function (e) {
                                            var currentTarget = $(e.currentTarget);
                                            app.setMainParams('mappingPanel', currentTarget.val());

                              Method setRelatedList has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function setRelatedList($moduleInstance, $label = '', $actions = false, $functionName = 'getRelatedList', $fieldName = null, $fields = [])
                                  {
                                      $db = \App\Db::getInstance();
                                      if (empty($moduleInstance)) {
                                          return;
                              Severity: Major
                              Found in vtlib/Vtiger/Module.php - About 2 hrs to fix

                                Method addWorkflowConditionsToQueryGenerator has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function addWorkflowConditionsToQueryGenerator(App\QueryGenerator $queryGenerator, $conditions)
                                    {
                                        $conditionMapping = [
                                            'equal to' => 'e',
                                            'less than' => 'l',
                                Severity: Major
                                Found in modules/com_vtiger_workflow/WorkFlowScheduler.php - About 2 hrs to fix

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

                                      public function process(App\Request $request)
                                      {
                                          $viewer = $this->getViewer($request);
                                          $moduleName = $request->getModule();
                                          $page = $request->getInteger('page');
                                  Severity: Major
                                  Found in modules/ModTracker/dashboards/Updates.php - About 2 hrs to fix

                                    Method getFieldsStructure has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function getFieldsStructure(array $block): array
                                        {
                                            $fields = [];
                                            foreach ($block['fields'] as $field) {
                                                if (\is_array($field) && 'relatedField' === $field['type']) {
                                    Severity: Major
                                    Found in modules/Vtiger/models/ProcessWizard.php - About 2 hrs to fix

                                      Method getSettingLinks has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function getSettingLinks(): array
                                          {
                                              if (!$this->isEntityModule()) {
                                                  return [];
                                              }
                                      Severity: Major
                                      Found in modules/Vtiger/models/Module.php - About 2 hrs to fix

                                        File Chromium.php has 282 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        <?php
                                        /**
                                         * Chromium driver file for PDF generation.
                                         *
                                         * @see https://github.com/chrome-php/chrome
                                        Severity: Minor
                                        Found in app/Pdf/Drivers/Chromium.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language