YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

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

    public function process()
    {
        if (!$this->textParser->recordModel || !$this->textParser->recordModel->getModule()->isInventory()) {
            return '';
        }
Severity: Minor
Found in app/TextParser/TableDiscountSTwoLang.php - About 1 hr to fix

    Method calculate has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function calculate()
        {
            if (!\App\RequestUtil::isNetConnection()) {
                throw new \App\Exceptions\AppException('ERR_NO_INTERNET_CONNECTION');
            }
    Severity: Minor
    Found in app/Map/Routing/GraphHopper.php - About 1 hr to fix

      Method find has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function find($value)
          {
              if (empty($value) || !\App\RequestUtil::isNetConnection()) {
                  return [];
              }
      Severity: Minor
      Found in app/Map/Address/GoogleGeocode.php - About 1 hr to fix

        Method validate has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private static function validate(string $type)
            {
                $main = static::parse($type);
                $cron = static::getCronVariables($type);
                foreach (static::${$type} as $key => &$item) {
        Severity: Minor
        Found in app/Utils/ConfReport.php - About 1 hr to fix

          Method loadFromContent has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public static function loadFromContent(string $contents, $name = false, array $param = [])
              {
                  if (empty($contents)) {
                      Log::warning("Empty content, unable to create file: $name | Size: " . \strlen($contents), __CLASS__);
                      return false;
          Severity: Minor
          Found in app/Fields/File.php - About 1 hr to fix

            Method getUsersByGroup has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function getUsersByGroup($groupId, $subGroups = false, $i = 0)
                {
                    $cacheKey = $groupId . (false === $subGroups ? '' : '#');
                    if (Cache::has('getUsersByGroup', $cacheKey)) {
                        return Cache::get('getUsersByGroup', $cacheKey);
            Severity: Minor
            Found in app/PrivilegeUtil.php - About 1 hr to fix

              Method change has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function change(App\Request $request): void
                  {
                      $moduleName = $request->getModule();
                      $password = $request->getRaw('password');
                      $userRecordModel = Users_Record_Model::getInstanceById($request->getInteger('record'), $moduleName);
              Severity: Minor
              Found in modules/Users/actions/Password.php - About 1 hr to fix

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

                    public function process(App\Request $request)
                    {
                        $mode = $request->getMode();
                        if (!empty($mode)) {
                            $this->invokeExposedMethod($mode, $request);
                Severity: Minor
                Found in modules/Users/actions/SaveAjax.php - About 1 hr to fix

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

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

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

                        public function process(App\Request $request)
                        {
                            $step = $request->getByType('step', 2);
                            if ($request->isEmpty('record', true)) {
                                $pdfModel = Settings_PDF_Record_Model::getCleanInstance($request->getByType('module_name', 2));
                    Severity: Minor
                    Found in modules/Settings/PDF/actions/Save.php - About 1 hr to fix

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

                          public function process(App\Request $request)
                          {
                              if ($mode = $request->getMode()) {
                                  $this->invokeExposedMethod($mode, $request);
                              } else {
                      Severity: Minor
                      Found in modules/Settings/FieldsDependency/views/Edit.php - About 1 hr to fix

                        Method importTaskMethod has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function importTaskMethod(array &$method, array &$messages)
                            {
                                $scriptData = base64_decode($method['script_content']);
                                $functionPath = $method['function_path'];
                                if (!$this->checkPathForImportMethod($functionPath)) {
                        Severity: Minor
                        Found in modules/Settings/Workflows/models/Module.php - About 1 hr to fix

                          Method setTileLayer has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function setTileLayer(App\Request $request): void
                              {
                                  $value = $request->getByType('vale', 'Text');
                                  $oldValue = \App\Config::module('OpenStreetMap', 'tileLayerServer');
                                  $all = \App\Config::module('OpenStreetMap', 'tileLayerServers');
                          Severity: Minor
                          Found in modules/Settings/Map/actions/Config.php - About 1 hr to fix

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

                                public function process(App\Request $request)
                                {
                                    \App\Log::trace(__METHOD__ . ' | Start');
                                    $sourceModule = $request->getByType('sourceModule', 2);
                                    $widgetsManagementModel = new Settings_WidgetsManagement_Module_Model();
                            Severity: Minor
                            Found in modules/Settings/WidgetsManagement/views/Configuration.php - About 1 hr to fix

                              Method doTask has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function doTask($recordModel)
                                  {
                                      $moduleName = $recordModel->getModuleName();
                                      $recordId = $recordModel->getId();
                                      switch ($this->recipients) {
                              Severity: Minor
                              Found in modules/com_vtiger_workflow/tasks/VTWatchdog.php - About 1 hr to fix

                                Method getRelatedModuleRecordIds has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function getRelatedModuleRecordIds(App\Request $request, $recordIds, $relModData)
                                    {
                                        $basicModule = $request->getModule();
                                        $parentModuleModel = Vtiger_Module_Model::getInstance($basicModule);
                                        $relatedIds = [];
                                Severity: Minor
                                Found in modules/Vtiger/models/TransferOwnership.php - About 1 hr to fix

                                  Method uploadTempFile has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function uploadTempFile(array $files, int $recordId)
                                      {
                                          $db = \App\Db::getInstance();
                                          $attach = [];
                                          $maxSize = $this->getFieldInfo()['maxFileSize'];
                                  Severity: Minor
                                  Found in modules/Vtiger/uitypes/MultiAttachment.php - About 1 hr to fix

                                    Method getLabelToDisplay has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public static function getLabelToDisplay(array $row): string
                                        {
                                            $name = '';
                                            $type = $row['type'];
                                            if (\is_int($type)) {
                                    Severity: Minor
                                    Found in modules/Vtiger/models/Menu.php - About 1 hr to fix

                                      Method changeState has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function changeState($state)
                                          {
                                              $db = \App\Db::getInstance();
                                              $transaction = $db->beginTransaction();
                                              try {
                                      Severity: Minor
                                      Found in modules/Vtiger/models/Record.php - About 1 hr to fix

                                        Method getValuesForSave has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function getValuesForSave()
                                            {
                                                $moduleModel = $this->getModule();
                                                $saveFields = $this->getModule()->getFieldsForSave($this);
                                                $forSave = $this->getEntityDataForSave();
                                        Severity: Minor
                                        Found in modules/Vtiger/models/Record.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language