brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

    public function getOffersAsyncWithHttpInfo($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
    {
        $returnType = '\TNT\Ebay\Sell\Inventory\V1\Model\Offers';
        $request = $this->getOffersRequest($format, $limit, $marketplace_id, $offset, $sku);

Severity: Major
Found in src/Sell/Inventory/V1/Api/OfferApi.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/Fulfillment/V1/Api/OrderApi.php on lines 550..578
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

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

    public function getTransactionsAsyncWithHttpInfo($x_ebay_c_marketplace_id = null, $filter = null, $limit = null, $offset = null, $sort = null)
    {
        $returnType = '\TNT\Ebay\Sell\Finances\V1\Model\Transactions';
        $request = $this->getTransactionsRequest($x_ebay_c_marketplace_id, $filter, $limit, $offset, $sort);

Severity: Major
Found in src/Sell/Finances/V1/Api/TransactionApi.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/Fulfillment/V1/Api/OrderApi.php on lines 550..578
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

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

    public function getPayoutsAsyncWithHttpInfo($x_ebay_c_marketplace_id = null, $filter = null, $limit = null, $offset = null, $sort = null)
    {
        $returnType = '\TNT\Ebay\Sell\Finances\V1\Model\Payouts';
        $request = $this->getPayoutsRequest($x_ebay_c_marketplace_id, $filter, $limit, $offset, $sort);

Severity: Major
Found in src/Sell/Finances/V1/Api/PayoutApi.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/TransactionApi.php on lines 541..569
src/Sell/Fulfillment/V1/Api/OrderApi.php on lines 550..578
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

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

    public function getNegativeKeywordsAsyncWithHttpInfo($ad_group_ids = null, $campaign_ids = null, $limit = null, $negative_keyword_status = null, $offset = null)
    {
        $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\NegativeKeywordPagedCollectionResponse';
        $request = $this->getNegativeKeywordsRequest($ad_group_ids, $campaign_ids, $limit, $negative_keyword_status, $offset);

Severity: Major
Found in src/Sell/Marketing/V1/Api/NegativeKeywordApi.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/Fulfillment/V1/Api/OrderApi.php on lines 550..578
src/Sell/Inventory/V1/Api/OfferApi.php on lines 1716..1744

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

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

    public function getCustomerServiceMetricTasksAsyncWithHttpInfo($date_range = null, $feed_type = null, $limit = null, $look_back_days = null, $offset = null)
    {
        $returnType = '\TNT\Ebay\Sell\Feed\V1\Model\CustomerServiceMetricTaskCollection';
        $request = $this->getCustomerServiceMetricTasksRequest($date_range, $feed_type, $limit, $look_back_days, $offset);

Severity: Major
Found in src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php and 5 other locations - About 1 day to fix
src/Sell/Finances/V1/Api/PayoutApi.php on lines 797..825
src/Sell/Finances/V1/Api/TransactionApi.php on lines 541..569
src/Sell/Fulfillment/V1/Api/OrderApi.php on lines 550..578
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

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

    OfferApi has 65 functions (exceeds 20 allowed). Consider refactoring.
    Open

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

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

          public function findListingRecommendationsAsyncWithHttpInfo($x_ebay_c_marketplace_id, $filter = null, $limit = null, $offset = null, $find_listing_recommendation_request = null)
          {
              $returnType = '\TNT\Ebay\Sell\Recommendation\V1\Model\PagedListingRecommendationCollection';
              $request = $this->findListingRecommendationsRequest($x_ebay_c_marketplace_id, $filter, $limit, $offset, $find_listing_recommendation_request);
      
      
      Severity: Major
      Found in src/Sell/Recommendation/V1/Api/ListingRecommendationApi.php and 2 other locations - About 1 day to fix
      src/Commerce/Charity/V1/Api/CharityOrgApi.php on lines 810..838
      src/Sell/Marketing/V1/Api/KeywordApi.php on lines 1352..1380

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

      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 getCharityOrgsAsyncWithHttpInfo($x_ebay_c_marketplace_id, $limit = null, $offset = null, $q = null, $registration_ids = null)
          {
              $returnType = '\TNT\Ebay\Commerce\Charity\V1\Model\CharitySearchResponse';
              $request = $this->getCharityOrgsRequest($x_ebay_c_marketplace_id, $limit, $offset, $q, $registration_ids);
      
      
      Severity: Major
      Found in src/Commerce/Charity/V1/Api/CharityOrgApi.php and 2 other locations - About 1 day to fix
      src/Sell/Marketing/V1/Api/KeywordApi.php on lines 1352..1380
      src/Sell/Recommendation/V1/Api/ListingRecommendationApi.php on lines 290..318

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 272.

      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 getKeywordsAsyncWithHttpInfo($campaign_id, $ad_group_ids = null, $keyword_status = null, $limit = null, $offset = null)
          {
              $returnType = '\TNT\Ebay\Sell\Marketing\V1\Model\KeywordPagedCollectionResponse';
              $request = $this->getKeywordsRequest($campaign_id, $ad_group_ids, $keyword_status, $limit, $offset);
      
      
      Severity: Major
      Found in src/Sell/Marketing/V1/Api/KeywordApi.php and 2 other locations - About 1 day to fix
      src/Commerce/Charity/V1/Api/CharityOrgApi.php on lines 810..838
      src/Sell/Recommendation/V1/Api/ListingRecommendationApi.php on lines 290..318

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 272.

      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 ProgramApi.php has 542 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/ProgramApi.php - About 1 day to fix

        DealItem has 62 functions (exceeds 20 allowed). Consider refactoring.
        Open

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

          EbayOfferDetailsWithAll has 62 functions (exceeds 20 allowed). Consider refactoring.
          Open

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

            LineItem has 62 functions (exceeds 20 allowed). Consider refactoring.
            Open

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

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

                  public function getFeedTypesAsyncWithHttpInfo($continuation_token = null, $feed_scope = null, $limit = null, $marketplace_ids = null)
                  {
                      $returnType = '\TNT\Ebay\Buy\Feed\V1\Model\FeedTypeSearchResponse';
                      $request = $this->getFeedTypesRequest($continuation_token, $feed_scope, $limit, $marketplace_ids);
              
              
              Severity: Major
              Found in src/Buy/Feed/V1/Api/FeedTypeApi.php and 1 other location - About 1 day to fix
              src/Sell/Analytics/V1/Api/TrafficReportApi.php on lines 286..314

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

              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 getTrafficReportAsyncWithHttpInfo($dimension = null, $filter = null, $metric = null, $sort = null)
                  {
                      $returnType = '\TNT\Ebay\Sell\Analytics\V1\Model\Report';
                      $request = $this->getTrafficReportRequest($dimension, $filter, $metric, $sort);
              
              
              Severity: Major
              Found in src/Sell/Analytics/V1/Api/TrafficReportApi.php and 1 other location - About 1 day to fix
              src/Buy/Feed/V1/Api/FeedTypeApi.php on lines 532..560

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

              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 OrderTaskApi.php has 538 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/OrderTaskApi.php - About 1 day to fix

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

                  File InventoryItemGroupApi.php has 538 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

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

                    File ProductCompatibilityApi.php has 538 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    
                    /**
                     * This file is part of the trollandtoad/ebay-sdk-php package.
                     *
                    Severity: Major
                    Found in src/Sell/Inventory/V1/Api/ProductCompatibilityApi.php - About 1 day to fix
                      Severity
                      Category
                      Status
                      Source
                      Language