brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Function getPaymentsProgramOnboardingRequest has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
Open

    public function getPaymentsProgramOnboardingRequest($marketplace_id, $payments_program_type)
    {
        // Verify the required parameter 'marketplace_id' is set.
        if ($marketplace_id === null || (\is_array($marketplace_id) && count($marketplace_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getPaymentsProgramOnboarding');
Severity: Minor
Found in src/Sell/Account/V1/Api/OnboardingApi.php - About 3 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function getCustomPolicyRequest has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCustomPolicyRequest($custom_policy_id, $x_ebay_c_marketplace_id)
    {
        // Verify the required parameter 'custom_policy_id' is set.
        if ($custom_policy_id === null || (\is_array($custom_policy_id) && count($custom_policy_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $custom_policy_id when calling getCustomPolicy');
Severity: Minor
Found in src/Sell/Account/V1/Api/CustomPolicyApi.php - About 3 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function deleteSalesTaxRequest has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteSalesTaxRequest($country_code, $jurisdiction_id)
    {
        // Verify the required parameter 'country_code' is set.
        if ($country_code === null || (\is_array($country_code) && count($country_code) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $country_code when calling deleteSalesTax');
Severity: Minor
Found in src/Sell/Account/V1/Api/SalesTaxApi.php - About 3 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function updateSubscriptionRequest has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateSubscriptionRequest($subscription_id, $update_subscription_request = null)
    {
        // Verify the required parameter 'subscription_id' is set.
        if ($subscription_id === null || (\is_array($subscription_id) && count($subscription_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $subscription_id when calling updateSubscription');
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 3 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function updateDestinationRequest has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateDestinationRequest($destination_id, $destination_request = null)
    {
        // Verify the required parameter 'destination_id' is set.
        if ($destination_id === null || (\is_array($destination_id) && count($destination_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $destination_id when calling updateDestination');
Severity: Minor
Found in src/Commerce/Notification/V1/Api/DestinationApi.php - About 3 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method getCustomerServiceMetricTasksRequest has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getCustomerServiceMetricTasksRequest($date_range = null, $feed_type = null, $limit = null, $look_back_days = null, $offset = null)
    {
        $resourcePath = '/customer_service_metric_task';
        $formParams = [];
        $queryParams = [];
Severity: Major
Found in src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php - About 3 hrs to fix

    Method getOffersRequest has 89 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getOffersRequest($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
        {
            $resourcePath = '/offer';
            $formParams = [];
            $queryParams = [];
    Severity: Major
    Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 3 hrs to fix

      Method fetchEvidenceContentRequest has 89 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function fetchEvidenceContentRequest($payment_dispute_id, $evidence_id, $file_id)
          {
              // Verify the required parameter 'payment_dispute_id' is set.
              if ($payment_dispute_id === null || (\is_array($payment_dispute_id) && count($payment_dispute_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $payment_dispute_id when calling fetchEvidenceContent');
      Severity: Major
      Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 3 hrs to fix

        Method getOrdersRequest has 89 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getOrdersRequest($field_groups = null, $filter = null, $limit = null, $offset = null, $order_ids = null)
            {
                $resourcePath = '/order';
                $formParams = [];
                $queryParams = [];
        Severity: Major
        Found in src/Sell/Fulfillment/V1/Api/OrderApi.php - About 3 hrs to fix

          Method getItemByLegacyIdRequest has 88 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function getItemByLegacyIdRequest($legacy_item_id, $fieldgroups = null, $legacy_variation_id = null, $legacy_variation_sku = null)
              {
                  // Verify the required parameter 'legacy_item_id' is set.
                  if ($legacy_item_id === null || (\is_array($legacy_item_id) && count($legacy_item_id) === 0)) {
                      throw new \InvalidArgumentException('Missing the required parameter $legacy_item_id when calling getItemByLegacyId');
          Severity: Major
          Found in src/Buy/Browse/V1/Api/ItemApi.php - About 3 hrs to fix

            Method getMerchandisedProductsRequest has 88 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function getMerchandisedProductsRequest($category_id, $metric_name, $aspect_filter = null, $limit = null)
                {
                    // Verify the required parameter 'category_id' is set.
                    if ($category_id === null || (\is_array($category_id) && count($category_id) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $category_id when calling getMerchandisedProducts');
            Severity: Major
            Found in src/Buy/MarketingBeta/V1/Api/MerchandisedProductApi.php - About 3 hrs to fix

              Method getAdGroupsRequest has 88 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function getAdGroupsRequest($campaign_id, $ad_group_status = null, $limit = null, $offset = null)
                  {
                      // Verify the required parameter 'campaign_id' is set.
                      if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                          throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling getAdGroups');
              Severity: Major
              Found in src/Sell/Marketing/V1/Api/AdGroupApi.php - About 3 hrs to fix

                Method suggestItemsRequest has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function suggestItemsRequest($campaign_id, $category_ids = null, $limit = null, $offset = null)
                    {
                        // Verify the required parameter 'campaign_id' is set.
                        if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                            throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling suggestItems');
                Severity: Major
                Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 3 hrs to fix

                  Method getCharityOrgsRequest has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function getCharityOrgsRequest($x_ebay_c_marketplace_id, $limit = null, $offset = null, $q = null, $registration_ids = null)
                      {
                          // Verify the required parameter 'x_ebay_c_marketplace_id' is set.
                          if ($x_ebay_c_marketplace_id === null || (\is_array($x_ebay_c_marketplace_id) && count($x_ebay_c_marketplace_id) === 0)) {
                              throw new \InvalidArgumentException('Missing the required parameter $x_ebay_c_marketplace_id when calling getCharityOrgs');
                  Severity: Major
                  Found in src/Commerce/Charity/V1/Api/CharityOrgApi.php - About 3 hrs to fix

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

                    <?php
                    
                    /**
                     * This file is part of the trollandtoad/ebay-sdk-php package.
                     *
                    Severity: Major
                    Found in src/Buy/Order/V2/ApiException.php and 30 other locations - About 3 hrs to fix
                    src/Buy/Browse/V1/ApiException.php on lines 1..154
                    src/Buy/Deal/V1/ApiException.php on lines 1..154
                    src/Buy/Feed/V1/ApiException.php on lines 1..154
                    src/Buy/FeedBeta/V1/ApiException.php on lines 1..154
                    src/Buy/MarketingBeta/V1/ApiException.php on lines 1..154
                    src/Buy/MarketplaceInsightsBeta/V1/ApiException.php on lines 1..154
                    src/Buy/OfferBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/CatalogBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Charity/V1/ApiException.php on lines 1..154
                    src/Commerce/MediaBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Notification/V1/ApiException.php on lines 1..154
                    src/Commerce/Taxonomy/V1/ApiException.php on lines 1..154
                    src/Commerce/TranslationBeta/V1/ApiException.php on lines 1..154
                    src/Developer/AnalyticsBeta/V1/ApiException.php on lines 1..154
                    src/Developer/ClientRegistration/V1/ApiException.php on lines 1..154
                    src/Developer/KeyManagement/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V2/ApiException.php on lines 1..154
                    src/Sell/Analytics/V1/ApiException.php on lines 1..154
                    src/Sell/Compliance/V1/ApiException.php on lines 1..154
                    src/Sell/Feed/V1/ApiException.php on lines 1..154
                    src/Sell/Finances/V1/ApiException.php on lines 1..154
                    src/Sell/Fulfillment/V1/ApiException.php on lines 1..154
                    src/Sell/Inventory/V1/ApiException.php on lines 1..154
                    src/Sell/ListingBeta/V1/ApiException.php on lines 1..154
                    src/Sell/Logistics/V1/ApiException.php on lines 1..154
                    src/Sell/Marketing/V1/ApiException.php on lines 1..154
                    src/Sell/Metadata/V1/ApiException.php on lines 1..154
                    src/Sell/Negotiation/V1/ApiException.php on lines 1..154
                    src/Sell/Recommendation/V1/ApiException.php on lines 1..154

                    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 152.

                    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

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

                    <?php
                    
                    /**
                     * This file is part of the trollandtoad/ebay-sdk-php package.
                     *
                    Severity: Major
                    Found in src/Developer/ClientRegistration/V1/ApiException.php and 30 other locations - About 3 hrs to fix
                    src/Buy/Browse/V1/ApiException.php on lines 1..154
                    src/Buy/Deal/V1/ApiException.php on lines 1..154
                    src/Buy/Feed/V1/ApiException.php on lines 1..154
                    src/Buy/FeedBeta/V1/ApiException.php on lines 1..154
                    src/Buy/MarketingBeta/V1/ApiException.php on lines 1..154
                    src/Buy/MarketplaceInsightsBeta/V1/ApiException.php on lines 1..154
                    src/Buy/OfferBeta/V1/ApiException.php on lines 1..154
                    src/Buy/Order/V2/ApiException.php on lines 1..154
                    src/Commerce/CatalogBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Charity/V1/ApiException.php on lines 1..154
                    src/Commerce/MediaBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Notification/V1/ApiException.php on lines 1..154
                    src/Commerce/Taxonomy/V1/ApiException.php on lines 1..154
                    src/Commerce/TranslationBeta/V1/ApiException.php on lines 1..154
                    src/Developer/AnalyticsBeta/V1/ApiException.php on lines 1..154
                    src/Developer/KeyManagement/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V2/ApiException.php on lines 1..154
                    src/Sell/Analytics/V1/ApiException.php on lines 1..154
                    src/Sell/Compliance/V1/ApiException.php on lines 1..154
                    src/Sell/Feed/V1/ApiException.php on lines 1..154
                    src/Sell/Finances/V1/ApiException.php on lines 1..154
                    src/Sell/Fulfillment/V1/ApiException.php on lines 1..154
                    src/Sell/Inventory/V1/ApiException.php on lines 1..154
                    src/Sell/ListingBeta/V1/ApiException.php on lines 1..154
                    src/Sell/Logistics/V1/ApiException.php on lines 1..154
                    src/Sell/Marketing/V1/ApiException.php on lines 1..154
                    src/Sell/Metadata/V1/ApiException.php on lines 1..154
                    src/Sell/Negotiation/V1/ApiException.php on lines 1..154
                    src/Sell/Recommendation/V1/ApiException.php on lines 1..154

                    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 152.

                    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

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

                    <?php
                    
                    /**
                     * This file is part of the trollandtoad/ebay-sdk-php package.
                     *
                    Severity: Major
                    Found in src/Buy/MarketplaceInsightsBeta/V1/ApiException.php and 30 other locations - About 3 hrs to fix
                    src/Buy/Browse/V1/ApiException.php on lines 1..154
                    src/Buy/Deal/V1/ApiException.php on lines 1..154
                    src/Buy/Feed/V1/ApiException.php on lines 1..154
                    src/Buy/FeedBeta/V1/ApiException.php on lines 1..154
                    src/Buy/MarketingBeta/V1/ApiException.php on lines 1..154
                    src/Buy/OfferBeta/V1/ApiException.php on lines 1..154
                    src/Buy/Order/V2/ApiException.php on lines 1..154
                    src/Commerce/CatalogBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Charity/V1/ApiException.php on lines 1..154
                    src/Commerce/MediaBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Notification/V1/ApiException.php on lines 1..154
                    src/Commerce/Taxonomy/V1/ApiException.php on lines 1..154
                    src/Commerce/TranslationBeta/V1/ApiException.php on lines 1..154
                    src/Developer/AnalyticsBeta/V1/ApiException.php on lines 1..154
                    src/Developer/ClientRegistration/V1/ApiException.php on lines 1..154
                    src/Developer/KeyManagement/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V2/ApiException.php on lines 1..154
                    src/Sell/Analytics/V1/ApiException.php on lines 1..154
                    src/Sell/Compliance/V1/ApiException.php on lines 1..154
                    src/Sell/Feed/V1/ApiException.php on lines 1..154
                    src/Sell/Finances/V1/ApiException.php on lines 1..154
                    src/Sell/Fulfillment/V1/ApiException.php on lines 1..154
                    src/Sell/Inventory/V1/ApiException.php on lines 1..154
                    src/Sell/ListingBeta/V1/ApiException.php on lines 1..154
                    src/Sell/Logistics/V1/ApiException.php on lines 1..154
                    src/Sell/Marketing/V1/ApiException.php on lines 1..154
                    src/Sell/Metadata/V1/ApiException.php on lines 1..154
                    src/Sell/Negotiation/V1/ApiException.php on lines 1..154
                    src/Sell/Recommendation/V1/ApiException.php on lines 1..154

                    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 152.

                    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

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

                    <?php
                    
                    /**
                     * This file is part of the trollandtoad/ebay-sdk-php package.
                     *
                    Severity: Major
                    Found in src/Developer/AnalyticsBeta/V1/ApiException.php and 30 other locations - About 3 hrs to fix
                    src/Buy/Browse/V1/ApiException.php on lines 1..154
                    src/Buy/Deal/V1/ApiException.php on lines 1..154
                    src/Buy/Feed/V1/ApiException.php on lines 1..154
                    src/Buy/FeedBeta/V1/ApiException.php on lines 1..154
                    src/Buy/MarketingBeta/V1/ApiException.php on lines 1..154
                    src/Buy/MarketplaceInsightsBeta/V1/ApiException.php on lines 1..154
                    src/Buy/OfferBeta/V1/ApiException.php on lines 1..154
                    src/Buy/Order/V2/ApiException.php on lines 1..154
                    src/Commerce/CatalogBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Charity/V1/ApiException.php on lines 1..154
                    src/Commerce/MediaBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Notification/V1/ApiException.php on lines 1..154
                    src/Commerce/Taxonomy/V1/ApiException.php on lines 1..154
                    src/Commerce/TranslationBeta/V1/ApiException.php on lines 1..154
                    src/Developer/ClientRegistration/V1/ApiException.php on lines 1..154
                    src/Developer/KeyManagement/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V2/ApiException.php on lines 1..154
                    src/Sell/Analytics/V1/ApiException.php on lines 1..154
                    src/Sell/Compliance/V1/ApiException.php on lines 1..154
                    src/Sell/Feed/V1/ApiException.php on lines 1..154
                    src/Sell/Finances/V1/ApiException.php on lines 1..154
                    src/Sell/Fulfillment/V1/ApiException.php on lines 1..154
                    src/Sell/Inventory/V1/ApiException.php on lines 1..154
                    src/Sell/ListingBeta/V1/ApiException.php on lines 1..154
                    src/Sell/Logistics/V1/ApiException.php on lines 1..154
                    src/Sell/Marketing/V1/ApiException.php on lines 1..154
                    src/Sell/Metadata/V1/ApiException.php on lines 1..154
                    src/Sell/Negotiation/V1/ApiException.php on lines 1..154
                    src/Sell/Recommendation/V1/ApiException.php on lines 1..154

                    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 152.

                    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

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

                    <?php
                    
                    /**
                     * This file is part of the trollandtoad/ebay-sdk-php package.
                     *
                    Severity: Major
                    Found in src/Sell/Logistics/V1/ApiException.php and 30 other locations - About 3 hrs to fix
                    src/Buy/Browse/V1/ApiException.php on lines 1..154
                    src/Buy/Deal/V1/ApiException.php on lines 1..154
                    src/Buy/Feed/V1/ApiException.php on lines 1..154
                    src/Buy/FeedBeta/V1/ApiException.php on lines 1..154
                    src/Buy/MarketingBeta/V1/ApiException.php on lines 1..154
                    src/Buy/MarketplaceInsightsBeta/V1/ApiException.php on lines 1..154
                    src/Buy/OfferBeta/V1/ApiException.php on lines 1..154
                    src/Buy/Order/V2/ApiException.php on lines 1..154
                    src/Commerce/CatalogBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Charity/V1/ApiException.php on lines 1..154
                    src/Commerce/MediaBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Notification/V1/ApiException.php on lines 1..154
                    src/Commerce/Taxonomy/V1/ApiException.php on lines 1..154
                    src/Commerce/TranslationBeta/V1/ApiException.php on lines 1..154
                    src/Developer/AnalyticsBeta/V1/ApiException.php on lines 1..154
                    src/Developer/ClientRegistration/V1/ApiException.php on lines 1..154
                    src/Developer/KeyManagement/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V2/ApiException.php on lines 1..154
                    src/Sell/Analytics/V1/ApiException.php on lines 1..154
                    src/Sell/Compliance/V1/ApiException.php on lines 1..154
                    src/Sell/Feed/V1/ApiException.php on lines 1..154
                    src/Sell/Finances/V1/ApiException.php on lines 1..154
                    src/Sell/Fulfillment/V1/ApiException.php on lines 1..154
                    src/Sell/Inventory/V1/ApiException.php on lines 1..154
                    src/Sell/ListingBeta/V1/ApiException.php on lines 1..154
                    src/Sell/Marketing/V1/ApiException.php on lines 1..154
                    src/Sell/Metadata/V1/ApiException.php on lines 1..154
                    src/Sell/Negotiation/V1/ApiException.php on lines 1..154
                    src/Sell/Recommendation/V1/ApiException.php on lines 1..154

                    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 152.

                    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

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

                    <?php
                    
                    /**
                     * This file is part of the trollandtoad/ebay-sdk-php package.
                     *
                    Severity: Major
                    Found in src/Sell/Marketing/V1/ApiException.php and 30 other locations - About 3 hrs to fix
                    src/Buy/Browse/V1/ApiException.php on lines 1..154
                    src/Buy/Deal/V1/ApiException.php on lines 1..154
                    src/Buy/Feed/V1/ApiException.php on lines 1..154
                    src/Buy/FeedBeta/V1/ApiException.php on lines 1..154
                    src/Buy/MarketingBeta/V1/ApiException.php on lines 1..154
                    src/Buy/MarketplaceInsightsBeta/V1/ApiException.php on lines 1..154
                    src/Buy/OfferBeta/V1/ApiException.php on lines 1..154
                    src/Buy/Order/V2/ApiException.php on lines 1..154
                    src/Commerce/CatalogBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Charity/V1/ApiException.php on lines 1..154
                    src/Commerce/MediaBeta/V1/ApiException.php on lines 1..154
                    src/Commerce/Notification/V1/ApiException.php on lines 1..154
                    src/Commerce/Taxonomy/V1/ApiException.php on lines 1..154
                    src/Commerce/TranslationBeta/V1/ApiException.php on lines 1..154
                    src/Developer/AnalyticsBeta/V1/ApiException.php on lines 1..154
                    src/Developer/ClientRegistration/V1/ApiException.php on lines 1..154
                    src/Developer/KeyManagement/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V1/ApiException.php on lines 1..154
                    src/Sell/Account/V2/ApiException.php on lines 1..154
                    src/Sell/Analytics/V1/ApiException.php on lines 1..154
                    src/Sell/Compliance/V1/ApiException.php on lines 1..154
                    src/Sell/Feed/V1/ApiException.php on lines 1..154
                    src/Sell/Finances/V1/ApiException.php on lines 1..154
                    src/Sell/Fulfillment/V1/ApiException.php on lines 1..154
                    src/Sell/Inventory/V1/ApiException.php on lines 1..154
                    src/Sell/ListingBeta/V1/ApiException.php on lines 1..154
                    src/Sell/Logistics/V1/ApiException.php on lines 1..154
                    src/Sell/Metadata/V1/ApiException.php on lines 1..154
                    src/Sell/Negotiation/V1/ApiException.php on lines 1..154
                    src/Sell/Recommendation/V1/ApiException.php on lines 1..154

                    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 152.

                    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

                    Severity
                    Category
                    Status
                    Source
                    Language