brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

    public function placeProxyBidAsyncWithHttpInfo($item_id, $x_ebay_c_marketplace_id, $place_proxy_bid_request = null)
    {
        $returnType = '\TNT\Ebay\Buy\OfferBeta\V1\Model\PlaceProxyBidResponse';
        $request = $this->placeProxyBidRequest($item_id, $x_ebay_c_marketplace_id, $place_proxy_bid_request);

Severity: Major
Found in src/Buy/OfferBeta/V1/Api/BiddingApi.php and 8 other locations - About 7 hrs to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 282..310
src/Buy/Feed/V1/Api/FileApi.php on lines 302..330
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 282..310
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1075..1103
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1346..1374
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1617..1645
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1888..1916
src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1386..1414

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

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

    public function updateGuestQuantityAsyncWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity = null)
    {
        $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
        $request = $this->updateGuestQuantityRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity);

Severity: Major
Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 8 other locations - About 7 hrs to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 282..310
src/Buy/Feed/V1/Api/FileApi.php on lines 302..330
src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 542..570
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 282..310
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1075..1103
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1617..1645
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1888..1916
src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1386..1414

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

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

    public function applyGuestCouponAsyncWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
    {
        $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
        $request = $this->applyGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);

Severity: Major
Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 8 other locations - About 7 hrs to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 282..310
src/Buy/Feed/V1/Api/FileApi.php on lines 302..330
src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 542..570
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1075..1103
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1346..1374
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1617..1645
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1888..1916
src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1386..1414

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

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

    public function removeGuestCouponAsyncWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
    {
        $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
        $request = $this->removeGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);

Severity: Major
Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 8 other locations - About 7 hrs to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 282..310
src/Buy/Feed/V1/Api/FileApi.php on lines 302..330
src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 542..570
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 282..310
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1346..1374
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1617..1645
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1888..1916
src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1386..1414

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

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

    public function updateGuestShippingOptionAsyncWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option = null)
    {
        $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
        $request = $this->updateGuestShippingOptionRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option);

Severity: Major
Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 8 other locations - About 7 hrs to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 282..310
src/Buy/Feed/V1/Api/FileApi.php on lines 302..330
src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 542..570
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 282..310
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1075..1103
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1346..1374
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1617..1645
src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1386..1414

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

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

    public function checkCompatibilityAsyncWithHttpInfo($item_id, $x_ebay_c_marketplace_id, $compatibility_payload = null)
    {
        $returnType = '\TNT\Ebay\Buy\Browse\V1\Model\CompatibilityResponse';
        $request = $this->checkCompatibilityRequest($item_id, $x_ebay_c_marketplace_id, $compatibility_payload);

Severity: Major
Found in src/Buy/Browse/V1/Api/ItemApi.php and 8 other locations - About 7 hrs to fix
src/Buy/Feed/V1/Api/FileApi.php on lines 302..330
src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 542..570
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 282..310
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1075..1103
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1346..1374
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1617..1645
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1888..1916
src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1386..1414

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

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

EventItem has 54 functions (exceeds 20 allowed). Consider refactoring.
Open

class EventItem implements ModelInterface, \ArrayAccess, \JsonSerializable
{
    public const DISCRIMINATOR = null;

    /**
Severity: Major
Found in src/Buy/Deal/V1/Model/EventItem.php - About 7 hrs to fix

    Transaction has 54 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Transaction implements ModelInterface, \ArrayAccess, \JsonSerializable
    {
        public const DISCRIMINATOR = null;
    
        /**
    Severity: Major
    Found in src/Sell/Finances/V1/Model/Transaction.php - About 7 hrs to fix

      PaymentDispute has 54 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class PaymentDispute implements ModelInterface, \ArrayAccess, \JsonSerializable
      {
          public const DISCRIMINATOR = null;
      
          /**
      Severity: Major
      Found in src/Sell/Fulfillment/V1/Model/PaymentDispute.php - About 7 hrs to fix

        File VideoApi.php has 477 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        /**
         * This file is part of the trollandtoad/ebay-sdk-php package.
         *
        Severity: Minor
        Found in src/Commerce/MediaBeta/V1/Api/VideoApi.php - About 7 hrs to fix

          OrderLineItemV2 has 50 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class OrderLineItemV2 implements ModelInterface, \ArrayAccess, \JsonSerializable
          {
              public const DISCRIMINATOR = null;
          
              /**
          Severity: Minor
          Found in src/Buy/Order/V2/Model/OrderLineItemV2.php - About 7 hrs to fix

            EbayOfferDetailsWithId has 50 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class EbayOfferDetailsWithId implements ModelInterface, \ArrayAccess, \JsonSerializable
            {
                public const DISCRIMINATOR = null;
            
                /**
            Severity: Minor
            Found in src/Sell/Inventory/V1/Model/EbayOfferDetailsWithId.php - About 7 hrs to fix

              PaymentDisputeApi has 50 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class PaymentDisputeApi
              {
                  /**
                   * @var ClientInterface
                   */
              Severity: Minor
              Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 7 hrs to fix

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

                    protected static $setters = [
                        'additional_images' => 'setAdditionalImages',
                        'adult_only' => 'setAdultOnly',
                        'available_coupons' => 'setAvailableCoupons',
                        'bid_count' => 'setBidCount',
                Severity: Major
                Found in src/Buy/Browse/V1/Model/ItemSummary.php and 3 other locations - About 6 hrs to fix
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 96..140
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 223..267
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 325..369

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

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

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

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

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

                Refactorings

                Further Reading

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

                    protected static $getters = [
                        'additional_images' => 'getAdditionalImages',
                        'adult_only' => 'getAdultOnly',
                        'available_coupons' => 'getAvailableCoupons',
                        'bid_count' => 'getBidCount',
                Severity: Major
                Found in src/Buy/Browse/V1/Model/ItemSummary.php and 3 other locations - About 6 hrs to fix
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 96..140
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 223..267
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 274..318

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

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

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

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

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

                Refactorings

                Further Reading

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

                    protected static $openAPITypes = [
                        'additional_images' => '\TNT\Ebay\Buy\Browse\V1\Model\Image[]',
                        'adult_only' => 'bool',
                        'available_coupons' => 'bool',
                        'bid_count' => 'int',
                Severity: Major
                Found in src/Buy/Browse/V1/Model/ItemSummary.php and 3 other locations - About 6 hrs to fix
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 223..267
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 274..318
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 325..369

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

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

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

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

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

                Refactorings

                Further Reading

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

                    protected static $attributeMap = [
                        'additional_images' => 'additionalImages',
                        'adult_only' => 'adultOnly',
                        'available_coupons' => 'availableCoupons',
                        'bid_count' => 'bidCount',
                Severity: Major
                Found in src/Buy/Browse/V1/Model/ItemSummary.php and 3 other locations - About 6 hrs to fix
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 96..140
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 274..318
                src/Buy/Browse/V1/Model/ItemSummary.php on lines 325..369

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

                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

                PromotionReportDetail has 48 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class PromotionReportDetail implements ModelInterface, \ArrayAccess, \JsonSerializable
                {
                    public const DISCRIMINATOR = null;
                
                    /**
                Severity: Minor
                Found in src/Sell/Marketing/V1/Model/PromotionReportDetail.php - About 6 hrs to fix

                  Product has 48 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class Product implements ModelInterface, \ArrayAccess, \JsonSerializable
                  {
                      public const DISCRIMINATOR = null;
                  
                      /**
                  Severity: Minor
                  Found in src/Commerce/CatalogBeta/V1/Model/Product.php - About 6 hrs to fix

                    File DealItem.php has 438 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    
                    /**
                     * This file is part of the trollandtoad/ebay-sdk-php package.
                     *
                    Severity: Minor
                    Found in src/Buy/Deal/V1/Model/DealItem.php - About 6 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language