YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Method getCombinedUserModulesPermissions has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function getCombinedUserModulesPermissions($userId)
    {
        if (Cache::staticHas('getCombinedUserModulesPermissions', $userId)) {
            return Cache::staticGet('getCombinedUserModulesPermissions', $userId);
        }
Severity: Minor
Found in app/PrivilegeUtil.php - About 1 hr to fix

    Method search has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function search(): array
        {
            if (!$this->isActive()) {
                return [];
            }
    Severity: Minor
    Found in app/RecordCollectors/OrbIntelligence.php - About 1 hr to fix

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

          public function setDataFromRequest(App\Request $request)
          {
              $searchParams = \App\Condition::validSearchParams($this->moduelName, $request->getArray('search_params'));
              $operator = $request->isEmpty('operator') ? '' : $request->getByType('operator');
              if ($operator && $searchValue = \App\Condition::validSearchValue($request->getByType('search_value', \App\Purifier::TEXT), $this->moduelName, $request->getByType('search_key', \App\Purifier::ALNUM), $operator)) {
      Severity: Minor
      Found in modules/Users/actions/ExportData.php - About 1 hr to fix

        Method replaceValue has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function replaceValue($tree, $templateId)
            {
                $db = App\Db::getInstance();
                $modules = $this->get('share');
                $modules[] = $this->get('tabid');
        Severity: Minor
        Found in modules/Settings/TreesManager/models/Record.php - About 1 hr to fix

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

              public function process(App\Request $request)
              {
                  $viewer = $this->getViewer($request);
                  $moduleName = $request->getModule();
                  $qualifiedModuleName = $request->getModule(false);
          Severity: Minor
          Found in modules/Settings/TreesManager/views/Edit.php - About 1 hr to fix

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

                public function process(App\Request $request)
                {
                    $response = new Vtiger_Response();
                    $qualifiedModuleName = $request->getModule(false);
                    $type = $request->has('type') ? $request->getByType('type', \App\Purifier::STANDARD) : 'Main';
            Severity: Minor
            Found in modules/Settings/ConfigEditor/actions/SaveAjax.php - About 1 hr to fix

              Method getData has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function getData(App\Request $request)
                  {
                      $moduleName = $request->getModule();
                      $groupId = $request->getInteger('groupID');
                      $groupMembers = Settings_Groups_Member_Model::getAllByTypeForGroup($groupId);
              Severity: Minor
              Found in modules/Users/actions/Groups.php - About 1 hr to fix

                Method getCurrentUserActivityReminderInSeconds has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function getCurrentUserActivityReminderInSeconds()
                    {
                        $activityReminder = $this->reminder_interval;
                        $activityReminderInSeconds = '';
                        if ('None' != $activityReminder) {
                Severity: Minor
                Found in modules/Users/models/Record.php - About 1 hr to fix

                  Method getRecordLinks has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function getRecordLinks(): array
                      {
                          $links = $recordLinks = [];
                          if ($this->isBaseCurrency()) {
                              //NO Edit and delete link for base currency
                  Severity: Minor
                  Found in modules/Settings/Currency/models/Record.php - About 1 hr to fix

                    Method getFields has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function getFields($source = false)
                        {
                            \App\Log::trace('Entering ' . __METHOD__ . '() method ...');
                            $moduleModel = Vtiger_Module_Model::getInstance($this->getName());
                            $fields = [];
                    Severity: Minor
                    Found in modules/Settings/MappedFields/models/Module.php - About 1 hr to fix

                      Method initialize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function initialize(App\Request $request)
                          {
                              $viewer = $this->getViewer($request);
                              $moduleName = $request->getModule();
                              $qualifiedModuleName = $request->getModule(false);
                      Severity: Minor
                      Found in modules/Settings/Profiles/views/Edit.php - About 1 hr to fix

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

                            public function process(App\Request $request)
                            {
                                $moduleName = $request->getModule();
                                $qualifiedModuleName = $request->getModule(false);
                                $record = $request->getInteger('record');
                        Severity: Minor
                        Found in modules/Settings/OSSMailScanner/views/Folders.php - About 1 hr to fix

                          Method getRecordLinks has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function getRecordLinks(): array
                              {
                                  $links = [];
                          
                                  $recordLinks = [
                          Severity: Minor
                          Found in modules/Settings/PDF/models/Record.php - About 1 hr to fix

                            Method getDisplayValue has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function getDisplayValue(string $key)
                                {
                                    $value = $this->get($key);
                                    switch ($key) {
                                        case 'tabid':
                            Severity: Minor
                            Found in modules/Settings/FieldsDependency/models/Record.php - About 1 hr to fix

                              Method request has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function request(App\Request $request): void
                                  {
                                      $result = false;
                                      $responseType = 'error';
                                      $message = '';
                              Severity: Minor
                              Found in modules/Settings/Companies/actions/VerifyEmail.php - About 1 hr to fix

                                Method step1 has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function step1(App\Request $request)
                                    {
                                        $viewer = $this->getViewer($request);
                                        $moduleName = $request->getModule();
                                        $qualifiedModuleName = $request->getModule(false);
                                Severity: Minor
                                Found in modules/Settings/Workflows/views/Edit.php - About 1 hr to fix

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

                                      public function save(App\Request $request)
                                      {
                                          Settings_Vtiger_Tracker_Model::lockTracking(false);
                                          Settings_Vtiger_Tracker_Model::addBasic('save');
                                          $qualifiedModuleName = $request->getModule(false);
                                  Severity: Minor
                                  Found in modules/Settings/RecordAllocation/actions/SaveAjax.php - About 1 hr to fix

                                    Method importWorkflow has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function importWorkflow(array $data)
                                        {
                                            $db = App\Db::getInstance();
                                            $dbCommand = App\Db::getInstance()->createCommand();
                                            $dbCommand->insert($this->getBaseTable(), $data['fields'])->execute();
                                    Severity: Minor
                                    Found in modules/Settings/Workflows/models/Module.php - About 1 hr to fix

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

                                          public function process(App\Request $request)
                                          {
                                              $viewer = $this->getViewer($request);
                                              $moduleName = $request->getModule();
                                              $qualifiedModuleName = $request->getModule(false);
                                      Severity: Minor
                                      Found in modules/Settings/Roles/views/Edit.php - About 1 hr to fix

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

                                            public function post(App\Request $request)
                                            {
                                                $moduleName = $request->getModule(false);
                                                $moduleModel = Settings_Vtiger_Module_Model::getInstance($moduleName);
                                                $fieldModel = $moduleModel->getFieldInstanceByName('image');
                                        Severity: Minor
                                        Found in modules/Settings/Media/files/Images.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language