brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

    public function findEligibleItemsWithHttpInfo($x_ebay_c_marketplace_id, $limit = null, $offset = null)
    {
        $request = $this->findEligibleItemsRequest($x_ebay_c_marketplace_id, $limit, $offset);

        try {
Severity: Major
Found in src/Sell/Negotiation/V1/Api/OfferApi.php and 5 other locations - About 2 days to fix
src/Buy/Deal/V1/Api/EventApi.php on lines 443..508
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 714..779
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1363..1428
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1635..1700
src/Sell/ListingBeta/V1/Api/ItemDraftApi.php on lines 183..248

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

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

    public function getSchedulesWithHttpInfo($feed_type, $limit = null, $offset = null)
    {
        $request = $this->getSchedulesRequest($feed_type, $limit, $offset);

        try {
Severity: Major
Found in src/Sell/Feed/V1/Api/ScheduleApi.php and 5 other locations - About 2 days to fix
src/Buy/Deal/V1/Api/EventApi.php on lines 443..508
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 714..779
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1363..1428
src/Sell/ListingBeta/V1/Api/ItemDraftApi.php on lines 183..248
src/Sell/Negotiation/V1/Api/OfferApi.php on lines 183..248

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

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

    public function getScheduleTemplatesWithHttpInfo($feed_type, $limit = null, $offset = null)
    {
        $request = $this->getScheduleTemplatesRequest($feed_type, $limit, $offset);

        try {
Severity: Major
Found in src/Sell/Feed/V1/Api/ScheduleApi.php and 5 other locations - About 2 days to fix
src/Buy/Deal/V1/Api/EventApi.php on lines 443..508
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 714..779
src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1635..1700
src/Sell/ListingBeta/V1/Api/ItemDraftApi.php on lines 183..248
src/Sell/Negotiation/V1/Api/OfferApi.php on lines 183..248

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

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 LocationApi.php has 1096 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/Inventory/V1/Api/LocationApi.php - About 2 days to fix

    File KeywordApi.php has 1095 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/KeywordApi.php - About 2 days to fix

      File MarketplaceApi.php has 1094 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/Metadata/V1/Api/MarketplaceApi.php - About 2 days to fix

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

            public function applyGuestCouponWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
            {
                $request = $this->applyGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);
        
                try {
        Severity: Major
        Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 7 other locations - About 2 days to fix
        src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
        src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 976..1041
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1247..1312
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1518..1583
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1789..1854
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

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

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

            public function suggestKeywordsWithHttpInfo($ad_group_id, $campaign_id, $targeted_keyword_request = null)
            {
                $request = $this->suggestKeywordsRequest($ad_group_id, $campaign_id, $targeted_keyword_request);
        
                try {
        Severity: Major
        Found in src/Sell/Marketing/V1/Api/AdGroupApi.php and 7 other locations - About 2 days to fix
        src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
        src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 183..248
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 976..1041
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1247..1312
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1518..1583
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1789..1854

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

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

            public function checkCompatibilityWithHttpInfo($item_id, $x_ebay_c_marketplace_id, $compatibility_payload = null)
            {
                $request = $this->checkCompatibilityRequest($item_id, $x_ebay_c_marketplace_id, $compatibility_payload);
        
                try {
        Severity: Major
        Found in src/Buy/Browse/V1/Api/ItemApi.php and 7 other locations - About 2 days to fix
        src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 183..248
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 976..1041
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1247..1312
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1518..1583
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1789..1854
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

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

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

            public function updateGuestShippingAddressWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl = null)
            {
                $request = $this->updateGuestShippingAddressRequest($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl);
        
                try {
        Severity: Major
        Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 7 other locations - About 2 days to fix
        src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
        src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 183..248
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 976..1041
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1247..1312
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1789..1854
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

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

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

            public function placeProxyBidWithHttpInfo($item_id, $x_ebay_c_marketplace_id, $place_proxy_bid_request = null)
            {
                $request = $this->placeProxyBidRequest($item_id, $x_ebay_c_marketplace_id, $place_proxy_bid_request);
        
                try {
        Severity: Major
        Found in src/Buy/OfferBeta/V1/Api/BiddingApi.php and 7 other locations - About 2 days to fix
        src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 183..248
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 976..1041
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1247..1312
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1518..1583
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1789..1854
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

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

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

            public function updateGuestQuantityWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity = null)
            {
                $request = $this->updateGuestQuantityRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity);
        
                try {
        Severity: Major
        Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 7 other locations - About 2 days to fix
        src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
        src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 183..248
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 976..1041
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1518..1583
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1789..1854
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

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

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

            public function removeGuestCouponWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
            {
                $request = $this->removeGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);
        
                try {
        Severity: Major
        Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 7 other locations - About 2 days to fix
        src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
        src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 183..248
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1247..1312
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1518..1583
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1789..1854
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

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

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

            public function updateGuestShippingOptionWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option = null)
            {
                $request = $this->updateGuestShippingOptionRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option);
        
                try {
        Severity: Major
        Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 7 other locations - About 2 days to fix
        src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
        src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 183..248
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 976..1041
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1247..1312
        src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1518..1583
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

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

        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 suggestBidsWithHttpInfo($ad_group_id, $campaign_id, $targeted_bid_request)
            {
                $request = $this->suggestBidsRequest($ad_group_id, $campaign_id, $targeted_bid_request);
        
                try {
        Severity: Major
        Found in src/Sell/Marketing/V1/Api/AdGroupApi.php and 4 other locations - About 2 days to fix
        src/Sell/Analytics/V1/Api/CustomerServiceMetricApi.php on lines 183..248
        src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php on lines 960..1025
        src/Sell/Inventory/V1/Api/OfferApi.php on lines 2391..2456
        src/Sell/Marketing/V1/Api/AdApi.php on lines 3901..3966

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

        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 fetchEvidenceContentWithHttpInfo($payment_dispute_id, $evidence_id, $file_id)
            {
                $request = $this->fetchEvidenceContentRequest($payment_dispute_id, $evidence_id, $file_id);
        
                try {
        Severity: Major
        Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php and 4 other locations - About 2 days to fix
        src/Sell/Analytics/V1/Api/CustomerServiceMetricApi.php on lines 183..248
        src/Sell/Inventory/V1/Api/OfferApi.php on lines 2391..2456
        src/Sell/Marketing/V1/Api/AdApi.php on lines 3901..3966
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1005..1070

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

        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 getAdsByInventoryReferenceWithHttpInfo($campaign_id, $inventory_reference_id, $inventory_reference_type)
            {
                $request = $this->getAdsByInventoryReferenceRequest($campaign_id, $inventory_reference_id, $inventory_reference_type);
        
                try {
        Severity: Major
        Found in src/Sell/Marketing/V1/Api/AdApi.php and 4 other locations - About 2 days to fix
        src/Sell/Analytics/V1/Api/CustomerServiceMetricApi.php on lines 183..248
        src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php on lines 960..1025
        src/Sell/Inventory/V1/Api/OfferApi.php on lines 2391..2456
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1005..1070

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

        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 getCustomerServiceMetricWithHttpInfo($customer_service_metric_type, $evaluation_marketplace_id, $evaluation_type)
            {
                $request = $this->getCustomerServiceMetricRequest($customer_service_metric_type, $evaluation_marketplace_id, $evaluation_type);
        
                try {
        Severity: Major
        Found in src/Sell/Analytics/V1/Api/CustomerServiceMetricApi.php and 4 other locations - About 2 days to fix
        src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php on lines 960..1025
        src/Sell/Inventory/V1/Api/OfferApi.php on lines 2391..2456
        src/Sell/Marketing/V1/Api/AdApi.php on lines 3901..3966
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1005..1070

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

        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 updateOfferWithHttpInfo($content_language, $offer_id, $ebay_offer_details_with_id)
            {
                $request = $this->updateOfferRequest($content_language, $offer_id, $ebay_offer_details_with_id);
        
                try {
        Severity: Major
        Found in src/Sell/Inventory/V1/Api/OfferApi.php and 4 other locations - About 2 days to fix
        src/Sell/Analytics/V1/Api/CustomerServiceMetricApi.php on lines 183..248
        src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php on lines 960..1025
        src/Sell/Marketing/V1/Api/AdApi.php on lines 3901..3966
        src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1005..1070

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

        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 TaskApi.php has 1048 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/Feed/V1/Api/TaskApi.php - About 2 days to fix
          Severity
          Category
          Status
          Source
          Language