brandon14/ebay-sdk-php

View on GitHub

Showing 2,539 of 3,709 total issues

InventoryTask has 34 functions (exceeds 20 allowed). Consider refactoring.
Open

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

    /**
Severity: Minor
Found in src/Sell/Feed/V1/Model/InventoryTask.php - About 4 hrs to fix

    Error has 34 functions (exceeds 20 allowed). Consider refactoring.
    Open

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

      Error has 34 functions (exceeds 20 allowed). Consider refactoring.
      Open

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

        InventoryItemGroup has 34 functions (exceeds 20 allowed). Consider refactoring.
        Open

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

          InventoryItemWithSkuLocaleGroupid has 34 functions (exceeds 20 allowed). Consider refactoring.
          Open

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

            Error has 34 functions (exceeds 20 allowed). Consider refactoring.
            Open

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

              Error has 34 functions (exceeds 20 allowed). Consider refactoring.
              Open

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

                Error has 34 functions (exceeds 20 allowed). Consider refactoring.
                Open

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

                  Error has 34 functions (exceeds 20 allowed). Consider refactoring.
                  Open

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

                    ReturnAddress has 34 functions (exceeds 20 allowed). Consider refactoring.
                    Open

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

                      Error has 34 functions (exceeds 20 allowed). Consider refactoring.
                      Open

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

                        PaymentDisputeSummary has 34 functions (exceeds 20 allowed). Consider refactoring.
                        Open

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

                          Error has 34 functions (exceeds 20 allowed). Consider refactoring.
                          Open

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

                            Error has 34 functions (exceeds 20 allowed). Consider refactoring.
                            Open

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

                              Error has 34 functions (exceeds 20 allowed). Consider refactoring.
                              Open

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

                                Error has 34 functions (exceeds 20 allowed). Consider refactoring.
                                Open

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

                                  File RateTableApi.php has 347 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php
                                  
                                  /**
                                   * This file is part of the trollandtoad/ebay-sdk-php package.
                                   *
                                  Severity: Minor
                                  Found in src/Sell/Account/V2/Api/RateTableApi.php - About 4 hrs to fix

                                    Method getPaymentDisputeSummariesRequest has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function getPaymentDisputeSummariesRequest($order_id = null, $buyer_username = null, $open_date_from = null, $open_date_to = null, $payment_dispute_status = null, $limit = null, $offset = null)
                                        {
                                            $resourcePath = '/payment_dispute_summary';
                                            $formParams = [];
                                            $queryParams = [];
                                    Severity: Major
                                    Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 4 hrs to fix

                                      Function checkCompatibilityRequest has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                          public function checkCompatibilityRequest($item_id, $x_ebay_c_marketplace_id, $compatibility_payload = null)
                                          {
                                              // Verify the required parameter 'item_id' is set.
                                              if ($item_id === null || (\is_array($item_id) && count($item_id) === 0)) {
                                                  throw new \InvalidArgumentException('Missing the required parameter $item_id when calling checkCompatibility');
                                      Severity: Minor
                                      Found in src/Buy/Browse/V1/Api/ItemApi.php - About 4 hrs to fix

                                      Cognitive Complexity

                                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                      A method's cognitive complexity is based on a few simple rules:

                                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                      • Code is considered more complex for each "break in the linear flow of the code"
                                      • Code is considered more complex when "flow breaking structures are nested"

                                      Further reading

                                      Function suggestKeywordsRequest has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                          public function suggestKeywordsRequest($ad_group_id, $campaign_id, $targeted_keyword_request = null)
                                          {
                                              // Verify the required parameter 'ad_group_id' is set.
                                              if ($ad_group_id === null || (\is_array($ad_group_id) && count($ad_group_id) === 0)) {
                                                  throw new \InvalidArgumentException('Missing the required parameter $ad_group_id when calling suggestKeywords');
                                      Severity: Minor
                                      Found in src/Sell/Marketing/V1/Api/AdGroupApi.php - About 4 hrs to fix

                                      Cognitive Complexity

                                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                      A method's cognitive complexity is based on a few simple rules:

                                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                      • Code is considered more complex for each "break in the linear flow of the code"
                                      • Code is considered more complex when "flow breaking structures are nested"

                                      Further reading

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language