brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Similar blocks of code found in 8 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/BuyingOptionDistribution.php and 7 other locations - About 3 days to fix
src/Buy/Browse/V1/Model/AspectValueDistribution.php on lines 1..411
src/Buy/Browse/V1/Model/Items.php on lines 1..411
src/Buy/MarketplaceInsightsBeta/V1/Model/AspectValueDistribution.php on lines 1..411
src/Buy/MarketplaceInsightsBeta/V1/Model/BuyingOptionDistribution.php on lines 1..411
src/Buy/MarketplaceInsightsBeta/V1/Model/Seller.php on lines 1..411
src/Commerce/CatalogBeta/V1/Model/AspectValueDistribution.php on lines 1..411
src/Sell/Fulfillment/V1/Model/ShippingFulfillmentPagedCollection.php on lines 1..411

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Inventory/V1/Model/ListingDetails.php and 7 other locations - About 3 days to fix
src/Buy/Browse/V1/Model/ReviewRating.php on lines 1..411
src/Sell/Compliance/V1/Model/ComplianceSummaryInfo.php on lines 1..411
src/Sell/Inventory/V1/Model/AvailabilityDistribution.php on lines 1..411
src/Sell/Inventory/V1/Model/ShipToLocationAvailabilityWithAll.php on lines 1..411
src/Sell/Marketing/V1/Model/CouponConfiguration.php on lines 1..411
src/Sell/Marketing/V1/Model/UpdateKeywordResponse.php on lines 1..411
src/Sell/Marketing/V1/Model/UpdateNegativeKeywordResponse.php on lines 1..411

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

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 8 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/UpdateKeywordResponse.php and 7 other locations - About 3 days to fix
src/Buy/Browse/V1/Model/ReviewRating.php on lines 1..411
src/Sell/Compliance/V1/Model/ComplianceSummaryInfo.php on lines 1..411
src/Sell/Inventory/V1/Model/AvailabilityDistribution.php on lines 1..411
src/Sell/Inventory/V1/Model/ListingDetails.php on lines 1..411
src/Sell/Inventory/V1/Model/ShipToLocationAvailabilityWithAll.php on lines 1..411
src/Sell/Marketing/V1/Model/CouponConfiguration.php on lines 1..411
src/Sell/Marketing/V1/Model/UpdateNegativeKeywordResponse.php on lines 1..411

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

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 8 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/UpdateNegativeKeywordResponse.php and 7 other locations - About 3 days to fix
src/Buy/Browse/V1/Model/ReviewRating.php on lines 1..411
src/Sell/Compliance/V1/Model/ComplianceSummaryInfo.php on lines 1..411
src/Sell/Inventory/V1/Model/AvailabilityDistribution.php on lines 1..411
src/Sell/Inventory/V1/Model/ListingDetails.php on lines 1..411
src/Sell/Inventory/V1/Model/ShipToLocationAvailabilityWithAll.php on lines 1..411
src/Sell/Marketing/V1/Model/CouponConfiguration.php on lines 1..411
src/Sell/Marketing/V1/Model/UpdateKeywordResponse.php on lines 1..411

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Compliance/V1/Model/ComplianceSummaryInfo.php and 7 other locations - About 3 days to fix
src/Buy/Browse/V1/Model/ReviewRating.php on lines 1..411
src/Sell/Inventory/V1/Model/AvailabilityDistribution.php on lines 1..411
src/Sell/Inventory/V1/Model/ListingDetails.php on lines 1..411
src/Sell/Inventory/V1/Model/ShipToLocationAvailabilityWithAll.php on lines 1..411
src/Sell/Marketing/V1/Model/CouponConfiguration.php on lines 1..411
src/Sell/Marketing/V1/Model/UpdateKeywordResponse.php on lines 1..411
src/Sell/Marketing/V1/Model/UpdateNegativeKeywordResponse.php on lines 1..411

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Inventory/V1/Model/OfferPriceQuantity.php and 1 other location - About 3 days to fix
src/Buy/MarketingBeta/V1/Model/RatingAspectDistribution.php on lines 1..411

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/MarketingBeta/V1/Model/Image.php and 3 other locations - About 3 days to fix
src/Buy/Browse/V1/Model/Image.php on lines 1..411
src/Buy/MarketplaceInsightsBeta/V1/Model/Image.php on lines 1..411
src/Commerce/CatalogBeta/V1/Model/Image.php on lines 1..411

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/MarketplaceInsightsBeta/V1/Model/Image.php and 3 other locations - About 3 days to fix
src/Buy/Browse/V1/Model/Image.php on lines 1..411
src/Buy/MarketingBeta/V1/Model/Image.php on lines 1..411
src/Commerce/CatalogBeta/V1/Model/Image.php on lines 1..411

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Commerce/CatalogBeta/V1/Model/Image.php and 3 other locations - About 3 days to fix
src/Buy/Browse/V1/Model/Image.php on lines 1..411
src/Buy/MarketingBeta/V1/Model/Image.php on lines 1..411
src/Buy/MarketplaceInsightsBeta/V1/Model/Image.php on lines 1..411

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

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 4 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/Image.php and 3 other locations - About 3 days to fix
src/Buy/MarketingBeta/V1/Model/Image.php on lines 1..411
src/Buy/MarketplaceInsightsBeta/V1/Model/Image.php on lines 1..411
src/Commerce/CatalogBeta/V1/Model/Image.php on lines 1..411

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

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 GuestCheckoutSessionApi.php has 1268 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/Order/V2/Api/GuestCheckoutSessionApi.php - About 3 days to fix

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

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

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

          public function placeProxyBidRequest($item_id, $x_ebay_c_marketplace_id, $place_proxy_bid_request = null)
          {
              // Verify the required parameter 'item_id' is set.
              if ($item_id === null || (\is_array($item_id) && count($item_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $item_id when calling placeProxyBid');
      Severity: Major
      Found in src/Buy/OfferBeta/V1/Api/BiddingApi.php and 5 other locations - About 3 days to fix
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 323..421
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1116..1214
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1387..1485
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1658..1756
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1929..2027

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

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

          public function applyGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling applyGuestCoupon');
      Severity: Major
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 3 days to fix
      src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 583..681
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1116..1214
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1387..1485
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1658..1756
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1929..2027

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

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

          public function removeGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling removeGuestCoupon');
      Severity: Major
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 3 days to fix
      src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 583..681
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 323..421
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1387..1485
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1658..1756
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1929..2027

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

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

          public function updateGuestShippingAddressRequest($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl = null)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestShippingAddress');
      Severity: Major
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 3 days to fix
      src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 583..681
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 323..421
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1116..1214
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1387..1485
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1929..2027

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

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

          public function updateGuestQuantityRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity = null)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestQuantity');
      Severity: Major
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 3 days to fix
      src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 583..681
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 323..421
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1116..1214
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1658..1756
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1929..2027

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

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

          public function updateGuestShippingOptionRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option = null)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestShippingOption');
      Severity: Major
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 3 days to fix
      src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 583..681
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 323..421
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1116..1214
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1387..1485
      src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1658..1756

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

      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 searchByImageWithHttpInfo($aspect_filter = null, $category_ids = null, $charity_ids = null, $fieldgroups = null, $filter = null, $limit = null, $offset = null, $sort = null, $search_by_image_request = null)
          {
              $request = $this->searchByImageRequest($aspect_filter, $category_ids, $charity_ids, $fieldgroups, $filter, $limit, $offset, $sort, $search_by_image_request);
      
              try {
      Severity: Major
      Found in src/Buy/Browse/V1/Api/SearchByImageApi.php and 1 other location - About 3 days to fix
      src/Commerce/CatalogBeta/V1/Api/ProductSummaryApi.php on lines 195..260

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

      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 searchWithHttpInfo($x_ebay_c_marketplace_id = null, $aspect_filter = null, $category_ids = null, $fieldgroups = null, $gtin = null, $limit = null, $mpn = null, $offset = null, $q = null)
          {
              $request = $this->searchRequest($x_ebay_c_marketplace_id, $aspect_filter, $category_ids, $fieldgroups, $gtin, $limit, $mpn, $offset, $q);
      
              try {
      Severity: Major
      Found in src/Commerce/CatalogBeta/V1/Api/ProductSummaryApi.php and 1 other location - About 3 days to fix
      src/Buy/Browse/V1/Api/SearchByImageApi.php on lines 195..260

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

      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