brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/Order/V2/Model/PricingSummary.php and 6 other locations - About 1 wk to fix
src/Buy/Browse/V1/Model/SellerLegalInfo.php on lines 1..651
src/Commerce/MediaBeta/V1/Model/Video.php on lines 1..651
src/Sell/Account/V1/Model/FulfillmentPolicyRequest.php on lines 1..651
src/Sell/Account/V1/Model/InventoryLocationResponse.php on lines 1..651
src/Sell/Account/V1/Model/SetPaymentPolicyResponse.php on lines 1..651
src/Sell/Inventory/V1/Model/InventoryLocationResponse.php on lines 1..651

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Account/V1/Model/InventoryLocationResponse.php and 6 other locations - About 1 wk to fix
src/Buy/Browse/V1/Model/SellerLegalInfo.php on lines 1..651
src/Buy/Order/V2/Model/PricingSummary.php on lines 1..651
src/Commerce/MediaBeta/V1/Model/Video.php on lines 1..651
src/Sell/Account/V1/Model/FulfillmentPolicyRequest.php on lines 1..651
src/Sell/Account/V1/Model/SetPaymentPolicyResponse.php on lines 1..651
src/Sell/Inventory/V1/Model/InventoryLocationResponse.php on lines 1..651

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

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/Account/V1/Model/ShippingService.php and 1 other location - About 1 wk to fix
src/Buy/Feed/V1/Model/FileMetadata.php on lines 1..651

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

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/FileMetadata.php and 1 other location - About 1 wk to fix
src/Sell/Account/V1/Model/ShippingService.php on lines 1..651

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/Deal/V1/Model/Event.php and 5 other locations - About 1 wk to fix
src/Buy/Order/V2/Model/PricingSummaryV2.php on lines 1..621
src/Sell/Account/V1/Model/InventoryLocationFull.php on lines 1..621
src/Sell/Account/V1/Model/PaymentPolicy.php on lines 1..621
src/Sell/Inventory/V1/Model/InventoryLocationFull.php on lines 1..621
src/Sell/Marketing/V1/Model/Campaign.php on lines 1..621

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Inventory/V1/Model/InventoryLocationFull.php and 5 other locations - About 1 wk to fix
src/Buy/Deal/V1/Model/Event.php on lines 1..621
src/Buy/Order/V2/Model/PricingSummaryV2.php on lines 1..621
src/Sell/Account/V1/Model/InventoryLocationFull.php on lines 1..621
src/Sell/Account/V1/Model/PaymentPolicy.php on lines 1..621
src/Sell/Marketing/V1/Model/Campaign.php on lines 1..621

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Account/V1/Model/InventoryLocationFull.php and 5 other locations - About 1 wk to fix
src/Buy/Deal/V1/Model/Event.php on lines 1..621
src/Buy/Order/V2/Model/PricingSummaryV2.php on lines 1..621
src/Sell/Account/V1/Model/PaymentPolicy.php on lines 1..621
src/Sell/Inventory/V1/Model/InventoryLocationFull.php on lines 1..621
src/Sell/Marketing/V1/Model/Campaign.php on lines 1..621

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Account/V1/Model/PaymentPolicy.php and 5 other locations - About 1 wk to fix
src/Buy/Deal/V1/Model/Event.php on lines 1..621
src/Buy/Order/V2/Model/PricingSummaryV2.php on lines 1..621
src/Sell/Account/V1/Model/InventoryLocationFull.php on lines 1..621
src/Sell/Inventory/V1/Model/InventoryLocationFull.php on lines 1..621
src/Sell/Marketing/V1/Model/Campaign.php on lines 1..621

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/Order/V2/Model/PricingSummaryV2.php and 5 other locations - About 1 wk to fix
src/Buy/Deal/V1/Model/Event.php on lines 1..621
src/Sell/Account/V1/Model/InventoryLocationFull.php on lines 1..621
src/Sell/Account/V1/Model/PaymentPolicy.php on lines 1..621
src/Sell/Inventory/V1/Model/InventoryLocationFull.php on lines 1..621
src/Sell/Marketing/V1/Model/Campaign.php on lines 1..621

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

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

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

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

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

Refactorings

Further Reading

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Marketing/V1/Model/Campaign.php and 5 other locations - About 1 wk to fix
src/Buy/Deal/V1/Model/Event.php on lines 1..621
src/Buy/Order/V2/Model/PricingSummaryV2.php on lines 1..621
src/Sell/Account/V1/Model/InventoryLocationFull.php on lines 1..621
src/Sell/Account/V1/Model/PaymentPolicy.php on lines 1..621
src/Sell/Inventory/V1/Model/InventoryLocationFull.php on lines 1..621

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/Browse/V1/Model/Product.php and 11 other locations - About 6 days to fix
src/Buy/Order/V2/Model/ShippingAddress.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddressImpl.php on lines 1..591
src/Buy/Order/V2/Model/ShippingOption.php on lines 1..591
src/Sell/Account/V1/Model/PaymentPolicyRequest.php on lines 1..591
src/Sell/Feed/V1/Model/InventoryTask.php on lines 1..589
src/Sell/Feed/V1/Model/OrderTask.php on lines 1..591
src/Sell/Fulfillment/V1/Model/PaymentDisputeSummary.php on lines 1..591
src/Sell/Fulfillment/V1/Model/ReturnAddress.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemGroup.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemWithSkuLocaleGroupid.php on lines 1..589
src/Sell/Logistics/V1/Model/ShippingQuote.php on lines 1..591

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
src/Buy/Browse/V1/Model/Product.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddress.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddressImpl.php on lines 1..591
src/Buy/Order/V2/Model/ShippingOption.php on lines 1..591
src/Sell/Account/V1/Model/PaymentPolicyRequest.php on lines 1..591
src/Sell/Feed/V1/Model/InventoryTask.php on lines 1..589
src/Sell/Feed/V1/Model/OrderTask.php on lines 1..591
src/Sell/Fulfillment/V1/Model/PaymentDisputeSummary.php on lines 1..591
src/Sell/Fulfillment/V1/Model/ReturnAddress.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemGroup.php on lines 1..591
src/Sell/Logistics/V1/Model/ShippingQuote.php on lines 1..591

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Account/V1/Model/PaymentPolicyRequest.php and 11 other locations - About 6 days to fix
src/Buy/Browse/V1/Model/Product.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddress.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddressImpl.php on lines 1..591
src/Buy/Order/V2/Model/ShippingOption.php on lines 1..591
src/Sell/Feed/V1/Model/InventoryTask.php on lines 1..589
src/Sell/Feed/V1/Model/OrderTask.php on lines 1..591
src/Sell/Fulfillment/V1/Model/PaymentDisputeSummary.php on lines 1..591
src/Sell/Fulfillment/V1/Model/ReturnAddress.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemGroup.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemWithSkuLocaleGroupid.php on lines 1..589
src/Sell/Logistics/V1/Model/ShippingQuote.php on lines 1..591

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Fulfillment/V1/Model/ReturnAddress.php and 11 other locations - About 6 days to fix
src/Buy/Browse/V1/Model/Product.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddress.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddressImpl.php on lines 1..591
src/Buy/Order/V2/Model/ShippingOption.php on lines 1..591
src/Sell/Account/V1/Model/PaymentPolicyRequest.php on lines 1..591
src/Sell/Feed/V1/Model/InventoryTask.php on lines 1..589
src/Sell/Feed/V1/Model/OrderTask.php on lines 1..591
src/Sell/Fulfillment/V1/Model/PaymentDisputeSummary.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemGroup.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemWithSkuLocaleGroupid.php on lines 1..589
src/Sell/Logistics/V1/Model/ShippingQuote.php on lines 1..591

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Feed/V1/Model/OrderTask.php and 11 other locations - About 6 days to fix
src/Buy/Browse/V1/Model/Product.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddress.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddressImpl.php on lines 1..591
src/Buy/Order/V2/Model/ShippingOption.php on lines 1..591
src/Sell/Account/V1/Model/PaymentPolicyRequest.php on lines 1..591
src/Sell/Feed/V1/Model/InventoryTask.php on lines 1..589
src/Sell/Fulfillment/V1/Model/PaymentDisputeSummary.php on lines 1..591
src/Sell/Fulfillment/V1/Model/ReturnAddress.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemGroup.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemWithSkuLocaleGroupid.php on lines 1..589
src/Sell/Logistics/V1/Model/ShippingQuote.php on lines 1..591

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/Order/V2/Model/ShippingOption.php and 11 other locations - About 6 days to fix
src/Buy/Browse/V1/Model/Product.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddress.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddressImpl.php on lines 1..591
src/Sell/Account/V1/Model/PaymentPolicyRequest.php on lines 1..591
src/Sell/Feed/V1/Model/InventoryTask.php on lines 1..589
src/Sell/Feed/V1/Model/OrderTask.php on lines 1..591
src/Sell/Fulfillment/V1/Model/PaymentDisputeSummary.php on lines 1..591
src/Sell/Fulfillment/V1/Model/ReturnAddress.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemGroup.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemWithSkuLocaleGroupid.php on lines 1..589
src/Sell/Logistics/V1/Model/ShippingQuote.php on lines 1..591

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/Order/V2/Model/ShippingAddress.php and 11 other locations - About 6 days to fix
src/Buy/Browse/V1/Model/Product.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddressImpl.php on lines 1..591
src/Buy/Order/V2/Model/ShippingOption.php on lines 1..591
src/Sell/Account/V1/Model/PaymentPolicyRequest.php on lines 1..591
src/Sell/Feed/V1/Model/InventoryTask.php on lines 1..589
src/Sell/Feed/V1/Model/OrderTask.php on lines 1..591
src/Sell/Fulfillment/V1/Model/PaymentDisputeSummary.php on lines 1..591
src/Sell/Fulfillment/V1/Model/ReturnAddress.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemGroup.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemWithSkuLocaleGroupid.php on lines 1..589
src/Sell/Logistics/V1/Model/ShippingQuote.php on lines 1..591

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

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 12 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/InventoryItemGroup.php and 11 other locations - About 6 days to fix
src/Buy/Browse/V1/Model/Product.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddress.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddressImpl.php on lines 1..591
src/Buy/Order/V2/Model/ShippingOption.php on lines 1..591
src/Sell/Account/V1/Model/PaymentPolicyRequest.php on lines 1..591
src/Sell/Feed/V1/Model/InventoryTask.php on lines 1..589
src/Sell/Feed/V1/Model/OrderTask.php on lines 1..591
src/Sell/Fulfillment/V1/Model/PaymentDisputeSummary.php on lines 1..591
src/Sell/Fulfillment/V1/Model/ReturnAddress.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemWithSkuLocaleGroupid.php on lines 1..589
src/Sell/Logistics/V1/Model/ShippingQuote.php on lines 1..591

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

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

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Fulfillment/V1/Model/PaymentDisputeSummary.php and 11 other locations - About 6 days to fix
src/Buy/Browse/V1/Model/Product.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddress.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddressImpl.php on lines 1..591
src/Buy/Order/V2/Model/ShippingOption.php on lines 1..591
src/Sell/Account/V1/Model/PaymentPolicyRequest.php on lines 1..591
src/Sell/Feed/V1/Model/InventoryTask.php on lines 1..589
src/Sell/Feed/V1/Model/OrderTask.php on lines 1..591
src/Sell/Fulfillment/V1/Model/ReturnAddress.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemGroup.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemWithSkuLocaleGroupid.php on lines 1..589
src/Sell/Logistics/V1/Model/ShippingQuote.php on lines 1..591

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

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 12 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/ShippingQuote.php and 11 other locations - About 6 days to fix
src/Buy/Browse/V1/Model/Product.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddress.php on lines 1..591
src/Buy/Order/V2/Model/ShippingAddressImpl.php on lines 1..591
src/Buy/Order/V2/Model/ShippingOption.php on lines 1..591
src/Sell/Account/V1/Model/PaymentPolicyRequest.php on lines 1..591
src/Sell/Feed/V1/Model/InventoryTask.php on lines 1..589
src/Sell/Feed/V1/Model/OrderTask.php on lines 1..591
src/Sell/Fulfillment/V1/Model/PaymentDisputeSummary.php on lines 1..591
src/Sell/Fulfillment/V1/Model/ReturnAddress.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemGroup.php on lines 1..591
src/Sell/Inventory/V1/Model/InventoryItemWithSkuLocaleGroupid.php on lines 1..589

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

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