brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

              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/Deal/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

              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/FeedBeta/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

              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/MarketplaceInsightsBeta/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

              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/OfferBeta/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

              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/Feed/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

              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/MarketingBeta/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

              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/Developer/KeyManagement/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

              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/Developer/ClientRegistration/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

              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/Order/V2/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

              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/Developer/AnalyticsBeta/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

              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/Sell/Metadata/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

              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/Sell/ListingBeta/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

              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/Sell/Logistics/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