mundipagg/magento2

View on GitHub
Setup/Recurrence.php

Summary

Maintainability
F
2 wks
Test Coverage

File Recurrence.php has 561 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace MundiPagg\MundiPagg\Setup;

use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
Severity: Major
Found in Setup/Recurrence.php - About 1 day to fix

    Method updateConfigProductRecurrencePaymment has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function updateConfigProductRecurrencePaymment($setup)
        {
    
            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
    
    
    Severity: Minor
    Found in Setup/Recurrence.php - About 1 hr to fix

      Method updateConfigProductRecurrenceStartAt has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function updateConfigProductRecurrenceStartAt($setup)
          {
      
              $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
              $eavSetup->addAttribute(
      Severity: Minor
      Found in Setup/Recurrence.php - About 1 hr to fix

        Method updateConfigProductPlanInterval has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function updateConfigProductPlanInterval($setup)
            {
        
                $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                $eavSetup->addAttribute(
        Severity: Minor
        Found in Setup/Recurrence.php - About 1 hr to fix

          Method updateConfigProductPlanPaymment has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function updateConfigProductPlanPaymment($setup)
              {
                  $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                  $eavSetup->addAttribute(
                      \Magento\Catalog\Model\Product::ENTITY,
          Severity: Minor
          Found in Setup/Recurrence.php - About 1 hr to fix

            Method updateConfigProductRecurrenceInterval has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function updateConfigProductRecurrenceInterval($setup)
                {
            
                    $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                    $eavSetup->addAttribute(
            Severity: Minor
            Found in Setup/Recurrence.php - About 1 hr to fix

              Method updateConfigProductRecurrenceBillingType has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function updateConfigProductRecurrenceBillingType($setup)
                  {
              
                      $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                      $eavSetup->addAttribute(
              Severity: Minor
              Found in Setup/Recurrence.php - About 1 hr to fix

                Method updateConfigProductPlanBillingType has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function updateConfigProductPlanBillingType($setup)
                    {
                
                        $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                        $eavSetup->addAttribute(
                Severity: Minor
                Found in Setup/Recurrence.php - About 1 hr to fix

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

                      public function updateConfigProductPlanBillingPeriodDays($setup)
                      {
                  
                          $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                          $eavSetup->addAttribute(
                  Severity: Minor
                  Found in Setup/Recurrence.php - About 1 hr to fix

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

                        public function updateConfigProductPlanIntervalPeriod($setup)
                        {
                    
                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                            $eavSetup->addAttribute(
                    Severity: Minor
                    Found in Setup/Recurrence.php - About 1 hr to fix

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

                          public function updateConfigProductRecurrenceBillingPeriodDays($setup)
                          {
                      
                              $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                              $eavSetup->addAttribute(
                      Severity: Minor
                      Found in Setup/Recurrence.php - About 1 hr to fix

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

                            public function updateConfigProductPlanTrialPeriod($setup)
                            {
                        
                                $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                $eavSetup->addAttribute(
                        Severity: Minor
                        Found in Setup/Recurrence.php - About 1 hr to fix

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

                              public function updateConfigProductRecurrenceIntervalPeriod($setup)
                              {
                          
                                  $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                  $eavSetup->addAttribute(
                          Severity: Minor
                          Found in Setup/Recurrence.php - About 1 hr to fix

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

                                public function updateConfigProductRecurrenceStartAtDays($setup)
                                {
                            
                                    $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                    $eavSetup->addAttribute(
                            Severity: Minor
                            Found in Setup/Recurrence.php - About 1 hr to fix

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

                                  public function updateConfigProductRecurrenceAllowSet($setup)
                                  {
                              
                                      $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                      $eavSetup->addAttribute(
                              Severity: Minor
                              Found in Setup/Recurrence.php - About 1 hr to fix

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

                                    public function updateConfigProductRecurrenceAllowOther($setup)
                                    {
                                
                                        $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                        $eavSetup->addAttribute(
                                Severity: Minor
                                Found in Setup/Recurrence.php - About 1 hr to fix

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

                                      public function updateConfigProductRecurrenceGlobal($setup)
                                      {
                                  
                                          $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                          $eavSetup->addAttribute(
                                  Severity: Minor
                                  Found in Setup/Recurrence.php - About 1 hr to fix

                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductRecurrencePaymment($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                    
                                    
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 1 other location - About 7 hrs to fix
                                    Setup/UpgradeData.php on lines 410..453

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 225.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductPlanInterval($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 11 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 40..74
                                    Setup/Recurrence.php on lines 149..184
                                    Setup/Recurrence.php on lines 302..337
                                    Setup/Recurrence.php on lines 373..407
                                    Setup/Recurrence.php on lines 446..481
                                    Setup/UpgradeData.php on lines 208..241
                                    Setup/UpgradeData.php on lines 243..277
                                    Setup/UpgradeData.php on lines 311..344
                                    Setup/UpgradeData.php on lines 455..488
                                    Setup/UpgradeData.php on lines 522..555
                                    Setup/UpgradeData.php on lines 589..623

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 195.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductPlanBillingType($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 11 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 40..74
                                    Setup/Recurrence.php on lines 77..112
                                    Setup/Recurrence.php on lines 302..337
                                    Setup/Recurrence.php on lines 373..407
                                    Setup/Recurrence.php on lines 446..481
                                    Setup/UpgradeData.php on lines 208..241
                                    Setup/UpgradeData.php on lines 243..277
                                    Setup/UpgradeData.php on lines 311..344
                                    Setup/UpgradeData.php on lines 455..488
                                    Setup/UpgradeData.php on lines 522..555
                                    Setup/UpgradeData.php on lines 589..623

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 195.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductRecurrenceBillingType($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 11 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 40..74
                                    Setup/Recurrence.php on lines 77..112
                                    Setup/Recurrence.php on lines 149..184
                                    Setup/Recurrence.php on lines 302..337
                                    Setup/Recurrence.php on lines 446..481
                                    Setup/UpgradeData.php on lines 208..241
                                    Setup/UpgradeData.php on lines 243..277
                                    Setup/UpgradeData.php on lines 311..344
                                    Setup/UpgradeData.php on lines 455..488
                                    Setup/UpgradeData.php on lines 522..555
                                    Setup/UpgradeData.php on lines 589..623

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 195.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductPlanPaymment($setup)
                                        {
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                                \Magento\Catalog\Model\Product::ENTITY,
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 11 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 77..112
                                    Setup/Recurrence.php on lines 149..184
                                    Setup/Recurrence.php on lines 302..337
                                    Setup/Recurrence.php on lines 373..407
                                    Setup/Recurrence.php on lines 446..481
                                    Setup/UpgradeData.php on lines 208..241
                                    Setup/UpgradeData.php on lines 243..277
                                    Setup/UpgradeData.php on lines 311..344
                                    Setup/UpgradeData.php on lines 455..488
                                    Setup/UpgradeData.php on lines 522..555
                                    Setup/UpgradeData.php on lines 589..623

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 195.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductRecurrenceInterval($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 11 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 40..74
                                    Setup/Recurrence.php on lines 77..112
                                    Setup/Recurrence.php on lines 149..184
                                    Setup/Recurrence.php on lines 373..407
                                    Setup/Recurrence.php on lines 446..481
                                    Setup/UpgradeData.php on lines 208..241
                                    Setup/UpgradeData.php on lines 243..277
                                    Setup/UpgradeData.php on lines 311..344
                                    Setup/UpgradeData.php on lines 455..488
                                    Setup/UpgradeData.php on lines 522..555
                                    Setup/UpgradeData.php on lines 589..623

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 195.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 12 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductRecurrenceStartAt($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 11 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 40..74
                                    Setup/Recurrence.php on lines 77..112
                                    Setup/Recurrence.php on lines 149..184
                                    Setup/Recurrence.php on lines 302..337
                                    Setup/Recurrence.php on lines 373..407
                                    Setup/UpgradeData.php on lines 208..241
                                    Setup/UpgradeData.php on lines 243..277
                                    Setup/UpgradeData.php on lines 311..344
                                    Setup/UpgradeData.php on lines 455..488
                                    Setup/UpgradeData.php on lines 522..555
                                    Setup/UpgradeData.php on lines 589..623

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 195.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 18 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductRecurrenceAllowSet($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 17 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 114..146
                                    Setup/Recurrence.php on lines 186..218
                                    Setup/Recurrence.php on lines 220..252
                                    Setup/Recurrence.php on lines 339..371
                                    Setup/Recurrence.php on lines 409..441
                                    Setup/Recurrence.php on lines 483..514
                                    Setup/Recurrence.php on lines 588..619
                                    Setup/Recurrence.php on lines 621..652
                                    Setup/UpgradeData.php on lines 279..309
                                    Setup/UpgradeData.php on lines 346..376
                                    Setup/UpgradeData.php on lines 378..408
                                    Setup/UpgradeData.php on lines 490..520
                                    Setup/UpgradeData.php on lines 557..587
                                    Setup/UpgradeData.php on lines 625..655
                                    Setup/UpgradeData.php on lines 666..696
                                    Setup/UpgradeData.php on lines 698..728
                                    Setup/UpgradeData.php on lines 730..760

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 183.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 18 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductRecurrenceGlobal($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 17 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 114..146
                                    Setup/Recurrence.php on lines 186..218
                                    Setup/Recurrence.php on lines 220..252
                                    Setup/Recurrence.php on lines 339..371
                                    Setup/Recurrence.php on lines 409..441
                                    Setup/Recurrence.php on lines 483..514
                                    Setup/Recurrence.php on lines 555..586
                                    Setup/Recurrence.php on lines 621..652
                                    Setup/UpgradeData.php on lines 279..309
                                    Setup/UpgradeData.php on lines 346..376
                                    Setup/UpgradeData.php on lines 378..408
                                    Setup/UpgradeData.php on lines 490..520
                                    Setup/UpgradeData.php on lines 557..587
                                    Setup/UpgradeData.php on lines 625..655
                                    Setup/UpgradeData.php on lines 666..696
                                    Setup/UpgradeData.php on lines 698..728
                                    Setup/UpgradeData.php on lines 730..760

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 183.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 18 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductPlanTrialPeriod($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 17 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 114..146
                                    Setup/Recurrence.php on lines 186..218
                                    Setup/Recurrence.php on lines 339..371
                                    Setup/Recurrence.php on lines 409..441
                                    Setup/Recurrence.php on lines 483..514
                                    Setup/Recurrence.php on lines 555..586
                                    Setup/Recurrence.php on lines 588..619
                                    Setup/Recurrence.php on lines 621..652
                                    Setup/UpgradeData.php on lines 279..309
                                    Setup/UpgradeData.php on lines 346..376
                                    Setup/UpgradeData.php on lines 378..408
                                    Setup/UpgradeData.php on lines 490..520
                                    Setup/UpgradeData.php on lines 557..587
                                    Setup/UpgradeData.php on lines 625..655
                                    Setup/UpgradeData.php on lines 666..696
                                    Setup/UpgradeData.php on lines 698..728
                                    Setup/UpgradeData.php on lines 730..760

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 183.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 18 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductRecurrenceIntervalPeriod($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 17 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 114..146
                                    Setup/Recurrence.php on lines 186..218
                                    Setup/Recurrence.php on lines 220..252
                                    Setup/Recurrence.php on lines 409..441
                                    Setup/Recurrence.php on lines 483..514
                                    Setup/Recurrence.php on lines 555..586
                                    Setup/Recurrence.php on lines 588..619
                                    Setup/Recurrence.php on lines 621..652
                                    Setup/UpgradeData.php on lines 279..309
                                    Setup/UpgradeData.php on lines 346..376
                                    Setup/UpgradeData.php on lines 378..408
                                    Setup/UpgradeData.php on lines 490..520
                                    Setup/UpgradeData.php on lines 557..587
                                    Setup/UpgradeData.php on lines 625..655
                                    Setup/UpgradeData.php on lines 666..696
                                    Setup/UpgradeData.php on lines 698..728
                                    Setup/UpgradeData.php on lines 730..760

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 183.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 18 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductRecurrenceAllowOther($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 17 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 114..146
                                    Setup/Recurrence.php on lines 186..218
                                    Setup/Recurrence.php on lines 220..252
                                    Setup/Recurrence.php on lines 339..371
                                    Setup/Recurrence.php on lines 409..441
                                    Setup/Recurrence.php on lines 483..514
                                    Setup/Recurrence.php on lines 555..586
                                    Setup/Recurrence.php on lines 588..619
                                    Setup/UpgradeData.php on lines 279..309
                                    Setup/UpgradeData.php on lines 346..376
                                    Setup/UpgradeData.php on lines 378..408
                                    Setup/UpgradeData.php on lines 490..520
                                    Setup/UpgradeData.php on lines 557..587
                                    Setup/UpgradeData.php on lines 625..655
                                    Setup/UpgradeData.php on lines 666..696
                                    Setup/UpgradeData.php on lines 698..728
                                    Setup/UpgradeData.php on lines 730..760

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 183.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 18 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductRecurrenceBillingPeriodDays($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 17 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 114..146
                                    Setup/Recurrence.php on lines 186..218
                                    Setup/Recurrence.php on lines 220..252
                                    Setup/Recurrence.php on lines 339..371
                                    Setup/Recurrence.php on lines 483..514
                                    Setup/Recurrence.php on lines 555..586
                                    Setup/Recurrence.php on lines 588..619
                                    Setup/Recurrence.php on lines 621..652
                                    Setup/UpgradeData.php on lines 279..309
                                    Setup/UpgradeData.php on lines 346..376
                                    Setup/UpgradeData.php on lines 378..408
                                    Setup/UpgradeData.php on lines 490..520
                                    Setup/UpgradeData.php on lines 557..587
                                    Setup/UpgradeData.php on lines 625..655
                                    Setup/UpgradeData.php on lines 666..696
                                    Setup/UpgradeData.php on lines 698..728
                                    Setup/UpgradeData.php on lines 730..760

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 183.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 18 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductRecurrenceStartAtDays($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 17 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 114..146
                                    Setup/Recurrence.php on lines 186..218
                                    Setup/Recurrence.php on lines 220..252
                                    Setup/Recurrence.php on lines 339..371
                                    Setup/Recurrence.php on lines 409..441
                                    Setup/Recurrence.php on lines 555..586
                                    Setup/Recurrence.php on lines 588..619
                                    Setup/Recurrence.php on lines 621..652
                                    Setup/UpgradeData.php on lines 279..309
                                    Setup/UpgradeData.php on lines 346..376
                                    Setup/UpgradeData.php on lines 378..408
                                    Setup/UpgradeData.php on lines 490..520
                                    Setup/UpgradeData.php on lines 557..587
                                    Setup/UpgradeData.php on lines 625..655
                                    Setup/UpgradeData.php on lines 666..696
                                    Setup/UpgradeData.php on lines 698..728
                                    Setup/UpgradeData.php on lines 730..760

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 183.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 18 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductPlanBillingPeriodDays($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 17 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 114..146
                                    Setup/Recurrence.php on lines 220..252
                                    Setup/Recurrence.php on lines 339..371
                                    Setup/Recurrence.php on lines 409..441
                                    Setup/Recurrence.php on lines 483..514
                                    Setup/Recurrence.php on lines 555..586
                                    Setup/Recurrence.php on lines 588..619
                                    Setup/Recurrence.php on lines 621..652
                                    Setup/UpgradeData.php on lines 279..309
                                    Setup/UpgradeData.php on lines 346..376
                                    Setup/UpgradeData.php on lines 378..408
                                    Setup/UpgradeData.php on lines 490..520
                                    Setup/UpgradeData.php on lines 557..587
                                    Setup/UpgradeData.php on lines 625..655
                                    Setup/UpgradeData.php on lines 666..696
                                    Setup/UpgradeData.php on lines 698..728
                                    Setup/UpgradeData.php on lines 730..760

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 183.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 18 locations. Consider refactoring.
                                    Open

                                        public function updateConfigProductPlanIntervalPeriod($setup)
                                        {
                                    
                                            $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
                                            $eavSetup->addAttribute(
                                    Severity: Major
                                    Found in Setup/Recurrence.php and 17 other locations - About 5 hrs to fix
                                    Setup/Recurrence.php on lines 186..218
                                    Setup/Recurrence.php on lines 220..252
                                    Setup/Recurrence.php on lines 339..371
                                    Setup/Recurrence.php on lines 409..441
                                    Setup/Recurrence.php on lines 483..514
                                    Setup/Recurrence.php on lines 555..586
                                    Setup/Recurrence.php on lines 588..619
                                    Setup/Recurrence.php on lines 621..652
                                    Setup/UpgradeData.php on lines 279..309
                                    Setup/UpgradeData.php on lines 346..376
                                    Setup/UpgradeData.php on lines 378..408
                                    Setup/UpgradeData.php on lines 490..520
                                    Setup/UpgradeData.php on lines 557..587
                                    Setup/UpgradeData.php on lines 625..655
                                    Setup/UpgradeData.php on lines 666..696
                                    Setup/UpgradeData.php on lines 698..728
                                    Setup/UpgradeData.php on lines 730..760

                                    Duplicated Code

                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                    Tuning

                                    This issue has a mass of 183.

                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                    Refactorings

                                    Further Reading

                                    There are no issues that match your filters.

                                    Category
                                    Status