brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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/Sell/Account/V1/Api/PaymentPolicyApi.php and 2 other locations - About 1 mo to fix
src/Sell/Account/V1/Api/FulfillmentPolicyApi.php on lines 1..1655
src/Sell/Account/V1/Api/ReturnPolicyApi.php on lines 1..1655

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

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/Sell/Account/V1/Api/FulfillmentPolicyApi.php and 2 other locations - About 1 mo to fix
src/Sell/Account/V1/Api/PaymentPolicyApi.php on lines 1..1655
src/Sell/Account/V1/Api/ReturnPolicyApi.php on lines 1..1655

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

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/Sell/Account/V1/Api/ReturnPolicyApi.php and 2 other locations - About 1 mo to fix
src/Sell/Account/V1/Api/FulfillmentPolicyApi.php on lines 1..1655
src/Sell/Account/V1/Api/PaymentPolicyApi.php on lines 1..1655

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Marketing/V1/Api/ItemPromotionApi.php and 1 other location - About 1 mo to fix
src/Sell/Marketing/V1/Api/ItemPriceMarkdownApi.php on lines 1..1129

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Marketing/V1/Api/ItemPriceMarkdownApi.php and 1 other location - About 1 mo to fix
src/Sell/Marketing/V1/Api/ItemPromotionApi.php on lines 1..1129

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Feed/V1/Api/InventoryTaskApi.php and 1 other location - About 3 wks to fix
src/Sell/Feed/V1/Api/OrderTaskApi.php on lines 1..931

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Feed/V1/Api/OrderTaskApi.php and 1 other location - About 3 wks to fix
src/Sell/Feed/V1/Api/InventoryTaskApi.php on lines 1..931

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Inventory/V1/Api/ProductCompatibilityApi.php and 1 other location - About 3 wks to fix
src/Sell/Inventory/V1/Api/InventoryItemGroupApi.php on lines 1..913

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Inventory/V1/Api/InventoryItemGroupApi.php and 1 other location - About 3 wks to fix
src/Sell/Inventory/V1/Api/ProductCompatibilityApi.php on lines 1..913

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

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

<?php

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

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

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

<?php

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

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

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

<?php

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

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

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

<?php

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

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

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

<?php

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

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

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

<?php

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

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

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

<?php

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

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

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

<?php

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

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

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

<?php

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

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

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

<?php

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

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

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

<?php

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

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

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