YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Method parseValueForDate has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function parseValueForDate($condition)
    {
        $value = $condition['value'];
        $operation = $condition['operation'];

Severity: Major
Found in modules/com_vtiger_workflow/WorkFlowScheduler.php - About 2 hrs to fix

    Method initializeListViewContents has 55 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function initializeListViewContents(App\Request $request, Vtiger_Viewer $viewer)
        {
            $moduleName = $request->getModule();
            $sourceModule = $request->getByType('sourceModule', 2);
            $pageNumber = $request->isEmpty('page', true) ? 1 : $request->getInteger('page');
    Severity: Major
    Found in modules/RecycleBin/views/List.php - About 2 hrs to fix

      Method entityAfterSave has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function entityAfterSave(App\EventHandler $eventHandler)
          {
              $moduleName = $eventHandler->getModuleName();
              // Update Used Units for the Service Contract, everytime the status of a ticket related to the Service Contract changes
              if ('HelpDesk' === $moduleName && 'ServiceContracts' !== \App\Request::_get('return_module')) {
      Severity: Major
      Found in modules/ServiceContracts/handlers/ServiceContractsHandler.php - About 2 hrs to fix

        Method setCardAddres has 55 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function setCardAddres(Sabre\VObject\Component $vcard, $moduleName, $record)
            {
                $adr1 = $adr2 = [];
                if ('Contacts' === $moduleName) {
                    if (!empty($record['addresslevel5a'])) {
        Severity: Major
        Found in modules/API/models/CardDAV.php - About 2 hrs to fix

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

              public function uploadTempFile(array $files, int $recordId, ?string $hash = null)
              {
                  $db = \App\Db::getInstance();
                  $attach = [];
                  $type = 'image';
          Severity: Major
          Found in modules/Vtiger/uitypes/MultiImage.php - About 2 hrs to fix

            Method getSideBarLinks has 55 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function getSideBarLinks($linkParams)
                {
                    $menuUrl = '';
                    if (isset($_REQUEST['parent'])) {
                        $menuUrl .= '&parent=' . \App\Request::_getByType('parent', 'Alnum');
            Severity: Major
            Found in modules/Vtiger/models/Module.php - About 2 hrs to fix

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

                  public function process(App\Request $request)
                  {
                      $currentUser = Users_Record_Model::getCurrentUserModel();
                      $viewer = $this->getViewer($request);
                      $moduleName = 'Home';
              Severity: Major
              Found in modules/Vtiger/dashboards/CalendarActivities.php - About 2 hrs to fix

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

                    public function send()
                    {
                        $encryptDataTransfer = \App\Config::api('ENCRYPT_DATA_TRANSFER') ? 1 : 0;
                        if (200 !== $this->status || 'data' !== $this->responseType) {
                            $encryptDataTransfer = 0;
                Severity: Major
                Found in api/webservice/Core/Response.php - About 2 hrs to fix

                  File RecordNumber.php has 257 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  
                  namespace App\Fields;
                  
                  /**
                  Severity: Minor
                  Found in app/Fields/RecordNumber.php - About 2 hrs to fix

                    File GetData.php has 257 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    
                    /**
                     * Settings MailRbl get data action file.
                     *
                    Severity: Minor
                    Found in modules/Settings/MailRbl/actions/GetData.php - About 2 hrs to fix

                      PackageUpdate has 21 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class PackageUpdate extends PackageImport
                      {
                          public $_migrationinfo = false;
                          public $listFields = [];
                          public $listBlocks = [];
                      Severity: Minor
                      Found in vtlib/Vtiger/PackageUpdate.php - About 2 hrs to fix

                        Records has 21 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        abstract class Records extends \App\Base
                        {
                            /** @var int Data export in a format that can be imported later */
                            public const EXPORT_FORMAT = 0;
                        
                        
                        Severity: Minor
                        Found in app/Export/Records.php - About 2 hrs to fix

                          Register has 21 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          final class Register extends AbstractBase
                          {
                              /** @var string URL */
                              public const URL = 'https://api.yetiforce.eu/registrations';
                          
                          
                          Severity: Minor
                          Found in app/YetiForce/Register.php - About 2 hrs to fix

                            Colors has 21 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class Colors
                            {
                                public const EMPTY_COLOR = 'rgba(0,0,0,0.1)';
                            
                                /**
                            Severity: Minor
                            Found in app/Colors.php - About 2 hrs to fix

                              Settings_WebserviceUsers_Record_Model has 21 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class Settings_WebserviceUsers_Record_Model extends Settings_Vtiger_Record_Model
                              {
                                  /**
                                   * Changes.
                                   *
                              Severity: Minor
                              Found in modules/Settings/WebserviceUsers/models/Record.php - About 2 hrs to fix

                                Settings_SharingAccess_Rule_Model has 21 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class Settings_SharingAccess_Rule_Model extends \App\Base
                                {
                                    const RULE_TYPE_GROUPS = 'GRP';
                                    const RULE_TYPE_ROLE = 'ROLE';
                                    const RULE_TYPE_ROLE_AND_SUBORDINATES = 'RS';
                                Severity: Minor
                                Found in modules/Settings/SharingAccess/models/Rule.php - About 2 hrs to fix

                                  VTFieldExpressionEvaluater has 21 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class VTFieldExpressionEvaluater
                                  {
                                      public static function __vt_add($arr)
                                      {
                                          if (1 == \count($arr)) {

                                    Workflow has 21 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class Workflow
                                    {
                                        /**
                                         * Scheduled hourly.
                                         *
                                    Severity: Minor
                                    Found in modules/com_vtiger_workflow/Workflow.php - About 2 hrs to fix

                                      Calendar_Record_Model has 21 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class Calendar_Record_Model extends Vtiger_Record_Model
                                      {
                                          /**
                                           *  Show Reminder popup.
                                           */
                                      Severity: Minor
                                      Found in modules/Calendar/models/Record.php - About 2 hrs to fix

                                        OSSMailView_Record_Model has 21 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class OSSMailView_Record_Model extends Vtiger_Record_Model
                                        {
                                            const TYPE_COLORS = [
                                                0 => 'bgGreen',
                                                1 => 'bgDanger',
                                        Severity: Minor
                                        Found in modules/OSSMailView/models/Record.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language