brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

    public function updateCustomPolicyWithHttpInfo($custom_policy_id, $x_ebay_c_marketplace_id, $custom_policy_request)
    {
        $request = $this->updateCustomPolicyRequest($custom_policy_id, $x_ebay_c_marketplace_id, $custom_policy_request);

        try {
Severity: Major
Found in src/Sell/Account/V1/Api/CustomPolicyApi.php and 4 other locations - About 1 day to fix
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 181..211
src/Sell/Marketing/V1/Api/AdApi.php on lines 4184..4214
src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1563..1593
src/Sell/Marketing/V1/Api/KeywordApi.php on lines 1546..1576

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

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

    public function updateBidWithHttpInfo($ad_id, $campaign_id, $update_bid_percentage_request)
    {
        $request = $this->updateBidRequest($ad_id, $campaign_id, $update_bid_percentage_request);

        try {
Severity: Major
Found in src/Sell/Marketing/V1/Api/AdApi.php and 4 other locations - About 1 day to fix
src/Sell/Account/V1/Api/CustomPolicyApi.php on lines 966..996
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 181..211
src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1563..1593
src/Sell/Marketing/V1/Api/KeywordApi.php on lines 1546..1576

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

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

    public function createOrReplaceSalesTaxWithHttpInfo($country_code, $jurisdiction_id, $sales_tax_base)
    {
        $request = $this->createOrReplaceSalesTaxRequest($country_code, $jurisdiction_id, $sales_tax_base);

        try {
Severity: Major
Found in src/Sell/Account/V1/Api/SalesTaxApi.php and 4 other locations - About 1 day to fix
src/Sell/Account/V1/Api/CustomPolicyApi.php on lines 966..996
src/Sell/Marketing/V1/Api/AdApi.php on lines 4184..4214
src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1563..1593
src/Sell/Marketing/V1/Api/KeywordApi.php on lines 1546..1576

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

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

    public function updateInventoryLocationWithHttpInfo($merchant_location_key, $inventory_location)
    {
        $request = $this->updateInventoryLocationRequest($merchant_location_key, $inventory_location);

        try {
Severity: Major
Found in src/Sell/Inventory/V1/Api/LocationApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 185..215
src/Sell/Account/V1/Api/LocationApi.php on lines 1746..1776
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 414..444
src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 179..209
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1903..1933
src/Sell/Inventory/V1/Api/LocationApi.php on lines 179..209
src/Sell/Marketing/V1/Api/AdApi.php on lines 2829..2859
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2887..2917
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3105..3135
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3323..3353
src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1467..1497

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

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

    public function updateNegativeKeywordWithHttpInfo($negative_keyword_id, $update_negative_keyword_request)
    {
        $request = $this->updateNegativeKeywordRequest($negative_keyword_id, $update_negative_keyword_request);

        try {
Severity: Major
Found in src/Sell/Marketing/V1/Api/NegativeKeywordApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 185..215
src/Sell/Account/V1/Api/LocationApi.php on lines 1746..1776
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 414..444
src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 179..209
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1903..1933
src/Sell/Inventory/V1/Api/LocationApi.php on lines 179..209
src/Sell/Inventory/V1/Api/LocationApi.php on lines 1584..1614
src/Sell/Marketing/V1/Api/AdApi.php on lines 2829..2859
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2887..2917
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3105..3135
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3323..3353

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

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

    public function updateAdRateStrategyWithHttpInfo($campaign_id, $update_adrate_strategy_request)
    {
        $request = $this->updateAdRateStrategyRequest($campaign_id, $update_adrate_strategy_request);

        try {
Severity: Major
Found in src/Sell/Marketing/V1/Api/CampaignApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 185..215
src/Sell/Account/V1/Api/LocationApi.php on lines 1746..1776
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 414..444
src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 179..209
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1903..1933
src/Sell/Inventory/V1/Api/LocationApi.php on lines 179..209
src/Sell/Inventory/V1/Api/LocationApi.php on lines 1584..1614
src/Sell/Marketing/V1/Api/AdApi.php on lines 2829..2859
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3105..3135
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3323..3353
src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1467..1497

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

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

    public function deleteAdWithHttpInfo($ad_id, $campaign_id)
    {
        $request = $this->deleteAdRequest($ad_id, $campaign_id);

        try {
Severity: Major
Found in src/Sell/Marketing/V1/Api/AdApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 185..215
src/Sell/Account/V1/Api/LocationApi.php on lines 1746..1776
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 414..444
src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 179..209
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1903..1933
src/Sell/Inventory/V1/Api/LocationApi.php on lines 179..209
src/Sell/Inventory/V1/Api/LocationApi.php on lines 1584..1614
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2887..2917
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3105..3135
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3323..3353
src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1467..1497

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

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

    public function createCustomerServiceMetricTaskWithHttpInfo($accept_language, $create_service_metrics_task_request)
    {
        $request = $this->createCustomerServiceMetricTaskRequest($accept_language, $create_service_metrics_task_request);

        try {
Severity: Major
Found in src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 185..215
src/Sell/Account/V1/Api/LocationApi.php on lines 1746..1776
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 414..444
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1903..1933
src/Sell/Inventory/V1/Api/LocationApi.php on lines 179..209
src/Sell/Inventory/V1/Api/LocationApi.php on lines 1584..1614
src/Sell/Marketing/V1/Api/AdApi.php on lines 2829..2859
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2887..2917
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3105..3135
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3323..3353
src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1467..1497

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

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

    public function updateCampaignIdentificationWithHttpInfo($campaign_id, $update_campaign_identification_request)
    {
        $request = $this->updateCampaignIdentificationRequest($campaign_id, $update_campaign_identification_request);

        try {
Severity: Major
Found in src/Sell/Marketing/V1/Api/CampaignApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 185..215
src/Sell/Account/V1/Api/LocationApi.php on lines 1746..1776
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 414..444
src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 179..209
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1903..1933
src/Sell/Inventory/V1/Api/LocationApi.php on lines 179..209
src/Sell/Inventory/V1/Api/LocationApi.php on lines 1584..1614
src/Sell/Marketing/V1/Api/AdApi.php on lines 2829..2859
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2887..2917
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3105..3135
src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1467..1497

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

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

    public function updateInventoryLocationWithHttpInfo($merchant_location_key, $inventory_location)
    {
        $request = $this->updateInventoryLocationRequest($merchant_location_key, $inventory_location);

        try {
Severity: Major
Found in src/Sell/Account/V1/Api/LocationApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 185..215
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 414..444
src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 179..209
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1903..1933
src/Sell/Inventory/V1/Api/LocationApi.php on lines 179..209
src/Sell/Inventory/V1/Api/LocationApi.php on lines 1584..1614
src/Sell/Marketing/V1/Api/AdApi.php on lines 2829..2859
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2887..2917
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3105..3135
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3323..3353
src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1467..1497

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

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

    public function deleteSalesTaxWithHttpInfo($country_code, $jurisdiction_id)
    {
        $request = $this->deleteSalesTaxRequest($country_code, $jurisdiction_id);

        try {
Severity: Major
Found in src/Sell/Account/V1/Api/SalesTaxApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 185..215
src/Sell/Account/V1/Api/LocationApi.php on lines 1746..1776
src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 179..209
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1903..1933
src/Sell/Inventory/V1/Api/LocationApi.php on lines 179..209
src/Sell/Inventory/V1/Api/LocationApi.php on lines 1584..1614
src/Sell/Marketing/V1/Api/AdApi.php on lines 2829..2859
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2887..2917
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3105..3135
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3323..3353
src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1467..1497

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

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

    public function createInventoryLocationWithHttpInfo($merchant_location_key, $inventory_location_full)
    {
        $request = $this->createInventoryLocationRequest($merchant_location_key, $inventory_location_full);

        try {
Severity: Major
Found in src/Sell/Account/V1/Api/LocationApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 1746..1776
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 414..444
src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 179..209
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1903..1933
src/Sell/Inventory/V1/Api/LocationApi.php on lines 179..209
src/Sell/Inventory/V1/Api/LocationApi.php on lines 1584..1614
src/Sell/Marketing/V1/Api/AdApi.php on lines 2829..2859
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2887..2917
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3105..3135
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3323..3353
src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1467..1497

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

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

    public function createInventoryLocationWithHttpInfo($merchant_location_key, $inventory_location_full)
    {
        $request = $this->createInventoryLocationRequest($merchant_location_key, $inventory_location_full);

        try {
Severity: Major
Found in src/Sell/Inventory/V1/Api/LocationApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 185..215
src/Sell/Account/V1/Api/LocationApi.php on lines 1746..1776
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 414..444
src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 179..209
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1903..1933
src/Sell/Inventory/V1/Api/LocationApi.php on lines 1584..1614
src/Sell/Marketing/V1/Api/AdApi.php on lines 2829..2859
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2887..2917
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3105..3135
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3323..3353
src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1467..1497

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

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

    public function updateCampaignBudgetWithHttpInfo($campaign_id, $update_campaign_budget_request)
    {
        $request = $this->updateCampaignBudgetRequest($campaign_id, $update_campaign_budget_request);

        try {
Severity: Major
Found in src/Sell/Marketing/V1/Api/CampaignApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 185..215
src/Sell/Account/V1/Api/LocationApi.php on lines 1746..1776
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 414..444
src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 179..209
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1903..1933
src/Sell/Inventory/V1/Api/LocationApi.php on lines 179..209
src/Sell/Inventory/V1/Api/LocationApi.php on lines 1584..1614
src/Sell/Marketing/V1/Api/AdApi.php on lines 2829..2859
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2887..2917
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3323..3353
src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1467..1497

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

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

    public function updateScheduleWithHttpInfo($schedule_id, $update_user_schedule_request)
    {
        $request = $this->updateScheduleRequest($schedule_id, $update_user_schedule_request);

        try {
Severity: Major
Found in src/Sell/Feed/V1/Api/ScheduleApi.php and 11 other locations - About 1 day to fix
src/Sell/Account/V1/Api/LocationApi.php on lines 185..215
src/Sell/Account/V1/Api/LocationApi.php on lines 1746..1776
src/Sell/Account/V1/Api/SalesTaxApi.php on lines 414..444
src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 179..209
src/Sell/Inventory/V1/Api/LocationApi.php on lines 179..209
src/Sell/Inventory/V1/Api/LocationApi.php on lines 1584..1614
src/Sell/Marketing/V1/Api/AdApi.php on lines 2829..2859
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2887..2917
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3105..3135
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 3323..3353
src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1467..1497

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

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 updateConfigWithHttpInfo($config = null)
    {
        $request = $this->updateConfigRequest($config);

        try {
Severity: Major
Found in src/Commerce/Notification/V1/Api/ConfigApi.php and 1 other location - About 1 day to fix
src/Commerce/MediaBeta/V1/Api/VideoApi.php on lines 177..207

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

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 createVideoWithHttpInfo($body = null)
    {
        $request = $this->createVideoRequest($body);

        try {
Severity: Major
Found in src/Commerce/MediaBeta/V1/Api/VideoApi.php and 1 other location - About 1 day to fix
src/Commerce/Notification/V1/Api/ConfigApi.php on lines 403..433

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

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 PromotionApi.php has 715 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Marketing/V1/Api/PromotionApi.php - About 1 day to fix

    File CustomPolicyApi.php has 708 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    /**
     * This file is part of the trollandtoad/ebay-sdk-php package.
     *
    Severity: Major
    Found in src/Sell/Account/V1/Api/CustomPolicyApi.php - About 1 day to fix

      File ShipmentApi.php has 707 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/Logistics/V1/Api/ShipmentApi.php - About 1 day to fix
        Severity
        Category
        Status
        Source
        Language