brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

File NegativeKeywordApi.php has 1042 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/Sell/Marketing/V1/Api/NegativeKeywordApi.php - About 2 days to fix

    File ReturnPolicyApi.php has 1029 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/Sell/Account/V1/Api/ReturnPolicyApi.php - About 2 days to fix

      File FulfillmentPolicyApi.php has 1029 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/Sell/Account/V1/Api/FulfillmentPolicyApi.php - About 2 days to fix

        File PaymentPolicyApi.php has 1029 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/Sell/Account/V1/Api/PaymentPolicyApi.php - About 2 days to fix

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

              public function getInventoryItemsRequest($limit = null, $offset = null)
              {
                  $resourcePath = '/inventory_item';
                  $formParams = [];
                  $queryParams = [];
          Severity: Major
          Found in src/Sell/Inventory/V1/Api/InventoryItemApi.php and 1 other location - About 2 days to fix
          src/Sell/Inventory/V1/Api/LocationApi.php on lines 1469..1555

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

          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 getInventoryLocationsRequest($limit = null, $offset = null)
              {
                  $resourcePath = '/location';
                  $formParams = [];
                  $queryParams = [];
          Severity: Major
          Found in src/Sell/Inventory/V1/Api/LocationApi.php and 1 other location - About 2 days to fix
          src/Sell/Inventory/V1/Api/InventoryItemApi.php on lines 1787..1873

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

          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 __construct(array $data = null)
              {
                  $this->container['available_quantity'] = $data['available_quantity'] ?? null;
                  $this->container['category_id'] = $data['category_id'] ?? null;
                  $this->container['charity'] = $data['charity'] ?? null;
          Severity: Major
          Found in src/Sell/Inventory/V1/Model/EbayOfferDetailsWithKeys.php and 1 other location - About 2 days to fix
          src/Sell/Fulfillment/V1/Model/Order.php on lines 310..332

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

          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 __construct(array $data = null)
              {
                  $this->container['buyer'] = $data['buyer'] ?? null;
                  $this->container['buyer_checkout_notes'] = $data['buyer_checkout_notes'] ?? null;
                  $this->container['cancel_status'] = $data['cancel_status'] ?? null;
          Severity: Major
          Found in src/Sell/Fulfillment/V1/Model/Order.php and 1 other location - About 2 days to fix
          src/Sell/Inventory/V1/Model/EbayOfferDetailsWithKeys.php on lines 310..332

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

          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 suppressViolationRequest($suppress_violation_request)
              {
                  // Verify the required parameter 'suppress_violation_request' is set.
                  if ($suppress_violation_request === null || (\is_array($suppress_violation_request) && count($suppress_violation_request) === 0)) {
                      throw new \InvalidArgumentException('Missing the required parameter $suppress_violation_request when calling suppressViolation');
          Severity: Major
          Found in src/Sell/Compliance/V1/Api/ListingViolationApi.php and 1 other location - About 2 days to fix
          src/Sell/Inventory/V1/Api/OfferApi.php on lines 2995..3075

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

          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 withdrawOfferByInventoryItemGroupRequest($withdraw_by_inventory_item_group_request)
              {
                  // Verify the required parameter 'withdraw_by_inventory_item_group_request' is set.
                  if ($withdraw_by_inventory_item_group_request === null || (\is_array($withdraw_by_inventory_item_group_request) && count($withdraw_by_inventory_item_group_request) === 0)) {
                      throw new \InvalidArgumentException('Missing the required parameter $withdraw_by_inventory_item_group_request when calling withdrawOfferByInventoryItemGroup');
          Severity: Major
          Found in src/Sell/Inventory/V1/Api/OfferApi.php and 1 other location - About 2 days to fix
          src/Sell/Compliance/V1/Api/ListingViolationApi.php on lines 574..654

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

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

              public function getPayoutSummaryRequest($x_ebay_c_marketplace_id = null, $filter = null)
              {
                  $resourcePath = '/payout_summary';
                  $formParams = [];
                  $queryParams = [];
          Severity: Major
          Found in src/Sell/Finances/V1/Api/PayoutApi.php and 2 other locations - About 2 days to fix
          src/Sell/Compliance/V1/Api/ListingViolationSummaryApi.php on lines 318..401
          src/Sell/Finances/V1/Api/TransactionApi.php on lines 318..401

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

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

              public function getTransactionSummaryRequest($x_ebay_c_marketplace_id = null, $filter = null)
              {
                  $resourcePath = '/transaction_summary';
                  $formParams = [];
                  $queryParams = [];
          Severity: Major
          Found in src/Sell/Finances/V1/Api/TransactionApi.php and 2 other locations - About 2 days to fix
          src/Sell/Compliance/V1/Api/ListingViolationSummaryApi.php on lines 318..401
          src/Sell/Finances/V1/Api/PayoutApi.php on lines 574..657

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

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

              public function getListingViolationsSummaryRequest($x_ebay_c_marketplace_id = null, $compliance_type = null)
              {
                  $resourcePath = '/listing_violation_summary';
                  $formParams = [];
                  $queryParams = [];
          Severity: Major
          Found in src/Sell/Compliance/V1/Api/ListingViolationSummaryApi.php and 2 other locations - About 2 days to fix
          src/Sell/Finances/V1/Api/PayoutApi.php on lines 574..657
          src/Sell/Finances/V1/Api/TransactionApi.php on lines 318..401

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

          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 120 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/AutoCorrections.php and 119 other locations - About 2 days to fix
          src/Buy/Browse/V1/Model/AdditionalProductIdentity.php on lines 1..351
          src/Buy/Browse/V1/Model/CompatibilityPayload.php on lines 1..351
          src/Buy/Browse/V1/Model/CouponConstraint.php on lines 1..351
          src/Buy/Browse/V1/Model/PickupOptionSummary.php on lines 1..351
          src/Buy/Browse/V1/Model/RemoveCartItemInput.php on lines 1..351
          src/Buy/Browse/V1/Model/SearchByImageRequest.php on lines 1..351
          src/Buy/Feed/V1/Model/ApplicationAccess.php on lines 1..351
          src/Buy/Feed/V1/Model/Constraint.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemGroupResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemPriorityResponse.php on lines 1..349
          src/Buy/FeedBeta/V1/Model/ItemResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemSnapshotResponse.php on lines 1..351
          src/Buy/MarketplaceInsightsBeta/V1/Model/Category.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/PlaceProxyBidResponse.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/UserConsent.php on lines 1..351
          src/Buy/Order/V2/Model/Coupon.php on lines 1..351
          src/Buy/Order/V2/Model/CouponRequest.php on lines 1..351
          src/Buy/Order/V2/Model/Image.php on lines 1..351
          src/Buy/Order/V2/Model/Seller.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Image.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Moderation.php on lines 1..351
          src/Commerce/Notification/V1/Model/Config.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/AspectMetadata.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/CompatibilityPropertyValue.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityMetadataResponse.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityPropertyValuesResponse.php on lines 1..351
          src/Developer/AnalyticsBeta/V1/Model/RateLimitsResponse.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/CreateSigningKeyRequest.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/QuerySigningKeysResponse.php on lines 1..351
          src/Sell/Account/V1/Model/KycResponse.php on lines 1..351
          src/Sell/Account/V1/Model/Program.php on lines 1..351
          src/Sell/Account/V1/Model/Programs.php on lines 1..351
          src/Sell/Account/V1/Model/RateTableResponse.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxes.php on lines 1..351
          src/Sell/Account/V1/Model/SellerEligibilityMultiProgramResponse.php on lines 1..351
          src/Sell/Account/V2/Model/RateTableUpdate.php on lines 1..351
          src/Sell/Analytics/V1/Model/BenchmarkMetadata.php on lines 1..351
          src/Sell/Analytics/V1/Model/FindSellerStandardsProfilesResponse.php on lines 1..351
          src/Sell/Compliance/V1/Model/ComplianceSummary.php on lines 1..351
          src/Sell/Compliance/V1/Model/ProductRecommendation.php on lines 1..351
          src/Sell/Feed/V1/Model/InventoryFilterCriteria.php on lines 1..351
          src/Sell/Finances/V1/Model/Buyer.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/AddEvidencePaymentDisputeResponse.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayCollectedCharges.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayFulfillmentProgram.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayInternationalShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayVaultProgram.php on lines 1..349
          src/Sell/Fulfillment/V1/Model/FileEvidence.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PaymentDisputeActivityHistory.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PickupStep.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/SellerActionsToRelease.php on lines 1..351
          src/Sell/Inventory/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkEbayOfferDetailsWithKeys.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListingResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOffer.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOfferResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantity.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantityResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPublishResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/FeesSummaryResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/GetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/MigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeyWithId.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeysWithId.php on lines 1..351
          src/Sell/Logistics/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdIds.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdReferences.php on lines 1..351
          src/Sell/Marketing/V1/Model/Ads.php on lines 1..351
          src/Sell/Marketing/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusByListingIdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusByListingIdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudget.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/Campaigns.php on lines 1..351
          src/Sell/Marketing/V1/Model/DeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/InventoryItem.php on lines 1..351
          src/Sell/Marketing/V1/Model/ReportMetadatas.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedKeywordsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateBidPercentageRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateCampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Negotiation/V1/Model/EligibleItem.php on lines 1..351
          src/Sell/Negotiation/V1/Model/SendOfferToInterestedBuyersCollectionResponse.php on lines 1..351
          src/Sell/Negotiation/V1/Model/User.php on lines 1..351
          src/Sell/Recommendation/V1/Model/FindListingRecommendationRequest.php on lines 1..351

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

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

          <?php
          
          /**
           * This file is part of the trollandtoad/ebay-sdk-php package.
           *
          Severity: Major
          Found in src/Buy/Order/V2/Model/Seller.php and 119 other locations - About 2 days to fix
          src/Buy/Browse/V1/Model/AdditionalProductIdentity.php on lines 1..351
          src/Buy/Browse/V1/Model/AutoCorrections.php on lines 1..349
          src/Buy/Browse/V1/Model/CompatibilityPayload.php on lines 1..351
          src/Buy/Browse/V1/Model/CouponConstraint.php on lines 1..351
          src/Buy/Browse/V1/Model/PickupOptionSummary.php on lines 1..351
          src/Buy/Browse/V1/Model/RemoveCartItemInput.php on lines 1..351
          src/Buy/Browse/V1/Model/SearchByImageRequest.php on lines 1..351
          src/Buy/Feed/V1/Model/ApplicationAccess.php on lines 1..351
          src/Buy/Feed/V1/Model/Constraint.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemGroupResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemPriorityResponse.php on lines 1..349
          src/Buy/FeedBeta/V1/Model/ItemResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemSnapshotResponse.php on lines 1..351
          src/Buy/MarketplaceInsightsBeta/V1/Model/Category.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/PlaceProxyBidResponse.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/UserConsent.php on lines 1..351
          src/Buy/Order/V2/Model/Coupon.php on lines 1..351
          src/Buy/Order/V2/Model/CouponRequest.php on lines 1..351
          src/Buy/Order/V2/Model/Image.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Image.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Moderation.php on lines 1..351
          src/Commerce/Notification/V1/Model/Config.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/AspectMetadata.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/CompatibilityPropertyValue.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityMetadataResponse.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityPropertyValuesResponse.php on lines 1..351
          src/Developer/AnalyticsBeta/V1/Model/RateLimitsResponse.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/CreateSigningKeyRequest.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/QuerySigningKeysResponse.php on lines 1..351
          src/Sell/Account/V1/Model/KycResponse.php on lines 1..351
          src/Sell/Account/V1/Model/Program.php on lines 1..351
          src/Sell/Account/V1/Model/Programs.php on lines 1..351
          src/Sell/Account/V1/Model/RateTableResponse.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxes.php on lines 1..351
          src/Sell/Account/V1/Model/SellerEligibilityMultiProgramResponse.php on lines 1..351
          src/Sell/Account/V2/Model/RateTableUpdate.php on lines 1..351
          src/Sell/Analytics/V1/Model/BenchmarkMetadata.php on lines 1..351
          src/Sell/Analytics/V1/Model/FindSellerStandardsProfilesResponse.php on lines 1..351
          src/Sell/Compliance/V1/Model/ComplianceSummary.php on lines 1..351
          src/Sell/Compliance/V1/Model/ProductRecommendation.php on lines 1..351
          src/Sell/Feed/V1/Model/InventoryFilterCriteria.php on lines 1..351
          src/Sell/Finances/V1/Model/Buyer.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/AddEvidencePaymentDisputeResponse.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayCollectedCharges.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayFulfillmentProgram.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayInternationalShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayVaultProgram.php on lines 1..349
          src/Sell/Fulfillment/V1/Model/FileEvidence.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PaymentDisputeActivityHistory.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PickupStep.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/SellerActionsToRelease.php on lines 1..351
          src/Sell/Inventory/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkEbayOfferDetailsWithKeys.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListingResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOffer.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOfferResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantity.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantityResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPublishResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/FeesSummaryResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/GetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/MigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeyWithId.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeysWithId.php on lines 1..351
          src/Sell/Logistics/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdIds.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdReferences.php on lines 1..351
          src/Sell/Marketing/V1/Model/Ads.php on lines 1..351
          src/Sell/Marketing/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusByListingIdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusByListingIdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudget.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/Campaigns.php on lines 1..351
          src/Sell/Marketing/V1/Model/DeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/InventoryItem.php on lines 1..351
          src/Sell/Marketing/V1/Model/ReportMetadatas.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedKeywordsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateBidPercentageRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateCampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Negotiation/V1/Model/EligibleItem.php on lines 1..351
          src/Sell/Negotiation/V1/Model/SendOfferToInterestedBuyersCollectionResponse.php on lines 1..351
          src/Sell/Negotiation/V1/Model/User.php on lines 1..351
          src/Sell/Recommendation/V1/Model/FindListingRecommendationRequest.php on lines 1..351

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

          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 120 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/CompatibilityPayload.php and 119 other locations - About 2 days to fix
          src/Buy/Browse/V1/Model/AdditionalProductIdentity.php on lines 1..351
          src/Buy/Browse/V1/Model/AutoCorrections.php on lines 1..349
          src/Buy/Browse/V1/Model/CouponConstraint.php on lines 1..351
          src/Buy/Browse/V1/Model/PickupOptionSummary.php on lines 1..351
          src/Buy/Browse/V1/Model/RemoveCartItemInput.php on lines 1..351
          src/Buy/Browse/V1/Model/SearchByImageRequest.php on lines 1..351
          src/Buy/Feed/V1/Model/ApplicationAccess.php on lines 1..351
          src/Buy/Feed/V1/Model/Constraint.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemGroupResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemPriorityResponse.php on lines 1..349
          src/Buy/FeedBeta/V1/Model/ItemResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemSnapshotResponse.php on lines 1..351
          src/Buy/MarketplaceInsightsBeta/V1/Model/Category.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/PlaceProxyBidResponse.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/UserConsent.php on lines 1..351
          src/Buy/Order/V2/Model/Coupon.php on lines 1..351
          src/Buy/Order/V2/Model/CouponRequest.php on lines 1..351
          src/Buy/Order/V2/Model/Image.php on lines 1..351
          src/Buy/Order/V2/Model/Seller.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Image.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Moderation.php on lines 1..351
          src/Commerce/Notification/V1/Model/Config.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/AspectMetadata.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/CompatibilityPropertyValue.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityMetadataResponse.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityPropertyValuesResponse.php on lines 1..351
          src/Developer/AnalyticsBeta/V1/Model/RateLimitsResponse.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/CreateSigningKeyRequest.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/QuerySigningKeysResponse.php on lines 1..351
          src/Sell/Account/V1/Model/KycResponse.php on lines 1..351
          src/Sell/Account/V1/Model/Program.php on lines 1..351
          src/Sell/Account/V1/Model/Programs.php on lines 1..351
          src/Sell/Account/V1/Model/RateTableResponse.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxes.php on lines 1..351
          src/Sell/Account/V1/Model/SellerEligibilityMultiProgramResponse.php on lines 1..351
          src/Sell/Account/V2/Model/RateTableUpdate.php on lines 1..351
          src/Sell/Analytics/V1/Model/BenchmarkMetadata.php on lines 1..351
          src/Sell/Analytics/V1/Model/FindSellerStandardsProfilesResponse.php on lines 1..351
          src/Sell/Compliance/V1/Model/ComplianceSummary.php on lines 1..351
          src/Sell/Compliance/V1/Model/ProductRecommendation.php on lines 1..351
          src/Sell/Feed/V1/Model/InventoryFilterCriteria.php on lines 1..351
          src/Sell/Finances/V1/Model/Buyer.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/AddEvidencePaymentDisputeResponse.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayCollectedCharges.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayFulfillmentProgram.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayInternationalShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayVaultProgram.php on lines 1..349
          src/Sell/Fulfillment/V1/Model/FileEvidence.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PaymentDisputeActivityHistory.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PickupStep.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/SellerActionsToRelease.php on lines 1..351
          src/Sell/Inventory/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkEbayOfferDetailsWithKeys.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListingResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOffer.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOfferResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantity.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantityResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPublishResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/FeesSummaryResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/GetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/MigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeyWithId.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeysWithId.php on lines 1..351
          src/Sell/Logistics/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdIds.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdReferences.php on lines 1..351
          src/Sell/Marketing/V1/Model/Ads.php on lines 1..351
          src/Sell/Marketing/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusByListingIdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusByListingIdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudget.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/Campaigns.php on lines 1..351
          src/Sell/Marketing/V1/Model/DeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/InventoryItem.php on lines 1..351
          src/Sell/Marketing/V1/Model/ReportMetadatas.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedKeywordsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateBidPercentageRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateCampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Negotiation/V1/Model/EligibleItem.php on lines 1..351
          src/Sell/Negotiation/V1/Model/SendOfferToInterestedBuyersCollectionResponse.php on lines 1..351
          src/Sell/Negotiation/V1/Model/User.php on lines 1..351
          src/Sell/Recommendation/V1/Model/FindListingRecommendationRequest.php on lines 1..351

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

          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 120 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/CouponConstraint.php and 119 other locations - About 2 days to fix
          src/Buy/Browse/V1/Model/AdditionalProductIdentity.php on lines 1..351
          src/Buy/Browse/V1/Model/AutoCorrections.php on lines 1..349
          src/Buy/Browse/V1/Model/CompatibilityPayload.php on lines 1..351
          src/Buy/Browse/V1/Model/PickupOptionSummary.php on lines 1..351
          src/Buy/Browse/V1/Model/RemoveCartItemInput.php on lines 1..351
          src/Buy/Browse/V1/Model/SearchByImageRequest.php on lines 1..351
          src/Buy/Feed/V1/Model/ApplicationAccess.php on lines 1..351
          src/Buy/Feed/V1/Model/Constraint.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemGroupResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemPriorityResponse.php on lines 1..349
          src/Buy/FeedBeta/V1/Model/ItemResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemSnapshotResponse.php on lines 1..351
          src/Buy/MarketplaceInsightsBeta/V1/Model/Category.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/PlaceProxyBidResponse.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/UserConsent.php on lines 1..351
          src/Buy/Order/V2/Model/Coupon.php on lines 1..351
          src/Buy/Order/V2/Model/CouponRequest.php on lines 1..351
          src/Buy/Order/V2/Model/Image.php on lines 1..351
          src/Buy/Order/V2/Model/Seller.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Image.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Moderation.php on lines 1..351
          src/Commerce/Notification/V1/Model/Config.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/AspectMetadata.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/CompatibilityPropertyValue.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityMetadataResponse.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityPropertyValuesResponse.php on lines 1..351
          src/Developer/AnalyticsBeta/V1/Model/RateLimitsResponse.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/CreateSigningKeyRequest.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/QuerySigningKeysResponse.php on lines 1..351
          src/Sell/Account/V1/Model/KycResponse.php on lines 1..351
          src/Sell/Account/V1/Model/Program.php on lines 1..351
          src/Sell/Account/V1/Model/Programs.php on lines 1..351
          src/Sell/Account/V1/Model/RateTableResponse.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxes.php on lines 1..351
          src/Sell/Account/V1/Model/SellerEligibilityMultiProgramResponse.php on lines 1..351
          src/Sell/Account/V2/Model/RateTableUpdate.php on lines 1..351
          src/Sell/Analytics/V1/Model/BenchmarkMetadata.php on lines 1..351
          src/Sell/Analytics/V1/Model/FindSellerStandardsProfilesResponse.php on lines 1..351
          src/Sell/Compliance/V1/Model/ComplianceSummary.php on lines 1..351
          src/Sell/Compliance/V1/Model/ProductRecommendation.php on lines 1..351
          src/Sell/Feed/V1/Model/InventoryFilterCriteria.php on lines 1..351
          src/Sell/Finances/V1/Model/Buyer.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/AddEvidencePaymentDisputeResponse.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayCollectedCharges.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayFulfillmentProgram.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayInternationalShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayVaultProgram.php on lines 1..349
          src/Sell/Fulfillment/V1/Model/FileEvidence.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PaymentDisputeActivityHistory.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PickupStep.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/SellerActionsToRelease.php on lines 1..351
          src/Sell/Inventory/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkEbayOfferDetailsWithKeys.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListingResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOffer.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOfferResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantity.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantityResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPublishResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/FeesSummaryResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/GetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/MigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeyWithId.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeysWithId.php on lines 1..351
          src/Sell/Logistics/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdIds.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdReferences.php on lines 1..351
          src/Sell/Marketing/V1/Model/Ads.php on lines 1..351
          src/Sell/Marketing/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusByListingIdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusByListingIdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudget.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/Campaigns.php on lines 1..351
          src/Sell/Marketing/V1/Model/DeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/InventoryItem.php on lines 1..351
          src/Sell/Marketing/V1/Model/ReportMetadatas.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedKeywordsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateBidPercentageRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateCampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Negotiation/V1/Model/EligibleItem.php on lines 1..351
          src/Sell/Negotiation/V1/Model/SendOfferToInterestedBuyersCollectionResponse.php on lines 1..351
          src/Sell/Negotiation/V1/Model/User.php on lines 1..351
          src/Sell/Recommendation/V1/Model/FindListingRecommendationRequest.php on lines 1..351

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

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

          <?php
          
          /**
           * This file is part of the trollandtoad/ebay-sdk-php package.
           *
          Severity: Major
          Found in src/Buy/OfferBeta/V1/Model/UserConsent.php and 119 other locations - About 2 days to fix
          src/Buy/Browse/V1/Model/AdditionalProductIdentity.php on lines 1..351
          src/Buy/Browse/V1/Model/AutoCorrections.php on lines 1..349
          src/Buy/Browse/V1/Model/CompatibilityPayload.php on lines 1..351
          src/Buy/Browse/V1/Model/CouponConstraint.php on lines 1..351
          src/Buy/Browse/V1/Model/PickupOptionSummary.php on lines 1..351
          src/Buy/Browse/V1/Model/RemoveCartItemInput.php on lines 1..351
          src/Buy/Browse/V1/Model/SearchByImageRequest.php on lines 1..351
          src/Buy/Feed/V1/Model/ApplicationAccess.php on lines 1..351
          src/Buy/Feed/V1/Model/Constraint.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemGroupResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemPriorityResponse.php on lines 1..349
          src/Buy/FeedBeta/V1/Model/ItemResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemSnapshotResponse.php on lines 1..351
          src/Buy/MarketplaceInsightsBeta/V1/Model/Category.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/PlaceProxyBidResponse.php on lines 1..351
          src/Buy/Order/V2/Model/Coupon.php on lines 1..351
          src/Buy/Order/V2/Model/CouponRequest.php on lines 1..351
          src/Buy/Order/V2/Model/Image.php on lines 1..351
          src/Buy/Order/V2/Model/Seller.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Image.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Moderation.php on lines 1..351
          src/Commerce/Notification/V1/Model/Config.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/AspectMetadata.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/CompatibilityPropertyValue.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityMetadataResponse.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityPropertyValuesResponse.php on lines 1..351
          src/Developer/AnalyticsBeta/V1/Model/RateLimitsResponse.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/CreateSigningKeyRequest.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/QuerySigningKeysResponse.php on lines 1..351
          src/Sell/Account/V1/Model/KycResponse.php on lines 1..351
          src/Sell/Account/V1/Model/Program.php on lines 1..351
          src/Sell/Account/V1/Model/Programs.php on lines 1..351
          src/Sell/Account/V1/Model/RateTableResponse.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxes.php on lines 1..351
          src/Sell/Account/V1/Model/SellerEligibilityMultiProgramResponse.php on lines 1..351
          src/Sell/Account/V2/Model/RateTableUpdate.php on lines 1..351
          src/Sell/Analytics/V1/Model/BenchmarkMetadata.php on lines 1..351
          src/Sell/Analytics/V1/Model/FindSellerStandardsProfilesResponse.php on lines 1..351
          src/Sell/Compliance/V1/Model/ComplianceSummary.php on lines 1..351
          src/Sell/Compliance/V1/Model/ProductRecommendation.php on lines 1..351
          src/Sell/Feed/V1/Model/InventoryFilterCriteria.php on lines 1..351
          src/Sell/Finances/V1/Model/Buyer.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/AddEvidencePaymentDisputeResponse.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayCollectedCharges.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayFulfillmentProgram.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayInternationalShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayVaultProgram.php on lines 1..349
          src/Sell/Fulfillment/V1/Model/FileEvidence.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PaymentDisputeActivityHistory.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PickupStep.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/SellerActionsToRelease.php on lines 1..351
          src/Sell/Inventory/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkEbayOfferDetailsWithKeys.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListingResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOffer.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOfferResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantity.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantityResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPublishResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/FeesSummaryResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/GetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/MigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeyWithId.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeysWithId.php on lines 1..351
          src/Sell/Logistics/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdIds.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdReferences.php on lines 1..351
          src/Sell/Marketing/V1/Model/Ads.php on lines 1..351
          src/Sell/Marketing/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusByListingIdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusByListingIdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudget.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/Campaigns.php on lines 1..351
          src/Sell/Marketing/V1/Model/DeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/InventoryItem.php on lines 1..351
          src/Sell/Marketing/V1/Model/ReportMetadatas.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedKeywordsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateBidPercentageRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateCampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Negotiation/V1/Model/EligibleItem.php on lines 1..351
          src/Sell/Negotiation/V1/Model/SendOfferToInterestedBuyersCollectionResponse.php on lines 1..351
          src/Sell/Negotiation/V1/Model/User.php on lines 1..351
          src/Sell/Recommendation/V1/Model/FindListingRecommendationRequest.php on lines 1..351

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

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

          <?php
          
          /**
           * This file is part of the trollandtoad/ebay-sdk-php package.
           *
          Severity: Major
          Found in src/Buy/Order/V2/Model/CouponRequest.php and 119 other locations - About 2 days to fix
          src/Buy/Browse/V1/Model/AdditionalProductIdentity.php on lines 1..351
          src/Buy/Browse/V1/Model/AutoCorrections.php on lines 1..349
          src/Buy/Browse/V1/Model/CompatibilityPayload.php on lines 1..351
          src/Buy/Browse/V1/Model/CouponConstraint.php on lines 1..351
          src/Buy/Browse/V1/Model/PickupOptionSummary.php on lines 1..351
          src/Buy/Browse/V1/Model/RemoveCartItemInput.php on lines 1..351
          src/Buy/Browse/V1/Model/SearchByImageRequest.php on lines 1..351
          src/Buy/Feed/V1/Model/ApplicationAccess.php on lines 1..351
          src/Buy/Feed/V1/Model/Constraint.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemGroupResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemPriorityResponse.php on lines 1..349
          src/Buy/FeedBeta/V1/Model/ItemResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemSnapshotResponse.php on lines 1..351
          src/Buy/MarketplaceInsightsBeta/V1/Model/Category.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/PlaceProxyBidResponse.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/UserConsent.php on lines 1..351
          src/Buy/Order/V2/Model/Coupon.php on lines 1..351
          src/Buy/Order/V2/Model/Image.php on lines 1..351
          src/Buy/Order/V2/Model/Seller.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Image.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Moderation.php on lines 1..351
          src/Commerce/Notification/V1/Model/Config.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/AspectMetadata.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/CompatibilityPropertyValue.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityMetadataResponse.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityPropertyValuesResponse.php on lines 1..351
          src/Developer/AnalyticsBeta/V1/Model/RateLimitsResponse.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/CreateSigningKeyRequest.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/QuerySigningKeysResponse.php on lines 1..351
          src/Sell/Account/V1/Model/KycResponse.php on lines 1..351
          src/Sell/Account/V1/Model/Program.php on lines 1..351
          src/Sell/Account/V1/Model/Programs.php on lines 1..351
          src/Sell/Account/V1/Model/RateTableResponse.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxes.php on lines 1..351
          src/Sell/Account/V1/Model/SellerEligibilityMultiProgramResponse.php on lines 1..351
          src/Sell/Account/V2/Model/RateTableUpdate.php on lines 1..351
          src/Sell/Analytics/V1/Model/BenchmarkMetadata.php on lines 1..351
          src/Sell/Analytics/V1/Model/FindSellerStandardsProfilesResponse.php on lines 1..351
          src/Sell/Compliance/V1/Model/ComplianceSummary.php on lines 1..351
          src/Sell/Compliance/V1/Model/ProductRecommendation.php on lines 1..351
          src/Sell/Feed/V1/Model/InventoryFilterCriteria.php on lines 1..351
          src/Sell/Finances/V1/Model/Buyer.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/AddEvidencePaymentDisputeResponse.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayCollectedCharges.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayFulfillmentProgram.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayInternationalShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayVaultProgram.php on lines 1..349
          src/Sell/Fulfillment/V1/Model/FileEvidence.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PaymentDisputeActivityHistory.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PickupStep.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/SellerActionsToRelease.php on lines 1..351
          src/Sell/Inventory/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkEbayOfferDetailsWithKeys.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListingResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOffer.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOfferResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantity.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantityResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPublishResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/FeesSummaryResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/GetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/MigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeyWithId.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeysWithId.php on lines 1..351
          src/Sell/Logistics/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdIds.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdReferences.php on lines 1..351
          src/Sell/Marketing/V1/Model/Ads.php on lines 1..351
          src/Sell/Marketing/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusByListingIdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusByListingIdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudget.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/Campaigns.php on lines 1..351
          src/Sell/Marketing/V1/Model/DeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/InventoryItem.php on lines 1..351
          src/Sell/Marketing/V1/Model/ReportMetadatas.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedKeywordsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateBidPercentageRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateCampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Negotiation/V1/Model/EligibleItem.php on lines 1..351
          src/Sell/Negotiation/V1/Model/SendOfferToInterestedBuyersCollectionResponse.php on lines 1..351
          src/Sell/Negotiation/V1/Model/User.php on lines 1..351
          src/Sell/Recommendation/V1/Model/FindListingRecommendationRequest.php on lines 1..351

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

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

          <?php
          
          /**
           * This file is part of the trollandtoad/ebay-sdk-php package.
           *
          Severity: Major
          Found in src/Sell/Metadata/V1/Model/SalesTaxJurisdiction.php and 119 other locations - About 2 days to fix
          src/Buy/Browse/V1/Model/AdditionalProductIdentity.php on lines 1..351
          src/Buy/Browse/V1/Model/AutoCorrections.php on lines 1..349
          src/Buy/Browse/V1/Model/CompatibilityPayload.php on lines 1..351
          src/Buy/Browse/V1/Model/CouponConstraint.php on lines 1..351
          src/Buy/Browse/V1/Model/PickupOptionSummary.php on lines 1..351
          src/Buy/Browse/V1/Model/RemoveCartItemInput.php on lines 1..351
          src/Buy/Browse/V1/Model/SearchByImageRequest.php on lines 1..351
          src/Buy/Feed/V1/Model/ApplicationAccess.php on lines 1..351
          src/Buy/Feed/V1/Model/Constraint.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemGroupResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemPriorityResponse.php on lines 1..349
          src/Buy/FeedBeta/V1/Model/ItemResponse.php on lines 1..351
          src/Buy/FeedBeta/V1/Model/ItemSnapshotResponse.php on lines 1..351
          src/Buy/MarketplaceInsightsBeta/V1/Model/Category.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/PlaceProxyBidResponse.php on lines 1..351
          src/Buy/OfferBeta/V1/Model/UserConsent.php on lines 1..351
          src/Buy/Order/V2/Model/Coupon.php on lines 1..351
          src/Buy/Order/V2/Model/CouponRequest.php on lines 1..351
          src/Buy/Order/V2/Model/Image.php on lines 1..351
          src/Buy/Order/V2/Model/Seller.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Image.php on lines 1..351
          src/Commerce/MediaBeta/V1/Model/Moderation.php on lines 1..351
          src/Commerce/Notification/V1/Model/Config.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/AspectMetadata.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/CompatibilityPropertyValue.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityMetadataResponse.php on lines 1..351
          src/Commerce/Taxonomy/V1/Model/GetCompatibilityPropertyValuesResponse.php on lines 1..351
          src/Developer/AnalyticsBeta/V1/Model/RateLimitsResponse.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/CreateSigningKeyRequest.php on lines 1..351
          src/Developer/KeyManagement/V1/Model/QuerySigningKeysResponse.php on lines 1..351
          src/Sell/Account/V1/Model/KycResponse.php on lines 1..351
          src/Sell/Account/V1/Model/Program.php on lines 1..351
          src/Sell/Account/V1/Model/Programs.php on lines 1..351
          src/Sell/Account/V1/Model/RateTableResponse.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdiction.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Account/V1/Model/SalesTaxes.php on lines 1..351
          src/Sell/Account/V1/Model/SellerEligibilityMultiProgramResponse.php on lines 1..351
          src/Sell/Account/V2/Model/RateTableUpdate.php on lines 1..351
          src/Sell/Analytics/V1/Model/BenchmarkMetadata.php on lines 1..351
          src/Sell/Analytics/V1/Model/FindSellerStandardsProfilesResponse.php on lines 1..351
          src/Sell/Compliance/V1/Model/ComplianceSummary.php on lines 1..351
          src/Sell/Compliance/V1/Model/ProductRecommendation.php on lines 1..351
          src/Sell/Feed/V1/Model/InventoryFilterCriteria.php on lines 1..351
          src/Sell/Finances/V1/Model/Buyer.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/AddEvidencePaymentDisputeResponse.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayCollectedCharges.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayFulfillmentProgram.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayInternationalShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayShipping.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/EbayVaultProgram.php on lines 1..349
          src/Sell/Fulfillment/V1/Model/FileEvidence.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PaymentDisputeActivityHistory.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/PickupStep.php on lines 1..351
          src/Sell/Fulfillment/V1/Model/SellerActionsToRelease.php on lines 1..351
          src/Sell/Inventory/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkEbayOfferDetailsWithKeys.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkGetInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkInventoryItemResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkMigrateListingResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOffer.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkOfferResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantity.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPriceQuantityResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/BulkPublishResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/FeesSummaryResponse.php on lines 1..351
          src/Sell/Inventory/V1/Model/GetInventoryItem.php on lines 1..351
          src/Sell/Inventory/V1/Model/MigrateListing.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeyWithId.php on lines 1..351
          src/Sell/Inventory/V1/Model/OfferKeysWithId.php on lines 1..351
          src/Sell/Logistics/V1/Model/PhoneNumber.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdIds.php on lines 1..351
          src/Sell/Marketing/V1/Model/AdReferences.php on lines 1..351
          src/Sell/Marketing/V1/Model/Ads.php on lines 1..351
          src/Sell/Marketing/V1/Model/BaseResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusByListingIdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkAdUpdateStatusResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkCreateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkDeleteAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusByListingIdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdStatusRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateAdsByInventoryReferenceResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/BulkUpdateNegativeKeywordResponse.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudget.php on lines 1..351
          src/Sell/Marketing/V1/Model/CampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/Campaigns.php on lines 1..351
          src/Sell/Marketing/V1/Model/DeleteAdRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/InventoryItem.php on lines 1..351
          src/Sell/Marketing/V1/Model/ReportMetadatas.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedBidsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/TargetedKeywordsPagedCollection.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateBidPercentageRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateCampaignBudgetRequest.php on lines 1..351
          src/Sell/Marketing/V1/Model/UpdateNegativeKeywordRequest.php on lines 1..351
          src/Sell/Metadata/V1/Model/SalesTaxJurisdictions.php on lines 1..351
          src/Sell/Negotiation/V1/Model/EligibleItem.php on lines 1..351
          src/Sell/Negotiation/V1/Model/SendOfferToInterestedBuyersCollectionResponse.php on lines 1..351
          src/Sell/Negotiation/V1/Model/User.php on lines 1..351
          src/Sell/Recommendation/V1/Model/FindListingRecommendationRequest.php on lines 1..351

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

          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