brandon14/ebay-sdk-php

View on GitHub

Showing 2,539 of 3,709 total issues

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

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

    /**
Severity: Major
Found in src/Sell/Marketing/V1/Model/ReportTask.php - About 1 day to fix

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

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

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

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

        EventItem has 54 functions (exceeds 20 allowed). Consider refactoring.
        Open

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

          Transaction has 54 functions (exceeds 20 allowed). Consider refactoring.
          Open

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

            PaymentDispute has 54 functions (exceeds 20 allowed). Consider refactoring.
            Open

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

              File VideoApi.php has 477 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/Commerce/MediaBeta/V1/Api/VideoApi.php - About 7 hrs to fix

                OrderLineItemV2 has 50 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class OrderLineItemV2 implements ModelInterface, \ArrayAccess, \JsonSerializable
                {
                    public const DISCRIMINATOR = null;
                
                    /**
                Severity: Minor
                Found in src/Buy/Order/V2/Model/OrderLineItemV2.php - About 7 hrs to fix

                  EbayOfferDetailsWithId has 50 functions (exceeds 20 allowed). Consider refactoring.
                  Open

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

                    PaymentDisputeApi has 50 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class PaymentDisputeApi
                    {
                        /**
                         * @var ClientInterface
                         */
                    Severity: Minor
                    Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 7 hrs to fix

                      PromotionReportDetail has 48 functions (exceeds 20 allowed). Consider refactoring.
                      Open

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

                        Product has 48 functions (exceeds 20 allowed). Consider refactoring.
                        Open

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

                          File DealItem.php has 438 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/Buy/Deal/V1/Model/DealItem.php - About 6 hrs to fix

                            File EbayOfferDetailsWithAll.php has 438 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/Inventory/V1/Model/EbayOfferDetailsWithAll.php - About 6 hrs to fix

                              File LineItem.php has 438 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/Fulfillment/V1/Model/LineItem.php - About 6 hrs to fix

                                ShippingOption has 46 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class ShippingOption implements ModelInterface, \ArrayAccess, \JsonSerializable
                                {
                                    public const DISCRIMINATOR = null;
                                
                                    /**
                                Severity: Minor
                                Found in src/Buy/Browse/V1/Model/ShippingOption.php - About 6 hrs to fix

                                  PurchasedRate has 46 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

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

                                    ItemPromotionResponse has 46 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

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

                                      SetReturnPolicyResponse has 46 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

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

                                        Function deserialize has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                            public static function deserialize($data, $class, $httpHeaders = null)
                                            {
                                                if ($data === null) {
                                                    return null;
                                                }
                                        Severity: Minor
                                        Found in src/Buy/Browse/V1/ObjectSerializer.php - About 6 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