YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

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

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

    Method getStats has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getStats($data, $langBase, $byModule)
        {
            $differences = [];
            $i = 0;
            foreach ($data as $id => $dataLang) {
    Severity: Minor
    Found in modules/Settings/LangManagement/models/Module.php - About 1 hr to fix

      Method massDelete has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function massDelete(App\Request $request)
          {
              $response = new Vtiger_Response();
              $moduleName = $request->getModule(false);
              $result = true;
      Severity: Minor
      Found in modules/Settings/PublicHoliday/actions/Holiday.php - About 1 hr to fix

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

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

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

              private function getQuery(App\Request $request): App\Db\Query
              {
                  $columns = [];
                  foreach ($request->getArray('columns') as $key => $value) {
                      $columns[$key] = $value['data'];
          Severity: Minor
          Found in modules/Settings/MailRbl/actions/GetData.php - About 1 hr to fix

            Method executeActions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function executeActions($account, OSSMail_Mail_Model $mail, $folder, $params = false)
                {
                    \App\Log::trace('Start execute actions: ' . $account['username'], 'MailScanner');
            
                    $actions = [];
            Severity: Minor
            Found in modules/OSSMailScanner/models/Record.php - About 1 hr to fix

              Method bindMail has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function bindMail($row)
                  {
                      if (empty($row['actions'])) {
                          return false;
                      }
              Severity: Minor
              Found in modules/OSSMailScanner/models/Record.php - About 1 hr to fix

                Method getNextTriggerTimeForAnnualDates has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function getNextTriggerTimeForAnnualDates($annualDates, $scheduledTime)
                    {
                        if ($annualDates) {
                            $today = date('Y-m-d');
                            $annualDates = \App\Json::decode($annualDates);
                Severity: Minor
                Found in modules/com_vtiger_workflow/Workflow.php - About 1 hr to fix

                  Method __construct has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function __construct($expr)
                      {
                          $tokenTypes = [
                              'SPACE' => ['\s+', 'processTokenId'],
                              'SYMBOL' => ['[a-zA-Z][\w]*', 'processTokenSymbol'],
                  Severity: Minor
                  Found in modules/com_vtiger_workflow/expression_engine/VTTokenizer.php - About 1 hr to fix

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

                        public function process(App\Request $request)
                        {
                            $queryGenerator = $this->getQuery($request);
                            $count = 0;
                            $moduleName = $request->getModule();
                    Severity: Minor
                    Found in modules/SMSNotifier/actions/MassSMS.php - About 1 hr to fix

                      Method searchByEmails has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function searchByEmails(string $moduleName, string $fieldName, array $emails)
                          {
                              $return = [];
                              $cacheKey = 'MailSearchByEmails' . $moduleName . '_' . $fieldName;
                              foreach ($emails as $email) {
                      Severity: Minor
                      Found in modules/OSSMail/models/Mail.php - About 1 hr to fix

                        Method getEntity has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function getEntity()
                            {
                                $dataReader = $this->getQuery()->createCommand()->query();
                                $result = [];
                                $moduleModel = $this->getModule();
                        Severity: Minor
                        Found in modules/OSSTimeControl/models/Calendar.php - About 1 hr to fix

                          Method recordCreate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function recordCreate($cal)
                              {
                                  \App\Log::trace(__METHOD__ . ' | Start Cal ID' . $cal['id']);
                                  $calendar = \App\Integrations\Dav\Calendar::loadFromContent($cal['calendardata']);
                                  foreach ($calendar->getRecordInstance() as $recordModel) {
                          Severity: Minor
                          Found in modules/API/models/CalDAV.php - About 1 hr to fix

                            Method getEntity has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function getEntity()
                                {
                                    $dataReader = $this->getQuery()->createCommand()->query();
                                    $result = [];
                                    $moduleModel = $this->getModule();
                            Severity: Minor
                            Found in modules/Occurrences/models/Calendar.php - About 1 hr to fix

                              Method davCreate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function davCreate()
                                  {
                                      \App\Log::trace(__METHOD__ . ' | Start CRM ID:' . $this->record['id']);
                                      $instance = \App\Integrations\Dav\Calendar::createEmptyInstance();
                                      $instance->loadFromArray($this->record);
                              Severity: Minor
                              Found in modules/API/models/CalDAV.php - About 1 hr to fix

                                Method getStructure has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function getStructure(): array
                                    {
                                        $structure = [];
                                        $moduleName = $this->recordModel->getModuleName();
                                        $textParser = App\TextParser::getInstanceByModel($this->recordModel);
                                Severity: Minor
                                Found in modules/Calendar/views/SendInvitationModal.php - About 1 hr to fix

                                  Method getLinks has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getLinks(): array
                                      {
                                          $relatedLinks = parent::getLinks();
                                          if ($this->getParentRecordModel()->isReadOnly()) {
                                              return $relatedLinks;
                                  Severity: Minor
                                  Found in modules/Campaigns/models/RelationListView.php - About 1 hr to fix

                                    Method getRelationField has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function getRelationField()
                                        {
                                            $relationField = $this->get('relationField');
                                            if (!$relationField) {
                                                $relationField = false;
                                    Severity: Minor
                                    Found in modules/Campaigns/models/Relation.php - About 1 hr to fix

                                      Method getDetailViewLinks has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function getDetailViewLinks(array $linkParams): array
                                          {
                                              $linkModelList = parent::getDetailViewLinks($linkParams);
                                              $recordModel = $this->getRecord();
                                              foreach ($linkModelList['DETAIL_VIEW_BASIC'] as $index => $link) {
                                      Severity: Minor
                                      Found in modules/Leads/models/DetailView.php - About 1 hr to fix

                                        Method downloadFile has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function downloadFile()
                                            {
                                                $fileContent = false;
                                                if ($path = $this->getFilePath()) {
                                                    $fileDetails = $this->getFileDetails();
                                        Severity: Minor
                                        Found in modules/Documents/models/Record.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language