brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Commerce/Taxonomy/V1/Model/AncestorReference.php and 6 other locations - About 3 days to fix
src/Sell/Inventory/V1/Model/PickupAtLocationAvailability.php on lines 1..441
src/Sell/Marketing/V1/Model/AdUpdateStatusResponse.php on lines 1..441
src/Sell/Marketing/V1/Model/DeleteAdResponse.php on lines 1..441
src/Sell/Marketing/V1/Model/DiscountRule.php on lines 1..441
src/Sell/Marketing/V1/Model/SelectedInventoryDiscount.php on lines 1..441
src/Sell/Negotiation/V1/Model/OfferedItem.php on lines 1..441

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

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 5 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
src/Buy/Browse/V1/Model/CategoryDistribution.php on lines 1..441
src/Buy/Browse/V1/Model/ConditionDistribution.php on lines 1..441
src/Buy/MarketplaceInsightsBeta/V1/Model/ConditionDistribution.php on lines 1..441
src/Commerce/Taxonomy/V1/Model/CategorySuggestion.php on lines 1..441

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

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 5 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Commerce/Taxonomy/V1/Model/CategorySuggestion.php and 4 other locations - About 3 days to fix
src/Buy/Browse/V1/Model/CategoryDistribution.php on lines 1..441
src/Buy/Browse/V1/Model/ConditionDistribution.php on lines 1..441
src/Buy/MarketplaceInsightsBeta/V1/Model/CategoryDistribution.php on lines 1..441
src/Buy/MarketplaceInsightsBeta/V1/Model/ConditionDistribution.php on lines 1..441

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

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 5 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/Browse/V1/Model/ConditionDistribution.php and 4 other locations - About 3 days to fix
src/Buy/Browse/V1/Model/CategoryDistribution.php on lines 1..441
src/Buy/MarketplaceInsightsBeta/V1/Model/CategoryDistribution.php on lines 1..441
src/Buy/MarketplaceInsightsBeta/V1/Model/ConditionDistribution.php on lines 1..441
src/Commerce/Taxonomy/V1/Model/CategorySuggestion.php on lines 1..441

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

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 7 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Negotiation/V1/Model/OfferedItem.php and 6 other locations - About 3 days to fix
src/Commerce/Taxonomy/V1/Model/AncestorReference.php on lines 1..441
src/Sell/Inventory/V1/Model/PickupAtLocationAvailability.php on lines 1..441
src/Sell/Marketing/V1/Model/AdUpdateStatusResponse.php on lines 1..441
src/Sell/Marketing/V1/Model/DeleteAdResponse.php on lines 1..441
src/Sell/Marketing/V1/Model/DiscountRule.php on lines 1..441
src/Sell/Marketing/V1/Model/SelectedInventoryDiscount.php on lines 1..441

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

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 7 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Marketing/V1/Model/DeleteAdResponse.php and 6 other locations - About 3 days to fix
src/Commerce/Taxonomy/V1/Model/AncestorReference.php on lines 1..441
src/Sell/Inventory/V1/Model/PickupAtLocationAvailability.php on lines 1..441
src/Sell/Marketing/V1/Model/AdUpdateStatusResponse.php on lines 1..441
src/Sell/Marketing/V1/Model/DiscountRule.php on lines 1..441
src/Sell/Marketing/V1/Model/SelectedInventoryDiscount.php on lines 1..441
src/Sell/Negotiation/V1/Model/OfferedItem.php on lines 1..441

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

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 7 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Marketing/V1/Model/AdUpdateStatusResponse.php and 6 other locations - About 3 days to fix
src/Commerce/Taxonomy/V1/Model/AncestorReference.php on lines 1..441
src/Sell/Inventory/V1/Model/PickupAtLocationAvailability.php on lines 1..441
src/Sell/Marketing/V1/Model/DeleteAdResponse.php on lines 1..441
src/Sell/Marketing/V1/Model/DiscountRule.php on lines 1..441
src/Sell/Marketing/V1/Model/SelectedInventoryDiscount.php on lines 1..441
src/Sell/Negotiation/V1/Model/OfferedItem.php on lines 1..441

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

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 5 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/Browse/V1/Model/CategoryDistribution.php and 4 other locations - About 3 days to fix
src/Buy/Browse/V1/Model/ConditionDistribution.php on lines 1..441
src/Buy/MarketplaceInsightsBeta/V1/Model/CategoryDistribution.php on lines 1..441
src/Buy/MarketplaceInsightsBeta/V1/Model/ConditionDistribution.php on lines 1..441
src/Commerce/Taxonomy/V1/Model/CategorySuggestion.php on lines 1..441

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

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 7 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Marketing/V1/Model/DiscountRule.php and 6 other locations - About 3 days to fix
src/Commerce/Taxonomy/V1/Model/AncestorReference.php on lines 1..441
src/Sell/Inventory/V1/Model/PickupAtLocationAvailability.php on lines 1..441
src/Sell/Marketing/V1/Model/AdUpdateStatusResponse.php on lines 1..441
src/Sell/Marketing/V1/Model/DeleteAdResponse.php on lines 1..441
src/Sell/Marketing/V1/Model/SelectedInventoryDiscount.php on lines 1..441
src/Sell/Negotiation/V1/Model/OfferedItem.php on lines 1..441

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

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 5 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
src/Buy/Browse/V1/Model/CategoryDistribution.php on lines 1..441
src/Buy/Browse/V1/Model/ConditionDistribution.php on lines 1..441
src/Buy/MarketplaceInsightsBeta/V1/Model/CategoryDistribution.php on lines 1..441
src/Commerce/Taxonomy/V1/Model/CategorySuggestion.php on lines 1..441

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

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

File ItemSnapshot.php has 1443 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/FeedBeta/V1/Model/ItemSnapshot.php - About 3 days to fix

    Item has 190 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Item implements ModelInterface, \ArrayAccess, \JsonSerializable
    {
        public const DISCRIMINATOR = null;
    
        /**
    Severity: Major
    Found in src/Buy/FeedBeta/V1/Model/Item.php - About 3 days to fix

      File CategoryTreeApi.php has 1430 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      /**
       * This file is part of the trollandtoad/ebay-sdk-php package.
       *
      Severity: Major
      Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.php - About 3 days to fix

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

            public function updateKeywordRequest($campaign_id, $keyword_id, $update_keyword_request)
            {
                // 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 updateKeyword');
        Severity: Major
        Found in src/Sell/Marketing/V1/Api/KeywordApi.php and 3 other locations - About 3 days to fix
        src/Sell/Account/V1/Api/SalesTaxApi.php on lines 276..385
        src/Sell/Marketing/V1/Api/AdApi.php on lines 4279..4388
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1658..1767

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

        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 4 locations. Consider refactoring.
        Open

            public function createOrReplaceSalesTaxRequest($country_code, $jurisdiction_id, $sales_tax_base)
            {
                // 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 createOrReplaceSalesTax');
        Severity: Major
        Found in src/Sell/Account/V1/Api/SalesTaxApi.php and 3 other locations - About 3 days to fix
        src/Sell/Marketing/V1/Api/AdApi.php on lines 4279..4388
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1658..1767
        src/Sell/Marketing/V1/Api/KeywordApi.php on lines 1641..1750

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

        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 4 locations. Consider refactoring.
        Open

            public function updateAdGroupRequest($ad_group_id, $campaign_id, $update_ad_group_request)
            {
                // Verify the required parameter 'ad_group_id' is set.
                if ($ad_group_id === null || (\is_array($ad_group_id) && count($ad_group_id) === 0)) {
                    throw new \InvalidArgumentException('Missing the required parameter $ad_group_id when calling updateAdGroup');
        Severity: Major
        Found in src/Sell/Marketing/V1/Api/AdGroupApi.php and 3 other locations - About 3 days to fix
        src/Sell/Account/V1/Api/SalesTaxApi.php on lines 276..385
        src/Sell/Marketing/V1/Api/AdApi.php on lines 4279..4388
        src/Sell/Marketing/V1/Api/KeywordApi.php on lines 1641..1750

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

        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 4 locations. Consider refactoring.
        Open

            public function updateBidRequest($ad_id, $campaign_id, $update_bid_percentage_request)
            {
                // Verify the required parameter 'ad_id' is set.
                if ($ad_id === null || (\is_array($ad_id) && count($ad_id) === 0)) {
                    throw new \InvalidArgumentException('Missing the required parameter $ad_id when calling updateBid');
        Severity: Major
        Found in src/Sell/Marketing/V1/Api/AdApi.php and 3 other locations - About 3 days to fix
        src/Sell/Account/V1/Api/SalesTaxApi.php on lines 276..385
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1658..1767
        src/Sell/Marketing/V1/Api/KeywordApi.php on lines 1641..1750

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

        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

        File Item.php has 1398 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        /**
         * This file is part of the trollandtoad/ebay-sdk-php package.
         *
        Severity: Major
        Found in src/Buy/FeedBeta/V1/Model/Item.php - About 3 days to fix

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

              public function createInventoryLocationRequest($merchant_location_key, $inventory_location_full)
              {
                  // Verify the required parameter 'merchant_location_key' is set.
                  if ($merchant_location_key === null || (\is_array($merchant_location_key) && count($merchant_location_key) === 0)) {
                      throw new \InvalidArgumentException('Missing the required parameter $merchant_location_key when calling createInventoryLocation');
          Severity: Major
          Found in src/Sell/Account/V1/Api/LocationApi.php and 1 other location - About 3 days to fix
          src/Sell/Account/V1/Api/LocationApi.php on lines 1847..1951

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

          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 2 locations. Consider refactoring.
          Open

              public function updateInventoryLocationRequest($merchant_location_key, $inventory_location)
              {
                  // Verify the required parameter 'merchant_location_key' is set.
                  if ($merchant_location_key === null || (\is_array($merchant_location_key) && count($merchant_location_key) === 0)) {
                      throw new \InvalidArgumentException('Missing the required parameter $merchant_location_key when calling updateInventoryLocation');
          Severity: Major
          Found in src/Sell/Account/V1/Api/LocationApi.php and 1 other location - About 3 days to fix
          src/Sell/Account/V1/Api/LocationApi.php on lines 286..390

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

          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