brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

    protected static $attributeMap = [
        'additional_images' => 'additionalImages',
        'adult_only' => 'adultOnly',
        'age_group' => 'ageGroup',
        'authenticity_guarantee' => 'authenticityGuarantee',
Severity: Major
Found in src/Buy/Browse/V1/Model/CoreItem.php and 3 other locations - About 1 day to fix
src/Buy/Browse/V1/Model/CoreItem.php on lines 96..165
src/Buy/Browse/V1/Model/CoreItem.php on lines 349..418
src/Buy/Browse/V1/Model/CoreItem.php on lines 425..494

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

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',
        'age_group' => 'getAgeGroup',
        'authenticity_guarantee' => 'getAuthenticityGuarantee',
Severity: Major
Found in src/Buy/Browse/V1/Model/CoreItem.php and 3 other locations - About 1 day to fix
src/Buy/Browse/V1/Model/CoreItem.php on lines 96..165
src/Buy/Browse/V1/Model/CoreItem.php on lines 273..342
src/Buy/Browse/V1/Model/CoreItem.php on lines 349..418

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

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',
        'age_group' => 'string',
        'authenticity_guarantee' => '\TNT\Ebay\Buy\Browse\V1\Model\AuthenticityGuaranteeProgram',
Severity: Major
Found in src/Buy/Browse/V1/Model/CoreItem.php and 3 other locations - About 1 day to fix
src/Buy/Browse/V1/Model/CoreItem.php on lines 273..342
src/Buy/Browse/V1/Model/CoreItem.php on lines 349..418
src/Buy/Browse/V1/Model/CoreItem.php on lines 425..494

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

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 $setters = [
        'additional_images' => 'setAdditionalImages',
        'adult_only' => 'setAdultOnly',
        'age_group' => 'setAgeGroup',
        'authenticity_guarantee' => 'setAuthenticityGuarantee',
Severity: Major
Found in src/Buy/Browse/V1/Model/CoreItem.php and 3 other locations - About 1 day to fix
src/Buy/Browse/V1/Model/CoreItem.php on lines 96..165
src/Buy/Browse/V1/Model/CoreItem.php on lines 273..342
src/Buy/Browse/V1/Model/CoreItem.php on lines 425..494

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

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

AdApi has 85 functions (exceeds 20 allowed). Consider refactoring.
Open

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

    File ShoppingCartApi.php has 698 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/Browse/V1/Api/ShoppingCartApi.php - About 1 day to fix

      File ItemPromotionApi.php has 681 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

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

        File ItemPriceMarkdownApi.php has 681 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

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

          TransactionSummaryResponse has 82 functions (exceeds 20 allowed). Consider refactoring.
          Open

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

            File SalesTaxApi.php has 677 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

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

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

                  public function searchByImageAsyncWithHttpInfo($aspect_filter = null, $category_ids = null, $charity_ids = null, $fieldgroups = null, $filter = null, $limit = null, $offset = null, $sort = null, $search_by_image_request = null)
                  {
                      $returnType = '\TNT\Ebay\Buy\Browse\V1\Model\SearchPagedCollection';
                      $request = $this->searchByImageRequest($aspect_filter, $category_ids, $charity_ids, $fieldgroups, $filter, $limit, $offset, $sort, $search_by_image_request);
              
              
              Severity: Major
              Found in src/Buy/Browse/V1/Api/SearchByImageApi.php and 1 other location - About 1 day to fix
              src/Commerce/CatalogBeta/V1/Api/ProductSummaryApi.php on lines 306..334

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

              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 searchAsyncWithHttpInfo($x_ebay_c_marketplace_id = null, $aspect_filter = null, $category_ids = null, $fieldgroups = null, $gtin = null, $limit = null, $mpn = null, $offset = null, $q = null)
                  {
                      $returnType = '\TNT\Ebay\Commerce\CatalogBeta\V1\Model\ProductSearchResponse';
                      $request = $this->searchRequest($x_ebay_c_marketplace_id, $aspect_filter, $category_ids, $fieldgroups, $gtin, $limit, $mpn, $offset, $q);
              
              
              Severity: Major
              Found in src/Commerce/CatalogBeta/V1/Api/ProductSummaryApi.php and 1 other location - About 1 day to fix
              src/Buy/Browse/V1/Api/SearchByImageApi.php on lines 306..334

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

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

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

                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/Buy/Deal/V1/HeaderSelector.php and 30 other locations - About 1 day to fix
                src/Buy/Browse/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
                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/Buy/Order/V2/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/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
                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/Buy/Feed/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/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
                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/Developer/AnalyticsBeta/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/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

                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/Buy/OfferBeta/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/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
                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/Buy/MarketplaceInsightsBeta/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/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
                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/Buy/FeedBeta/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/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
                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

                Severity
                Category
                Status
                Source
                Language