YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Method clear has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function clear(): void
    {
        if ('TEST' === getenv('INSTALL_MODE')) {
            return;
        }
Severity: Minor
Found in app/Installer/Composer.php - About 1 hr to fix

    Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getAdditionalButtons(): array
        {
            $return = [];
            if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                $return[] = \Vtiger_Link_Model::getInstanceFromValues([
    Severity: Minor
    Found in app/YetiForce/Shop/Product/YetiForcePlGus.php - About 1 hr to fix

      Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getAdditionalButtons(): array
          {
              $return = [];
              if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                  $return[] = \Vtiger_Link_Model::getInstanceFromValues([
      Severity: Minor
      Found in app/YetiForce/Shop/Product/YetiForceRcFrEnterpriseGouv.php - About 1 hr to fix

        Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getAdditionalButtons(): array
            {
                $return = [];
                if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                    $return[] = \Vtiger_Link_Model::getInstanceFromValues([
        Severity: Minor
        Found in app/YetiForce/Shop/Product/YetiForceRcPlKrs.php - About 1 hr to fix

          Method getFooterScripts has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function getFooterScripts(\App\Request $request)
              {
                  $moduleName = $request->getModule();
                  $jsFileNames = [
                      'modules.Vtiger.resources.Menu',
          Severity: Minor
          Found in app/Controller/View/Page.php - About 1 hr to fix

            Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function getAdditionalButtons(): array
                {
                    $return = [];
                    if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                        $return[] = \Vtiger_Link_Model::getInstanceFromValues([
            Severity: Minor
            Found in app/YetiForce/Shop/Product/YetiForceRcUsaEdgar.php - About 1 hr to fix

              Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function getAdditionalButtons(): array
                  {
                      $return = [];
                      if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                          $return[] = \Vtiger_Link_Model::getInstanceFromValues([
              Severity: Minor
              Found in app/YetiForce/Shop/Product/YetiForceRcUkCompaniesHouse.php - About 1 hr to fix

                Method verifySpf has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function verifySpf(): array
                    {
                        if (isset($this->spfCache)) {
                            return $this->spfCache;
                        }
                Severity: Minor
                Found in app/Mail/Rbl.php - About 1 hr to fix

                  Method getHeaderCss has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function getHeaderCss(\App\Request $request)
                      {
                          return $this->checkAndConvertCssStyles([
                              '~layouts/resources/icons/adminIcon.css',
                              '~layouts/resources/icons/additionalIcons.css',
                  Severity: Minor
                  Found in app/Controller/View/Base.php - About 1 hr to fix

                    Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function getAdditionalButtons(): array
                        {
                            $return = [];
                            if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                                $return[] = \Vtiger_Link_Model::getInstanceFromValues([
                    Severity: Minor
                    Found in app/YetiForce/Shop/Product/YetiForceRcNorthData.php - About 1 hr to fix

                      Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function getAdditionalButtons(): array
                          {
                              $return = [];
                              if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                                  $return[] = \Vtiger_Link_Model::getInstanceFromValues([
                      Severity: Minor
                      Found in app/YetiForce/Shop/Product/YetiForceRcUkVatPayerStatus.php - About 1 hr to fix

                        Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function getAdditionalButtons(): array
                            {
                                $links = [
                                    \Vtiger_Link_Model::getInstanceFromValues([
                                        'linklabel' => 'Website',
                        Severity: Minor
                        Found in app/YetiForce/Shop/Product/YetiForceWidgets.php - About 1 hr to fix

                          Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function getAdditionalButtons(): array
                              {
                                  $return = [];
                                  if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                                      $return[] = \Vtiger_Link_Model::getInstanceFromValues([
                          Severity: Minor
                          Found in app/YetiForce/Shop/Product/YetiForceRcPlVatPayerStatus.php - About 1 hr to fix

                            Method getByModule has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public static function getByModule(string $moduleName, ?bool $onlyActive = false, ?string $relatedModuleName = null): array
                                {
                                    if (Cache::has('App\Relation::getByModule', $moduleName)) {
                                        $allRelations = Cache::get('App\Relation::getByModule', $moduleName);
                                    } else {
                            Severity: Minor
                            Found in app/Relation.php - About 1 hr to fix

                              Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function getAdditionalButtons(): array
                                  {
                                      $return = [];
                                      if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                                          $return[] = \Vtiger_Link_Model::getInstanceFromValues([
                              Severity: Minor
                              Found in app/YetiForce/Shop/Product/YetiForceRcVatifyEu.php - About 1 hr to fix

                                Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function getAdditionalButtons(): array
                                    {
                                        $return = [];
                                        if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                                            $return[] = \Vtiger_Link_Model::getInstanceFromValues([
                                Severity: Minor
                                Found in app/YetiForce/Shop/Product/YetiForceRcBrReceitaWsCnpj.php - About 1 hr to fix

                                  Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getAdditionalButtons(): array
                                      {
                                          $links = [
                                              \Vtiger_Link_Model::getInstanceFromValues([
                                                  'linklabel' => 'Website',
                                  Severity: Minor
                                  Found in app/YetiForce/Shop/Product/YetiForceWebservicePremium.php - About 1 hr to fix

                                    Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function getAdditionalButtons(): array
                                        {
                                            $return = [];
                                            if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                                                $return[] = \Vtiger_Link_Model::getInstanceFromValues([
                                    Severity: Minor
                                    Found in app/YetiForce/Shop/Product/YetiForceRcNoBrregEnhetsreg.php - About 1 hr to fix

                                      Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function getAdditionalButtons(): array
                                          {
                                              $return = [];
                                              if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                                                  $return[] = \Vtiger_Link_Model::getInstanceFromValues([
                                      Severity: Minor
                                      Found in app/YetiForce/Shop/Product/YetiForceRcPlCeidg.php - About 1 hr to fix

                                        Method getAdditionalButtons has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function getAdditionalButtons(): array
                                            {
                                                $return = [];
                                                if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
                                                    $return[] = \Vtiger_Link_Model::getInstanceFromValues([
                                        Severity: Minor
                                        Found in app/YetiForce/Shop/Product/YetiForceRcChZefix.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language