YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

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

    public static function getLabel($mixedId)
    {
        $multiMode = \is_array($mixedId);
        $ids = $multiMode ? $mixedId : [$mixedId];
        $missing = [];
Severity: Minor
Found in app/Fields/Owner.php - About 1 hr to fix

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

        public function rename()
        {
            $newValue = $this->name;
            $previousValue = $this->getPreviousValue('name');
            $fieldName = $this->fieldModel->getName();
    Severity: Minor
    Found in app/Fields/Picklist/Item.php - About 1 hr to fix

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

          public function process(): int
          {
              $dataReader = (new \App\Db\Query())->from('dbo.FIRMA')
                  ->leftJoin('dbo.ADRESY_FIRMY', 'dbo.FIRMA.ID_ADRESU_DOMYSLNEGO = dbo.ADRESY_FIRMY.ID_ADRESY_FIRMY')
                  ->where(['>', 'dbo.FIRMA.ID_FIRMY', 0])->createCommand($this->controller->getDb())->query();
      Severity: Minor
      Found in app/Integrations/Wapro/Synchronizer/MultiCompany.php - About 1 hr to fix

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

            private function getDataFromApi($params): void
            {
                $params['format'] = 'json';
                if (!empty($this->token)) {
                    $params['token'] = $this->token;
        Severity: Minor
        Found in app/RecordCollectors/DkCvr.php - About 1 hr to fix

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

              public function send(): bool
              {
                  $eventHandler = new EventHandler();
                  $eventHandler->setParams(['mailer' => $this]);
                  $eventHandler->trigger('MailerBeforeSend');
          Severity: Minor
          Found in app/Mailer.php - About 1 hr to fix

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

                public function getListViewMassActions($linkParams)
                {
                    $links['LISTVIEWMASSACTION'] = [];
                    $massActionLinks = [];
                    if ('Users' === $linkParams['MODULE'] && 'List' === $linkParams['ACTION'] && App\User::getCurrentUserModel()->isAdmin()) {
            Severity: Minor
            Found in modules/Users/models/ListView.php - About 1 hr to fix

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

                  public function getHeaderLinks(): array
                  {
                      $links = [];
                      $detailUrl = $this->recordModel->getFullDetailViewUrl();
                      $editUrl = $this->recordModel->isEditable() ? $this->recordModel->getEditViewUrl() : '';
              Severity: Minor
              Found in modules/Users/models/RecordPopover.php - About 1 hr to fix

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

                    public function process(App\Request $request)
                    {
                        $userModel = \App\User::getCurrentUserModel();
                        $groupId = $request->getInteger('groupID');
                        if ($userModel->isAdmin()) {
                Severity: Minor
                Found in modules/Users/views/MemberList.php - About 1 hr to fix

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

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

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

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

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

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

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

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

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

                              public function delete($transferToRole)
                              {
                                  $db = App\Db::getInstance();
                                  $roleId = $this->getId();
                                  $transferRoleId = $transferToRole->getId();
                          Severity: Minor
                          Found in modules/Settings/Roles/models/Record.php - About 1 hr to fix

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

                                public function getRecordLinks(): array
                                {
                                    $recordLinks = [
                                        [
                                            'linktype' => 'LISTVIEWRECORD',
                            Severity: Minor
                            Found in modules/Settings/Wapro/models/Record.php - About 1 hr to fix

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

                                  public function updateBlockedIp()
                                  {
                                      \App\Log::trace('Start ' . __METHOD__);
                                      $db = \App\Db::getInstance('admin');
                                      $time = $this->get('timelock');
                              Severity: Minor
                              Found in modules/Settings/BruteForce/models/Module.php - About 1 hr to fix

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

                                    public static function getFields(string $moduleName): array
                                    {
                                        $config = App\Config::module('MailIntegration', null, []);
                                        $outlookUrls = $config['outlookUrls'] ?? [];
                                        $fields = [
                                Severity: Minor
                                Found in modules/Settings/MailIntegration/models/ConfigForm.php - About 1 hr to fix

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

                                      public function addTranslation(App\Request $request)
                                      {
                                          $moduleName = $request->getModule(false);
                                          try {
                                              $langs = $request->getArray('langs', 1);
                                  Severity: Minor
                                  Found in modules/Settings/LangManagement/actions/SaveAjax.php - About 1 hr to fix

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

                                        public function process(App\Request $request)
                                        {
                                            $db = \App\Db::getInstance('admin');
                                            $dbCommand = $db->createCommand();
                                            if (\in_array($request->getMode(), ['forVerification', 'toSend', 'request'])) {
                                    Severity: Minor
                                    Found in modules/Settings/MailRbl/actions/DeleteAjax.php - About 1 hr to fix

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

                                          public function createMenu(App\Request $request)
                                          {
                                              $data = $request->getMultiDimensionArray('mdata', [
                                                  'type' => 'Alnum',
                                                  'module' => 'Alnum',
                                      Severity: Minor
                                      Found in modules/Settings/Menu/actions/SaveAjax.php - About 1 hr to fix

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

                                            public function insertIntoActivityReminderPopup()
                                            {
                                                $cbrecord = $this->getId();
                                                if (!empty($cbrecord)) {
                                                    $cbdate = $this->get('date_start');
                                        Severity: Minor
                                        Found in modules/Calendar/models/Record.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language