brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

File CustomerServiceMetricTaskApi.php has 534 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/CustomerServiceMetricTaskApi.php - About 1 day to fix

    File SigningKeyApi.php has 531 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/Developer/KeyManagement/V1/Api/SigningKeyApi.php - About 1 day to fix

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

          public function getAdGroupsAsyncWithHttpInfo($campaign_id, $ad_group_status = null, $limit = null, $offset = null)
          {
              $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\AdGroupPagedCollectionResponse';
              $request = $this->getAdGroupsRequest($campaign_id, $ad_group_status, $limit, $offset);
      
      
      Severity: Major
      Found in src/Sell/Marketing/V1/Api/AdGroupApi.php and 2 other locations - About 1 day to fix
      src/Buy/Browse/V1/Api/ItemApi.php on lines 825..853
      src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2704..2732

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

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

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

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

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

      Refactorings

      Further Reading

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

          public function suggestItemsAsyncWithHttpInfo($campaign_id, $category_ids = null, $limit = null, $offset = null)
          {
              $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\TargetedAdsPagedCollection';
              $request = $this->suggestItemsRequest($campaign_id, $category_ids, $limit, $offset);
      
      
      Severity: Major
      Found in src/Sell/Marketing/V1/Api/CampaignApi.php and 2 other locations - About 1 day to fix
      src/Buy/Browse/V1/Api/ItemApi.php on lines 825..853
      src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 818..846

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

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

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

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

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

      Refactorings

      Further Reading

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

          public function getItemByLegacyIdAsyncWithHttpInfo($legacy_item_id, $fieldgroups = null, $legacy_variation_id = null, $legacy_variation_sku = null)
          {
              $returnType = '\TNT\Ebay\Buy\Browse\V1\Model\Item';
              $request = $this->getItemByLegacyIdRequest($legacy_item_id, $fieldgroups, $legacy_variation_id, $legacy_variation_sku);
      
      
      Severity: Major
      Found in src/Buy/Browse/V1/Api/ItemApi.php and 2 other locations - About 1 day to fix
      src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 818..846
      src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2704..2732

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

      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

      ItemSales has 60 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class ItemSales implements ModelInterface, \ArrayAccess, \JsonSerializable
      {
          public const DISCRIMINATOR = null;
      
          /**
      Severity: Major
      Found in src/Buy/MarketplaceInsightsBeta/V1/Model/ItemSales.php - About 1 day to fix

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

            public function findCampaignByAdReferenceAsyncWithHttpInfo($inventory_reference_id = null, $inventory_reference_type = null, $listing_id = null)
            {
                $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\Campaigns';
                $request = $this->findCampaignByAdReferenceRequest($inventory_reference_id, $inventory_reference_type, $listing_id);
        
        
        Severity: Major
        Found in src/Sell/Marketing/V1/Api/CampaignApi.php and 1 other location - About 1 day to fix
        src/Sell/Marketing/V1/Api/AdReportTaskApi.php on lines 935..963

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

        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 getReportTasksAsyncWithHttpInfo($limit = null, $offset = null, $report_task_statuses = null)
            {
                $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\ReportTaskPagedCollection';
                $request = $this->getReportTasksRequest($limit, $offset, $report_task_statuses);
        
        
        Severity: Major
        Found in src/Sell/Marketing/V1/Api/AdReportTaskApi.php and 1 other location - About 1 day to fix
        src/Sell/Marketing/V1/Api/CampaignApi.php on lines 1200..1228

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

        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

        ReportTask has 58 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class ReportTask implements ModelInterface, \ArrayAccess, \JsonSerializable
        {
            public const DISCRIMINATOR = null;
        
            /**
        Severity: Major
        Found in src/Sell/Marketing/V1/Model/ReportTask.php - About 1 day to fix

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

              public function getEventsAsyncWithHttpInfo($x_ebay_c_marketplace_id, $limit = null, $offset = null)
              {
                  $returnType = '\TNT\Ebay\Buy\Deal\V1\Model\EventSearchResponse';
                  $request = $this->getEventsRequest($x_ebay_c_marketplace_id, $limit, $offset);
          
          
          Severity: Major
          Found in src/Buy/Deal/V1/Api/EventApi.php and 5 other locations - About 1 day to fix
          src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 813..841
          src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1462..1490
          src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1734..1762
          src/Sell/ListingBeta/V1/Api/ItemDraftApi.php on lines 282..310
          src/Sell/Negotiation/V1/Api/OfferApi.php on lines 282..310

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

          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 initiateGuestCheckoutSessionAsyncWithHttpInfo($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx = null, $create_guest_checkout_session_request_v2 = null)
              {
                  $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
                  $request = $this->initiateGuestCheckoutSessionRequest($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx, $create_guest_checkout_session_request_v2);
          
          
          Severity: Major
          Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 1 day to fix
          src/Buy/Deal/V1/Api/EventApi.php on lines 542..570
          src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1462..1490
          src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1734..1762
          src/Sell/ListingBeta/V1/Api/ItemDraftApi.php on lines 282..310
          src/Sell/Negotiation/V1/Api/OfferApi.php on lines 282..310

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

          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 getScheduleTemplatesAsyncWithHttpInfo($feed_type, $limit = null, $offset = null)
              {
                  $returnType = '\TNT\Ebay\Sell\Feed\V1\Model\ScheduleTemplateCollection';
                  $request = $this->getScheduleTemplatesRequest($feed_type, $limit, $offset);
          
          
          Severity: Major
          Found in src/Sell/Feed/V1/Api/ScheduleApi.php and 5 other locations - About 1 day to fix
          src/Buy/Deal/V1/Api/EventApi.php on lines 542..570
          src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 813..841
          src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1734..1762
          src/Sell/ListingBeta/V1/Api/ItemDraftApi.php on lines 282..310
          src/Sell/Negotiation/V1/Api/OfferApi.php on lines 282..310

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

          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 getSchedulesAsyncWithHttpInfo($feed_type, $limit = null, $offset = null)
              {
                  $returnType = '\TNT\Ebay\Sell\Feed\V1\Model\UserScheduleCollection';
                  $request = $this->getSchedulesRequest($feed_type, $limit, $offset);
          
          
          Severity: Major
          Found in src/Sell/Feed/V1/Api/ScheduleApi.php and 5 other locations - About 1 day to fix
          src/Buy/Deal/V1/Api/EventApi.php on lines 542..570
          src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 813..841
          src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1462..1490
          src/Sell/ListingBeta/V1/Api/ItemDraftApi.php on lines 282..310
          src/Sell/Negotiation/V1/Api/OfferApi.php on lines 282..310

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

          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 findEligibleItemsAsyncWithHttpInfo($x_ebay_c_marketplace_id, $limit = null, $offset = null)
              {
                  $returnType = '\TNT\Ebay\Sell\Negotiation\V1\Model\PagedEligibleItemCollection';
                  $request = $this->findEligibleItemsRequest($x_ebay_c_marketplace_id, $limit, $offset);
          
          
          Severity: Major
          Found in src/Sell/Negotiation/V1/Api/OfferApi.php and 5 other locations - About 1 day to fix
          src/Buy/Deal/V1/Api/EventApi.php on lines 542..570
          src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 813..841
          src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1462..1490
          src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1734..1762
          src/Sell/ListingBeta/V1/Api/ItemDraftApi.php on lines 282..310

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

          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 createItemDraftAsyncWithHttpInfo($x_ebay_c_marketplace_id, $content_language = null, $item_draft = null)
              {
                  $returnType = '\TNT\Ebay\Sell\ListingBeta\V1\Model\ItemDraftResponse';
                  $request = $this->createItemDraftRequest($x_ebay_c_marketplace_id, $content_language, $item_draft);
          
          
          Severity: Major
          Found in src/Sell/ListingBeta/V1/Api/ItemDraftApi.php and 5 other locations - About 1 day to fix
          src/Buy/Deal/V1/Api/EventApi.php on lines 542..570
          src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 813..841
          src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1462..1490
          src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1734..1762
          src/Sell/Negotiation/V1/Api/OfferApi.php on lines 282..310

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

          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

          EbayOfferDetailsWithKeys has 56 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class EbayOfferDetailsWithKeys implements ModelInterface, \ArrayAccess, \JsonSerializable
          {
              public const DISCRIMINATOR = null;
          
              /**
          Severity: Major
          Found in src/Sell/Inventory/V1/Model/EbayOfferDetailsWithKeys.php - About 1 day to fix

            Order has 56 functions (exceeds 20 allowed). Consider refactoring.
            Open

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

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

                  public function downloadFileAsyncWithHttpInfo($file_id, $x_ebay_c_marketplace_id, $range = null)
                  {
                      $returnType = 'object';
                      $request = $this->downloadFileRequest($file_id, $x_ebay_c_marketplace_id, $range);
              
              
              Severity: Major
              Found in src/Buy/Feed/V1/Api/FileApi.php and 8 other locations - About 7 hrs to fix
              src/Buy/Browse/V1/Api/ItemApi.php on lines 282..310
              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

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

                  public function updateGuestShippingAddressAsyncWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl = null)
                  {
                      $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
                      $request = $this->updateGuestShippingAddressRequest($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl);
              
              
              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 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 suggestKeywordsAsyncWithHttpInfo($ad_group_id, $campaign_id, $targeted_keyword_request = null)
                  {
                      $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\TargetedKeywordsPagedCollection';
                      $request = $this->suggestKeywordsRequest($ad_group_id, $campaign_id, $targeted_keyword_request);
              
              
              Severity: Major
              Found in src/Sell/Marketing/V1/Api/AdGroupApi.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/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1888..1916

              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

              Severity
              Category
              Status
              Source
              Language