brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Identical blocks of code found in 31 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Negotiation/V1/HeaderSelector.php and 30 other locations - About 1 day to fix
src/Buy/Browse/V1/HeaderSelector.php on lines 1..146
src/Buy/Deal/V1/HeaderSelector.php on lines 1..146
src/Buy/Feed/V1/HeaderSelector.php on lines 1..146
src/Buy/FeedBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/MarketingBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/MarketplaceInsightsBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/OfferBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/Order/V2/HeaderSelector.php on lines 1..146
src/Commerce/CatalogBeta/V1/HeaderSelector.php on lines 1..146
src/Commerce/Charity/V1/HeaderSelector.php on lines 1..146
src/Commerce/MediaBeta/V1/HeaderSelector.php on lines 1..146
src/Commerce/Notification/V1/HeaderSelector.php on lines 1..146
src/Commerce/Taxonomy/V1/HeaderSelector.php on lines 1..146
src/Commerce/TranslationBeta/V1/HeaderSelector.php on lines 1..146
src/Developer/AnalyticsBeta/V1/HeaderSelector.php on lines 1..146
src/Developer/ClientRegistration/V1/HeaderSelector.php on lines 1..146
src/Developer/KeyManagement/V1/HeaderSelector.php on lines 1..146
src/Sell/Account/V1/HeaderSelector.php on lines 1..146
src/Sell/Account/V2/HeaderSelector.php on lines 1..146
src/Sell/Analytics/V1/HeaderSelector.php on lines 1..146
src/Sell/Compliance/V1/HeaderSelector.php on lines 1..146
src/Sell/Feed/V1/HeaderSelector.php on lines 1..146
src/Sell/Finances/V1/HeaderSelector.php on lines 1..146
src/Sell/Fulfillment/V1/HeaderSelector.php on lines 1..146
src/Sell/Inventory/V1/HeaderSelector.php on lines 1..146
src/Sell/ListingBeta/V1/HeaderSelector.php on lines 1..146
src/Sell/Logistics/V1/HeaderSelector.php on lines 1..146
src/Sell/Marketing/V1/HeaderSelector.php on lines 1..146
src/Sell/Metadata/V1/HeaderSelector.php on lines 1..146
src/Sell/Recommendation/V1/HeaderSelector.php on lines 1..146

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

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

Identical blocks of code found in 31 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Recommendation/V1/HeaderSelector.php and 30 other locations - About 1 day to fix
src/Buy/Browse/V1/HeaderSelector.php on lines 1..146
src/Buy/Deal/V1/HeaderSelector.php on lines 1..146
src/Buy/Feed/V1/HeaderSelector.php on lines 1..146
src/Buy/FeedBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/MarketingBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/MarketplaceInsightsBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/OfferBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/Order/V2/HeaderSelector.php on lines 1..146
src/Commerce/CatalogBeta/V1/HeaderSelector.php on lines 1..146
src/Commerce/Charity/V1/HeaderSelector.php on lines 1..146
src/Commerce/MediaBeta/V1/HeaderSelector.php on lines 1..146
src/Commerce/Notification/V1/HeaderSelector.php on lines 1..146
src/Commerce/Taxonomy/V1/HeaderSelector.php on lines 1..146
src/Commerce/TranslationBeta/V1/HeaderSelector.php on lines 1..146
src/Developer/AnalyticsBeta/V1/HeaderSelector.php on lines 1..146
src/Developer/ClientRegistration/V1/HeaderSelector.php on lines 1..146
src/Developer/KeyManagement/V1/HeaderSelector.php on lines 1..146
src/Sell/Account/V1/HeaderSelector.php on lines 1..146
src/Sell/Account/V2/HeaderSelector.php on lines 1..146
src/Sell/Analytics/V1/HeaderSelector.php on lines 1..146
src/Sell/Compliance/V1/HeaderSelector.php on lines 1..146
src/Sell/Feed/V1/HeaderSelector.php on lines 1..146
src/Sell/Finances/V1/HeaderSelector.php on lines 1..146
src/Sell/Fulfillment/V1/HeaderSelector.php on lines 1..146
src/Sell/Inventory/V1/HeaderSelector.php on lines 1..146
src/Sell/ListingBeta/V1/HeaderSelector.php on lines 1..146
src/Sell/Logistics/V1/HeaderSelector.php on lines 1..146
src/Sell/Marketing/V1/HeaderSelector.php on lines 1..146
src/Sell/Metadata/V1/HeaderSelector.php on lines 1..146
src/Sell/Negotiation/V1/HeaderSelector.php on lines 1..146

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

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

Identical blocks of code found in 31 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Compliance/V1/HeaderSelector.php and 30 other locations - About 1 day to fix
src/Buy/Browse/V1/HeaderSelector.php on lines 1..146
src/Buy/Deal/V1/HeaderSelector.php on lines 1..146
src/Buy/Feed/V1/HeaderSelector.php on lines 1..146
src/Buy/FeedBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/MarketingBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/MarketplaceInsightsBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/OfferBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/Order/V2/HeaderSelector.php on lines 1..146
src/Commerce/CatalogBeta/V1/HeaderSelector.php on lines 1..146
src/Commerce/Charity/V1/HeaderSelector.php on lines 1..146
src/Commerce/MediaBeta/V1/HeaderSelector.php on lines 1..146
src/Commerce/Notification/V1/HeaderSelector.php on lines 1..146
src/Commerce/Taxonomy/V1/HeaderSelector.php on lines 1..146
src/Commerce/TranslationBeta/V1/HeaderSelector.php on lines 1..146
src/Developer/AnalyticsBeta/V1/HeaderSelector.php on lines 1..146
src/Developer/ClientRegistration/V1/HeaderSelector.php on lines 1..146
src/Developer/KeyManagement/V1/HeaderSelector.php on lines 1..146
src/Sell/Account/V1/HeaderSelector.php on lines 1..146
src/Sell/Account/V2/HeaderSelector.php on lines 1..146
src/Sell/Analytics/V1/HeaderSelector.php on lines 1..146
src/Sell/Feed/V1/HeaderSelector.php on lines 1..146
src/Sell/Finances/V1/HeaderSelector.php on lines 1..146
src/Sell/Fulfillment/V1/HeaderSelector.php on lines 1..146
src/Sell/Inventory/V1/HeaderSelector.php on lines 1..146
src/Sell/ListingBeta/V1/HeaderSelector.php on lines 1..146
src/Sell/Logistics/V1/HeaderSelector.php on lines 1..146
src/Sell/Marketing/V1/HeaderSelector.php on lines 1..146
src/Sell/Metadata/V1/HeaderSelector.php on lines 1..146
src/Sell/Negotiation/V1/HeaderSelector.php on lines 1..146
src/Sell/Recommendation/V1/HeaderSelector.php on lines 1..146

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

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

Identical blocks of code found in 31 locations. Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Commerce/Taxonomy/V1/HeaderSelector.php and 30 other locations - About 1 day to fix
src/Buy/Browse/V1/HeaderSelector.php on lines 1..146
src/Buy/Deal/V1/HeaderSelector.php on lines 1..146
src/Buy/Feed/V1/HeaderSelector.php on lines 1..146
src/Buy/FeedBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/MarketingBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/MarketplaceInsightsBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/OfferBeta/V1/HeaderSelector.php on lines 1..146
src/Buy/Order/V2/HeaderSelector.php on lines 1..146
src/Commerce/CatalogBeta/V1/HeaderSelector.php on lines 1..146
src/Commerce/Charity/V1/HeaderSelector.php on lines 1..146
src/Commerce/MediaBeta/V1/HeaderSelector.php on lines 1..146
src/Commerce/Notification/V1/HeaderSelector.php on lines 1..146
src/Commerce/TranslationBeta/V1/HeaderSelector.php on lines 1..146
src/Developer/AnalyticsBeta/V1/HeaderSelector.php on lines 1..146
src/Developer/ClientRegistration/V1/HeaderSelector.php on lines 1..146
src/Developer/KeyManagement/V1/HeaderSelector.php on lines 1..146
src/Sell/Account/V1/HeaderSelector.php on lines 1..146
src/Sell/Account/V2/HeaderSelector.php on lines 1..146
src/Sell/Analytics/V1/HeaderSelector.php on lines 1..146
src/Sell/Compliance/V1/HeaderSelector.php on lines 1..146
src/Sell/Feed/V1/HeaderSelector.php on lines 1..146
src/Sell/Finances/V1/HeaderSelector.php on lines 1..146
src/Sell/Fulfillment/V1/HeaderSelector.php on lines 1..146
src/Sell/Inventory/V1/HeaderSelector.php on lines 1..146
src/Sell/ListingBeta/V1/HeaderSelector.php on lines 1..146
src/Sell/Logistics/V1/HeaderSelector.php on lines 1..146
src/Sell/Marketing/V1/HeaderSelector.php on lines 1..146
src/Sell/Metadata/V1/HeaderSelector.php on lines 1..146
src/Sell/Negotiation/V1/HeaderSelector.php on lines 1..146
src/Sell/Recommendation/V1/HeaderSelector.php on lines 1..146

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

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

CampaignApi has 75 functions (exceeds 20 allowed). Consider refactoring.
Open

class CampaignApi
{
    /**
     * @var ClientInterface
     */
Severity: Major
Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 1 day to fix

    File FileApi.php has 617 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/Buy/Feed/V1/Api/FileApi.php - About 1 day to fix

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

          public function getPaymentDisputeSummariesAsyncWithHttpInfo($order_id = null, $buyer_username = null, $open_date_from = null, $open_date_to = null, $payment_dispute_status = null, $limit = null, $offset = null)
          {
              $returnType = '\TNT\Ebay\Sell\Fulfillment\V1\Model\DisputeSummaryResponse';
              $request = $this->getPaymentDisputeSummariesRequest($order_id, $buyer_username, $open_date_from, $open_date_to, $payment_dispute_status, $limit, $offset);
      
      
      Severity: Major
      Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php and 1 other location - About 1 day to fix
      src/Sell/Marketing/V1/Api/CampaignApi.php on lines 1987..2015

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

      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 getCampaignsAsyncWithHttpInfo($campaign_name = null, $campaign_status = null, $end_date_range = null, $funding_strategy = null, $limit = null, $offset = null, $start_date_range = null)
          {
              $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\CampaignPagedCollectionResponse';
              $request = $this->getCampaignsRequest($campaign_name, $campaign_status, $end_date_range, $funding_strategy, $limit, $offset, $start_date_range);
      
      
      Severity: Major
      Found in src/Sell/Marketing/V1/Api/CampaignApi.php and 1 other location - About 1 day to fix
      src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php on lines 1948..1976

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

      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 getFilesAsyncWithHttpInfo($x_ebay_c_marketplace_id, $category_ids = null, $continuation_token = null, $feed_scope = null, $feed_type_id = null, $limit = null, $look_back = null)
          {
              $returnType = '\TNT\Ebay\Buy\Feed\V1\Model\FileMetadataSearchResponse';
              $request = $this->getFilesRequest($x_ebay_c_marketplace_id, $category_ids, $continuation_token, $feed_scope, $feed_type_id, $limit, $look_back);
      
      
      Severity: Major
      Found in src/Buy/Feed/V1/Api/FileApi.php and 1 other location - About 1 day to fix
      src/Sell/Marketing/V1/Api/PromotionApi.php on lines 614..642

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

      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 getPromotionsAsyncWithHttpInfo($marketplace_id, $limit = null, $offset = null, $promotion_status = null, $promotion_type = null, $q = null, $sort = null)
          {
              $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\PromotionsPagedCollection';
              $request = $this->getPromotionsRequest($marketplace_id, $limit, $offset, $promotion_status, $promotion_type, $q, $sort);
      
      
      Severity: Major
      Found in src/Sell/Marketing/V1/Api/PromotionApi.php and 1 other location - About 1 day to fix
      src/Buy/Feed/V1/Api/FileApi.php on lines 847..875

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

      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 TransactionSummaryResponse.php has 588 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/Finances/V1/Model/TransactionSummaryResponse.php - About 1 day to fix

        File OrderApi.php has 583 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/Fulfillment/V1/Api/OrderApi.php - About 1 day to fix

          File CharityOrgApi.php has 581 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/Commerce/Charity/V1/Api/CharityOrgApi.php - About 1 day to fix

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

                public function getAdsAsyncWithHttpInfo($campaign_id, $ad_group_ids = null, $ad_status = null, $limit = null, $listing_ids = null, $offset = null)
                {
                    $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\AdPagedCollectionResponse';
                    $request = $this->getAdsRequest($campaign_id, $ad_group_ids, $ad_status, $limit, $listing_ids, $offset);
            
            
            Severity: Major
            Found in src/Sell/Marketing/V1/Api/AdApi.php and 4 other locations - About 1 day to fix
            src/Buy/Deal/V1/Api/DealItemApi.php on lines 294..322
            src/Sell/Compliance/V1/Api/ListingViolationApi.php on lines 294..322
            src/Sell/Marketing/V1/Api/PromotionApi.php on lines 294..322
            src/Sell/Marketing/V1/Api/PromotionReportApi.php on lines 294..322

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

            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 getPromotionReportsAsyncWithHttpInfo($marketplace_id, $limit = null, $offset = null, $promotion_status = null, $promotion_type = null, $q = null)
                {
                    $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\PromotionsReportPagedCollection';
                    $request = $this->getPromotionReportsRequest($marketplace_id, $limit, $offset, $promotion_status, $promotion_type, $q);
            
            
            Severity: Major
            Found in src/Sell/Marketing/V1/Api/PromotionReportApi.php and 4 other locations - About 1 day to fix
            src/Buy/Deal/V1/Api/DealItemApi.php on lines 294..322
            src/Sell/Compliance/V1/Api/ListingViolationApi.php on lines 294..322
            src/Sell/Marketing/V1/Api/AdApi.php on lines 3696..3724
            src/Sell/Marketing/V1/Api/PromotionApi.php on lines 294..322

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

            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 getDealItemsAsyncWithHttpInfo($x_ebay_c_marketplace_id, $category_ids = null, $commissionable = null, $delivery_country = null, $limit = null, $offset = null)
                {
                    $returnType = '\TNT\Ebay\Buy\Deal\V1\Model\DealItemSearchResponse';
                    $request = $this->getDealItemsRequest($x_ebay_c_marketplace_id, $category_ids, $commissionable, $delivery_country, $limit, $offset);
            
            
            Severity: Major
            Found in src/Buy/Deal/V1/Api/DealItemApi.php and 4 other locations - About 1 day to fix
            src/Sell/Compliance/V1/Api/ListingViolationApi.php on lines 294..322
            src/Sell/Marketing/V1/Api/AdApi.php on lines 3696..3724
            src/Sell/Marketing/V1/Api/PromotionApi.php on lines 294..322
            src/Sell/Marketing/V1/Api/PromotionReportApi.php on lines 294..322

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

            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 getListingSetAsyncWithHttpInfo($promotion_id, $limit = null, $offset = null, $q = null, $sort = null, $status = null)
                {
                    $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\ItemsPagedCollection';
                    $request = $this->getListingSetRequest($promotion_id, $limit, $offset, $q, $sort, $status);
            
            
            Severity: Major
            Found in src/Sell/Marketing/V1/Api/PromotionApi.php and 4 other locations - About 1 day to fix
            src/Buy/Deal/V1/Api/DealItemApi.php on lines 294..322
            src/Sell/Compliance/V1/Api/ListingViolationApi.php on lines 294..322
            src/Sell/Marketing/V1/Api/AdApi.php on lines 3696..3724
            src/Sell/Marketing/V1/Api/PromotionReportApi.php on lines 294..322

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

            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 getListingViolationsAsyncWithHttpInfo($x_ebay_c_marketplace_id, $compliance_type = null, $offset = null, $listing_id = null, $limit = null, $filter = null)
                {
                    $returnType = '\TNT\Ebay\Sell\Compliance\V1\Model\PagedComplianceViolationCollection';
                    $request = $this->getListingViolationsRequest($x_ebay_c_marketplace_id, $compliance_type, $offset, $listing_id, $limit, $filter);
            
            
            Severity: Major
            Found in src/Sell/Compliance/V1/Api/ListingViolationApi.php and 4 other locations - About 1 day to fix
            src/Buy/Deal/V1/Api/DealItemApi.php on lines 294..322
            src/Sell/Marketing/V1/Api/AdApi.php on lines 3696..3724
            src/Sell/Marketing/V1/Api/PromotionApi.php on lines 294..322
            src/Sell/Marketing/V1/Api/PromotionReportApi.php on lines 294..322

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

            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 PayoutApi.php has 569 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/Finances/V1/Api/PayoutApi.php - About 1 day to fix

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

                  public function getOrdersAsyncWithHttpInfo($field_groups = null, $filter = null, $limit = null, $offset = null, $order_ids = null)
                  {
                      $returnType = '\TNT\Ebay\Sell\Fulfillment\V1\Model\OrderSearchPagedCollection';
                      $request = $this->getOrdersRequest($field_groups, $filter, $limit, $offset, $order_ids);
              
              
              Severity: Major
              Found in src/Sell/Fulfillment/V1/Api/OrderApi.php and 5 other locations - About 1 day to fix
              src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 746..774
              src/Sell/Finances/V1/Api/PayoutApi.php on lines 797..825
              src/Sell/Finances/V1/Api/TransactionApi.php on lines 541..569
              src/Sell/Inventory/V1/Api/OfferApi.php on lines 1716..1744
              src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1281..1309

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

              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