brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Inventory/V1/Model/OfferResponseWithListingId.php and 3 other locations - About 4 days to fix
src/Sell/Inventory/V1/Model/GetInventoryItemResponse.php on lines 1..471
src/Sell/Inventory/V1/Model/InventoryItemResponse.php on lines 1..471
src/Sell/Inventory/V1/Model/PriceQuantityResponse.php on lines 1..471

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
src/Sell/Marketing/V1/Model/AdUpdateResponse.php on lines 1..471
src/Sell/Marketing/V1/Model/AdUpdateStatusByListingIdResponse.php on lines 1..471
src/Sell/Marketing/V1/Model/DeleteAdsByInventoryReferenceResponse.php on lines 1..471
src/Sell/Metadata/V1/Model/AutomotivePartsCompatibilityPolicy.php on lines 1..469

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
src/Sell/Marketing/V1/Model/AdUpdateResponse.php on lines 1..471
src/Sell/Marketing/V1/Model/DeleteAdsByInventoryReferenceResponse.php on lines 1..471
src/Sell/Marketing/V1/Model/UpdateAdsByInventoryReferenceResponse.php on lines 1..471
src/Sell/Metadata/V1/Model/AutomotivePartsCompatibilityPolicy.php on lines 1..469

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Commerce/Taxonomy/V1/Model/CategoryTreeNode.php and 2 other locations - About 4 days to fix
src/Buy/Browse/V1/Model/SellerDetail.php on lines 1..471
src/Sell/Inventory/V1/Model/ShippingCostOverride.php on lines 1..471

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Inventory/V1/Model/PriceQuantityResponse.php and 3 other locations - About 4 days to fix
src/Sell/Inventory/V1/Model/GetInventoryItemResponse.php on lines 1..471
src/Sell/Inventory/V1/Model/InventoryItemResponse.php on lines 1..471
src/Sell/Inventory/V1/Model/OfferResponseWithListingId.php on lines 1..471

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
src/Sell/Marketing/V1/Model/AdUpdateResponse.php on lines 1..471
src/Sell/Marketing/V1/Model/AdUpdateStatusByListingIdResponse.php on lines 1..471
src/Sell/Marketing/V1/Model/UpdateAdsByInventoryReferenceResponse.php on lines 1..471
src/Sell/Metadata/V1/Model/AutomotivePartsCompatibilityPolicy.php on lines 1..469

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Commerce/Notification/V1/Model/TopicSearchResponse.php and 2 other locations - About 4 days to fix
src/Commerce/Notification/V1/Model/DestinationSearchResponse.php on lines 1..471
src/Commerce/Notification/V1/Model/SubscriptionSearchResponse.php on lines 1..471

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/Feed/V1/Model/FileMetadataSearchResponse.php and 1 other location - About 4 days to fix
src/Buy/Feed/V1/Model/FeedTypeSearchResponse.php on lines 1..471

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
src/Commerce/Notification/V1/Model/SubscriptionSearchResponse.php on lines 1..471
src/Commerce/Notification/V1/Model/TopicSearchResponse.php on lines 1..471

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
src/Commerce/Notification/V1/Model/DestinationSearchResponse.php on lines 1..471
src/Commerce/Notification/V1/Model/TopicSearchResponse.php on lines 1..471

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/Feed/V1/Model/FeedTypeSearchResponse.php and 1 other location - About 4 days to fix
src/Buy/Feed/V1/Model/FileMetadataSearchResponse.php on lines 1..471

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

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 getListingSetRequest($promotion_id, $limit = null, $offset = null, $q = null, $sort = null, $status = null)
    {
        // Verify the required parameter 'promotion_id' is set.
        if ($promotion_id === null || (\is_array($promotion_id) && count($promotion_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $promotion_id when calling getListingSet');
Severity: Major
Found in src/Sell/Marketing/V1/Api/PromotionApi.php and 1 other location - About 4 days to fix
src/Sell/Marketing/V1/Api/AdApi.php on lines 3740..3868

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

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 getAdsRequest($campaign_id, $ad_group_ids = null, $ad_status = null, $limit = null, $listing_ids = null, $offset = null)
    {
        // Verify the required parameter 'campaign_id' is set.
        if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling getAds');
Severity: Major
Found in src/Sell/Marketing/V1/Api/AdApi.php and 1 other location - About 4 days to fix
src/Sell/Marketing/V1/Api/PromotionApi.php on lines 338..466

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

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

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

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

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

Refactorings

Further Reading

File PaymentDisputeApi.php has 1528 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/Fulfillment/V1/Api/PaymentDisputeApi.php - About 4 days to fix

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

        public function getDealItemsRequest($x_ebay_c_marketplace_id, $category_ids = null, $commissionable = null, $delivery_country = null, $limit = null, $offset = null)
        {
            // Verify the required parameter 'x_ebay_c_marketplace_id' is set.
            if ($x_ebay_c_marketplace_id === null || (\is_array($x_ebay_c_marketplace_id) && count($x_ebay_c_marketplace_id) === 0)) {
                throw new \InvalidArgumentException('Missing the required parameter $x_ebay_c_marketplace_id when calling getDealItems');
    Severity: Major
    Found in src/Buy/Deal/V1/Api/DealItemApi.php and 1 other location - About 3 days to fix
    src/Sell/Compliance/V1/Api/ListingViolationApi.php on lines 338..458

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

    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 getListingViolationsRequest($x_ebay_c_marketplace_id, $compliance_type = null, $offset = null, $listing_id = null, $limit = null, $filter = null)
        {
            // Verify the required parameter 'x_ebay_c_marketplace_id' is set.
            if ($x_ebay_c_marketplace_id === null || (\is_array($x_ebay_c_marketplace_id) && count($x_ebay_c_marketplace_id) === 0)) {
                throw new \InvalidArgumentException('Missing the required parameter $x_ebay_c_marketplace_id when calling getListingViolations');
    Severity: Major
    Found in src/Sell/Compliance/V1/Api/ListingViolationApi.php and 1 other location - About 3 days to fix
    src/Buy/Deal/V1/Api/DealItemApi.php on lines 338..458

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

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

    <?php
    
    /**
     * This file is part of the trollandtoad/ebay-sdk-php package.
     *
    Severity: Major
    Found in src/Sell/Marketing/V1/Model/CreateNegativeKeywordRequest.php and 60 other locations - About 3 days to fix
    src/Buy/Browse/V1/Model/AddonService.php on lines 1..441
    src/Buy/Browse/V1/Model/ConvertedAmount.php on lines 1..441
    src/Buy/Browse/V1/Model/MarketingPrice.php on lines 1..441
    src/Buy/Browse/V1/Model/PaymentMethod.php on lines 1..439
    src/Buy/Browse/V1/Model/Price.php on lines 1..441
    src/Buy/Deal/V1/Model/Image.php on lines 1..441
    src/Buy/Deal/V1/Model/MarketingPrice.php on lines 1..441
    src/Buy/Feed/V1/Model/SupportedSchema.php on lines 1..441
    src/Buy/MarketplaceInsightsBeta/V1/Model/ConvertedAmount.php on lines 1..439
    src/Buy/Order/V2/Model/AuthenticityVerificationProgram.php on lines 1..441
    src/Buy/Order/V2/Model/ShippingDetail.php on lines 1..441
    src/Commerce/Charity/V1/Model/Address.php on lines 1..441
    src/Commerce/MediaBeta/V1/Model/CreateVideoRequest.php on lines 1..441
    src/Commerce/Notification/V1/Model/CreateSubscriptionRequest.php on lines 1..441
    src/Commerce/Notification/V1/Model/Destination.php on lines 1..441
    src/Commerce/Notification/V1/Model/PayloadDetail.php on lines 1..441
    src/Commerce/Taxonomy/V1/Model/Aspect.php on lines 1..441
    src/Commerce/Taxonomy/V1/Model/CategoryTree.php on lines 1..441
    src/Commerce/TranslationBeta/V1/Model/TranslateRequest.php on lines 1..441
    src/Developer/AnalyticsBeta/V1/Model/RateLimit.php on lines 1..441
    src/Sell/Account/V1/Model/CompactCustomPolicyResponse.php on lines 1..441
    src/Sell/Account/V1/Model/CustomPolicyCreateRequest.php on lines 1..441
    src/Sell/Account/V1/Model/InternationalReturnOverrideType.php on lines 1..441
    src/Sell/Account/V1/Model/PaymentsProgramResponse.php on lines 1..441
    src/Sell/Account/V1/Model/RateTable.php on lines 1..441
    src/Sell/Account/V1/Model/SalesTax.php on lines 1..441
    src/Sell/Analytics/V1/Model/EvaluationCycle.php on lines 1..441
    src/Sell/Analytics/V1/Model/Metric.php on lines 1..441
    src/Sell/Analytics/V1/Model/MetricBenchmark.php on lines 1..441
    src/Sell/Feed/V1/Model/CustomerServiceMetricsFilterCriteria.php on lines 1..441
    src/Sell/Finances/V1/Model/Fee.php on lines 1..441
    src/Sell/Finances/V1/Model/SellerFundsSummaryResponse.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/Amount.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/EbayCollectAndRemitTax.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/FileInfo.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/IssueRefundRequest.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/LineItemFulfillmentInstructions.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/LineItemRefund.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/MonetaryTransaction.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/ShippingFulfillmentDetails.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/ShippingStep.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/TaxAddress.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/UpdateEvidencePaymentDisputeRequest.php on lines 1..441
    src/Sell/Inventory/V1/Model/CompatibleProduct.php on lines 1..441
    src/Sell/Inventory/V1/Model/Dimension.php on lines 1..441
    src/Sell/Logistics/V1/Model/Contact.php on lines 1..441
    src/Sell/Logistics/V1/Model/Dimensions.php on lines 1..441
    src/Sell/Logistics/V1/Model/PickupSlot.php on lines 1..441
    src/Sell/Logistics/V1/Model/ShippingQuoteRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/AdGroup.php on lines 1..441
    src/Sell/Marketing/V1/Model/CloneCampaignRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/CreateAdsByInventoryReferenceRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/CreateKeywordRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/DiscountBenefit.php on lines 1..441
    src/Sell/Marketing/V1/Model/FundingStrategy.php on lines 1..441
    src/Sell/Marketing/V1/Model/InventoryCriterion.php on lines 1..441
    src/Sell/Marketing/V1/Model/ProposedBid.php on lines 1..441
    src/Sell/Marketing/V1/Model/TargetedKeywordRequest.php on lines 1..441
    src/Sell/Metadata/V1/Model/ItemConditionPolicy.php on lines 1..439
    src/Sell/Negotiation/V1/Model/CreateOffersRequest.php on lines 1..441

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 730.

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

    <?php
    
    /**
     * This file is part of the trollandtoad/ebay-sdk-php package.
     *
    Severity: Major
    Found in src/Sell/Inventory/V1/Model/CompatibleProduct.php and 60 other locations - About 3 days to fix
    src/Buy/Browse/V1/Model/AddonService.php on lines 1..441
    src/Buy/Browse/V1/Model/ConvertedAmount.php on lines 1..441
    src/Buy/Browse/V1/Model/MarketingPrice.php on lines 1..441
    src/Buy/Browse/V1/Model/PaymentMethod.php on lines 1..439
    src/Buy/Browse/V1/Model/Price.php on lines 1..441
    src/Buy/Deal/V1/Model/Image.php on lines 1..441
    src/Buy/Deal/V1/Model/MarketingPrice.php on lines 1..441
    src/Buy/Feed/V1/Model/SupportedSchema.php on lines 1..441
    src/Buy/MarketplaceInsightsBeta/V1/Model/ConvertedAmount.php on lines 1..439
    src/Buy/Order/V2/Model/AuthenticityVerificationProgram.php on lines 1..441
    src/Buy/Order/V2/Model/ShippingDetail.php on lines 1..441
    src/Commerce/Charity/V1/Model/Address.php on lines 1..441
    src/Commerce/MediaBeta/V1/Model/CreateVideoRequest.php on lines 1..441
    src/Commerce/Notification/V1/Model/CreateSubscriptionRequest.php on lines 1..441
    src/Commerce/Notification/V1/Model/Destination.php on lines 1..441
    src/Commerce/Notification/V1/Model/PayloadDetail.php on lines 1..441
    src/Commerce/Taxonomy/V1/Model/Aspect.php on lines 1..441
    src/Commerce/Taxonomy/V1/Model/CategoryTree.php on lines 1..441
    src/Commerce/TranslationBeta/V1/Model/TranslateRequest.php on lines 1..441
    src/Developer/AnalyticsBeta/V1/Model/RateLimit.php on lines 1..441
    src/Sell/Account/V1/Model/CompactCustomPolicyResponse.php on lines 1..441
    src/Sell/Account/V1/Model/CustomPolicyCreateRequest.php on lines 1..441
    src/Sell/Account/V1/Model/InternationalReturnOverrideType.php on lines 1..441
    src/Sell/Account/V1/Model/PaymentsProgramResponse.php on lines 1..441
    src/Sell/Account/V1/Model/RateTable.php on lines 1..441
    src/Sell/Account/V1/Model/SalesTax.php on lines 1..441
    src/Sell/Analytics/V1/Model/EvaluationCycle.php on lines 1..441
    src/Sell/Analytics/V1/Model/Metric.php on lines 1..441
    src/Sell/Analytics/V1/Model/MetricBenchmark.php on lines 1..441
    src/Sell/Feed/V1/Model/CustomerServiceMetricsFilterCriteria.php on lines 1..441
    src/Sell/Finances/V1/Model/Fee.php on lines 1..441
    src/Sell/Finances/V1/Model/SellerFundsSummaryResponse.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/Amount.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/EbayCollectAndRemitTax.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/FileInfo.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/IssueRefundRequest.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/LineItemFulfillmentInstructions.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/LineItemRefund.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/MonetaryTransaction.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/ShippingFulfillmentDetails.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/ShippingStep.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/TaxAddress.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/UpdateEvidencePaymentDisputeRequest.php on lines 1..441
    src/Sell/Inventory/V1/Model/Dimension.php on lines 1..441
    src/Sell/Logistics/V1/Model/Contact.php on lines 1..441
    src/Sell/Logistics/V1/Model/Dimensions.php on lines 1..441
    src/Sell/Logistics/V1/Model/PickupSlot.php on lines 1..441
    src/Sell/Logistics/V1/Model/ShippingQuoteRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/AdGroup.php on lines 1..441
    src/Sell/Marketing/V1/Model/CloneCampaignRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/CreateAdsByInventoryReferenceRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/CreateKeywordRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/CreateNegativeKeywordRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/DiscountBenefit.php on lines 1..441
    src/Sell/Marketing/V1/Model/FundingStrategy.php on lines 1..441
    src/Sell/Marketing/V1/Model/InventoryCriterion.php on lines 1..441
    src/Sell/Marketing/V1/Model/ProposedBid.php on lines 1..441
    src/Sell/Marketing/V1/Model/TargetedKeywordRequest.php on lines 1..441
    src/Sell/Metadata/V1/Model/ItemConditionPolicy.php on lines 1..439
    src/Sell/Negotiation/V1/Model/CreateOffersRequest.php on lines 1..441

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 730.

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

    <?php
    
    /**
     * This file is part of the trollandtoad/ebay-sdk-php package.
     *
    Severity: Major
    Found in src/Sell/Logistics/V1/Model/Contact.php and 60 other locations - About 3 days to fix
    src/Buy/Browse/V1/Model/AddonService.php on lines 1..441
    src/Buy/Browse/V1/Model/ConvertedAmount.php on lines 1..441
    src/Buy/Browse/V1/Model/MarketingPrice.php on lines 1..441
    src/Buy/Browse/V1/Model/PaymentMethod.php on lines 1..439
    src/Buy/Browse/V1/Model/Price.php on lines 1..441
    src/Buy/Deal/V1/Model/Image.php on lines 1..441
    src/Buy/Deal/V1/Model/MarketingPrice.php on lines 1..441
    src/Buy/Feed/V1/Model/SupportedSchema.php on lines 1..441
    src/Buy/MarketplaceInsightsBeta/V1/Model/ConvertedAmount.php on lines 1..439
    src/Buy/Order/V2/Model/AuthenticityVerificationProgram.php on lines 1..441
    src/Buy/Order/V2/Model/ShippingDetail.php on lines 1..441
    src/Commerce/Charity/V1/Model/Address.php on lines 1..441
    src/Commerce/MediaBeta/V1/Model/CreateVideoRequest.php on lines 1..441
    src/Commerce/Notification/V1/Model/CreateSubscriptionRequest.php on lines 1..441
    src/Commerce/Notification/V1/Model/Destination.php on lines 1..441
    src/Commerce/Notification/V1/Model/PayloadDetail.php on lines 1..441
    src/Commerce/Taxonomy/V1/Model/Aspect.php on lines 1..441
    src/Commerce/Taxonomy/V1/Model/CategoryTree.php on lines 1..441
    src/Commerce/TranslationBeta/V1/Model/TranslateRequest.php on lines 1..441
    src/Developer/AnalyticsBeta/V1/Model/RateLimit.php on lines 1..441
    src/Sell/Account/V1/Model/CompactCustomPolicyResponse.php on lines 1..441
    src/Sell/Account/V1/Model/CustomPolicyCreateRequest.php on lines 1..441
    src/Sell/Account/V1/Model/InternationalReturnOverrideType.php on lines 1..441
    src/Sell/Account/V1/Model/PaymentsProgramResponse.php on lines 1..441
    src/Sell/Account/V1/Model/RateTable.php on lines 1..441
    src/Sell/Account/V1/Model/SalesTax.php on lines 1..441
    src/Sell/Analytics/V1/Model/EvaluationCycle.php on lines 1..441
    src/Sell/Analytics/V1/Model/Metric.php on lines 1..441
    src/Sell/Analytics/V1/Model/MetricBenchmark.php on lines 1..441
    src/Sell/Feed/V1/Model/CustomerServiceMetricsFilterCriteria.php on lines 1..441
    src/Sell/Finances/V1/Model/Fee.php on lines 1..441
    src/Sell/Finances/V1/Model/SellerFundsSummaryResponse.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/Amount.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/EbayCollectAndRemitTax.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/FileInfo.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/IssueRefundRequest.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/LineItemFulfillmentInstructions.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/LineItemRefund.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/MonetaryTransaction.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/ShippingFulfillmentDetails.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/ShippingStep.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/TaxAddress.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/UpdateEvidencePaymentDisputeRequest.php on lines 1..441
    src/Sell/Inventory/V1/Model/CompatibleProduct.php on lines 1..441
    src/Sell/Inventory/V1/Model/Dimension.php on lines 1..441
    src/Sell/Logistics/V1/Model/Dimensions.php on lines 1..441
    src/Sell/Logistics/V1/Model/PickupSlot.php on lines 1..441
    src/Sell/Logistics/V1/Model/ShippingQuoteRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/AdGroup.php on lines 1..441
    src/Sell/Marketing/V1/Model/CloneCampaignRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/CreateAdsByInventoryReferenceRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/CreateKeywordRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/CreateNegativeKeywordRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/DiscountBenefit.php on lines 1..441
    src/Sell/Marketing/V1/Model/FundingStrategy.php on lines 1..441
    src/Sell/Marketing/V1/Model/InventoryCriterion.php on lines 1..441
    src/Sell/Marketing/V1/Model/ProposedBid.php on lines 1..441
    src/Sell/Marketing/V1/Model/TargetedKeywordRequest.php on lines 1..441
    src/Sell/Metadata/V1/Model/ItemConditionPolicy.php on lines 1..439
    src/Sell/Negotiation/V1/Model/CreateOffersRequest.php on lines 1..441

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 730.

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

    <?php
    
    /**
     * This file is part of the trollandtoad/ebay-sdk-php package.
     *
    Severity: Major
    Found in src/Sell/Marketing/V1/Model/TargetedKeywordRequest.php and 60 other locations - About 3 days to fix
    src/Buy/Browse/V1/Model/AddonService.php on lines 1..441
    src/Buy/Browse/V1/Model/ConvertedAmount.php on lines 1..441
    src/Buy/Browse/V1/Model/MarketingPrice.php on lines 1..441
    src/Buy/Browse/V1/Model/PaymentMethod.php on lines 1..439
    src/Buy/Browse/V1/Model/Price.php on lines 1..441
    src/Buy/Deal/V1/Model/Image.php on lines 1..441
    src/Buy/Deal/V1/Model/MarketingPrice.php on lines 1..441
    src/Buy/Feed/V1/Model/SupportedSchema.php on lines 1..441
    src/Buy/MarketplaceInsightsBeta/V1/Model/ConvertedAmount.php on lines 1..439
    src/Buy/Order/V2/Model/AuthenticityVerificationProgram.php on lines 1..441
    src/Buy/Order/V2/Model/ShippingDetail.php on lines 1..441
    src/Commerce/Charity/V1/Model/Address.php on lines 1..441
    src/Commerce/MediaBeta/V1/Model/CreateVideoRequest.php on lines 1..441
    src/Commerce/Notification/V1/Model/CreateSubscriptionRequest.php on lines 1..441
    src/Commerce/Notification/V1/Model/Destination.php on lines 1..441
    src/Commerce/Notification/V1/Model/PayloadDetail.php on lines 1..441
    src/Commerce/Taxonomy/V1/Model/Aspect.php on lines 1..441
    src/Commerce/Taxonomy/V1/Model/CategoryTree.php on lines 1..441
    src/Commerce/TranslationBeta/V1/Model/TranslateRequest.php on lines 1..441
    src/Developer/AnalyticsBeta/V1/Model/RateLimit.php on lines 1..441
    src/Sell/Account/V1/Model/CompactCustomPolicyResponse.php on lines 1..441
    src/Sell/Account/V1/Model/CustomPolicyCreateRequest.php on lines 1..441
    src/Sell/Account/V1/Model/InternationalReturnOverrideType.php on lines 1..441
    src/Sell/Account/V1/Model/PaymentsProgramResponse.php on lines 1..441
    src/Sell/Account/V1/Model/RateTable.php on lines 1..441
    src/Sell/Account/V1/Model/SalesTax.php on lines 1..441
    src/Sell/Analytics/V1/Model/EvaluationCycle.php on lines 1..441
    src/Sell/Analytics/V1/Model/Metric.php on lines 1..441
    src/Sell/Analytics/V1/Model/MetricBenchmark.php on lines 1..441
    src/Sell/Feed/V1/Model/CustomerServiceMetricsFilterCriteria.php on lines 1..441
    src/Sell/Finances/V1/Model/Fee.php on lines 1..441
    src/Sell/Finances/V1/Model/SellerFundsSummaryResponse.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/Amount.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/EbayCollectAndRemitTax.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/FileInfo.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/IssueRefundRequest.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/LineItemFulfillmentInstructions.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/LineItemRefund.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/MonetaryTransaction.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/ShippingFulfillmentDetails.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/ShippingStep.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/TaxAddress.php on lines 1..441
    src/Sell/Fulfillment/V1/Model/UpdateEvidencePaymentDisputeRequest.php on lines 1..441
    src/Sell/Inventory/V1/Model/CompatibleProduct.php on lines 1..441
    src/Sell/Inventory/V1/Model/Dimension.php on lines 1..441
    src/Sell/Logistics/V1/Model/Contact.php on lines 1..441
    src/Sell/Logistics/V1/Model/Dimensions.php on lines 1..441
    src/Sell/Logistics/V1/Model/PickupSlot.php on lines 1..441
    src/Sell/Logistics/V1/Model/ShippingQuoteRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/AdGroup.php on lines 1..441
    src/Sell/Marketing/V1/Model/CloneCampaignRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/CreateAdsByInventoryReferenceRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/CreateKeywordRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/CreateNegativeKeywordRequest.php on lines 1..441
    src/Sell/Marketing/V1/Model/DiscountBenefit.php on lines 1..441
    src/Sell/Marketing/V1/Model/FundingStrategy.php on lines 1..441
    src/Sell/Marketing/V1/Model/InventoryCriterion.php on lines 1..441
    src/Sell/Marketing/V1/Model/ProposedBid.php on lines 1..441
    src/Sell/Metadata/V1/Model/ItemConditionPolicy.php on lines 1..439
    src/Sell/Negotiation/V1/Model/CreateOffersRequest.php on lines 1..441

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 730.

    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