YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function source has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                        source: function (request, response) {
                            AppConnector.request({
                                module: app.getModuleName(),
                                action: 'Fields',
                                mode: 'findAddress',
Severity: Minor
Found in public_html/layouts/basic/modules/OpenStreetMap/resources/Map.js - About 1 hr to fix

    Function select has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    select: (_event, ui) => {
                        this.recordsIds.push(ui.item.id);
                        AppConnector.request({
                            module: 'OpenStreetMap',
                            action: 'ClipBoard',
    Severity: Minor
    Found in public_html/layouts/basic/modules/OpenStreetMap/resources/Map.js - About 1 hr to fix

      Function uncheck_node has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              this.uncheck_node = function (obj, e) {
                  if (this.settings.checkbox.tie_selection) {
                      return this.deselect_node(obj, false, e);
                  }
                  var t1, t2, dom;
      Severity: Minor
      Found in public_html/layouts/resources/libraries/jstree.checkbox.js - About 1 hr to fix

        Function validate has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                validate: function () {
                    let response = this._super();
                    if (response !== true) {
                        return response;
                    }
        Severity: Minor
        Found in public_html/layouts/resources/validator/FieldValidator.js - About 1 hr to fix

          Function confirmedCallback has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          confirmedCallback: () => {
                              let progressIndicatorElement = $.progressIndicator({
                                  position: 'html',
                                  blockInfo: {
                                      enabled: true
          Severity: Minor
          Found in public_html/layouts/resources/app.js - About 1 hr to fix

            Function generateTree has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                            generateTree(container) {
                                const self = this;
                                if (self.treeInstance === false) {
                                    self.treeInstance = container;
                                    self.treeInstance
            Severity: Minor
            Found in public_html/layouts/resources/app.js - About 1 hr to fix

              Method setEntityIdentifier has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function setEntityIdentifier(FieldBasic $fieldInstance)
                  {
                      $db = \App\Db::getInstance();
              
                      if ($this->basetableid) {
              Severity: Minor
              Found in vtlib/Vtiger/ModuleBasic.php - About 1 hr to fix

                Method getModuleData has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function getModuleData($mixed)
                    {
                        if (empty($mixed)) {
                            \App\Log::error(__METHOD__ . ' - Required parameter missing');
                
                
                Severity: Minor
                Found in vtlib/Vtiger/Functions.php - About 1 hr to fix

                  Method testTranslate has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function testTranslate()
                      {
                          $this->assertSame(
                              '+$(general : CurrentDate)$ | ' . \App\Language::translate('LBL_SECONDS') . '==' . \App\Language::translate('LBL_COPY_BILLING_ADDRESS', 'Accounts') . '+',
                              self::$parserClean->setContent('+$(general : CurrentDate)$ | $(translate : LBL_SECONDS)$==$(translate : Accounts|LBL_COPY_BILLING_ADDRESS)$+')->parseTranslations()->getContent(),
                  Severity: Minor
                  Found in tests/App/TextParser.php - About 1 hr to fix

                    Method purifyHtml has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public static function purifyHtml(string $input, $loop = true): string
                        {
                            if (empty($input)) {
                                return $input;
                            }
                    Severity: Minor
                    Found in app/Purifier.php - About 1 hr to fix

                      Method initForCustomViewById has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function initForCustomViewById($viewId, $onlyFields = false)
                          {
                              $this->fields[] = 'id';
                              $customView = CustomView::getInstance($this->moduleName, $this->user);
                              foreach ($customView->getColumnsListByCvid($viewId) as $cvColumn) {
                      Severity: Minor
                      Found in app/QueryGenerator.php - About 1 hr to fix

                        Method custom has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            protected function custom($params)
                            {
                                $instance = null;
                                if (false !== strpos($params, '||')) {
                                    $params = explode('||', $params);
                        Severity: Minor
                        Found in app/TextParser.php - About 1 hr to fix

                          Method getAll has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public static function getAll()
                              {
                                  if (!\App\RequestUtil::isNetConnection()) {
                                      \App\Log::warning('ERR_NO_INTERNET_CONNECTION', __METHOD__);
                                      return [];
                          Severity: Minor
                          Found in app/Installer/Languages.php - About 1 hr to fix

                            Method validateHeaderCsp has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private static function validateHeaderCsp(string $name, array $row, string $sapi)
                                {
                                    unset($sapi);
                                    $header = strtolower(\str_replace('Header: ', '', $name));
                                    $row['recommended'] = trim(\App\Controller\Headers::getInstance()->getCspHeader());
                            Severity: Minor
                            Found in app/Utils/ConfReport.php - About 1 hr to fix

                              Method getRoomsCrm has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public static function getRoomsCrm(?int $userId = null): array
                                  {
                                      if (empty($userId)) {
                                          $userId = User::getCurrentUserId();
                                      }
                              Severity: Minor
                              Found in app/Chat.php - About 1 hr to fix

                                Method calculate has 28 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/Yours.php - About 1 hr to fix

                                  Method getInfo has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getInfo()
                                      {
                                          $pdo = $this->getSlavePdo();
                                          $statement = $pdo->prepare('SHOW VARIABLES');
                                          $statement->execute();
                                  Severity: Minor
                                  Found in app/Db.php - About 1 hr to fix

                                    Method getById has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public static function getById($crmId)
                                        {
                                            $values = [];
                                            if (\is_array($crmId)) {
                                                foreach ($crmId as $id) {
                                    Severity: Minor
                                    Found in app/Fields/SharedOwner.php - About 1 hr to fix

                                      Method getOptions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public static function getOptions(): array
                                          {
                                              $caPathOrFile = \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath();
                                              $options = [
                                                  'headers' => [
                                      Severity: Minor
                                      Found in app/RequestHttp.php - About 1 hr to fix

                                        Method getDependencyForModule has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public static function getDependencyForModule(string $moduleName)
                                            {
                                                if (\App\Cache::has('Picklist::getDependencyForModule', $moduleName)) {
                                                    return \App\Cache::get('Picklist::getDependencyForModule', $moduleName);
                                                }
                                        Severity: Minor
                                        Found in app/Fields/Picklist.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language