brandon14/ebay-sdk-php

View on GitHub

Showing 2,539 of 3,709 total issues

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/Recommendation/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/Compliance/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/Negotiation/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/Commerce/TranslationBeta/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/Fulfillment/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/Commerce/Notification/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/Commerce/CatalogBeta/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/Commerce/Charity/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/Commerce/MediaBeta/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/Commerce/Taxonomy/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

ScheduleApi has 45 functions (exceeds 20 allowed). Consider refactoring.
Open

class ScheduleApi
{
    /**
     * @var ClientInterface
     */
Severity: Minor
Found in src/Sell/Feed/V1/Api/ScheduleApi.php - About 6 hrs to fix

    SubscriptionApi has 45 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class SubscriptionApi
    {
        /**
         * @var ClientInterface
         */
    Severity: Minor
    Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 6 hrs to fix

      CategoryTreeApi has 45 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class CategoryTreeApi
      {
          /**
           * @var ClientInterface
           */
      Severity: Minor
      Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.php - About 6 hrs to fix

        File ItemSales.php has 423 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/MarketplaceInsightsBeta/V1/Model/ItemSales.php - About 6 hrs to fix

          Rate has 44 functions (exceeds 20 allowed). Consider refactoring.
          Open

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

            ItemPromotion has 44 functions (exceeds 20 allowed). Consider refactoring.
            Open

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

              ReturnPolicy has 44 functions (exceeds 20 allowed). Consider refactoring.
              Open

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

                UserScheduleResponse has 44 functions (exceeds 20 allowed). Consider refactoring.
                Open

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

                  Method searchRequest has 148 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function searchRequest($aspect_filter = null, $auto_correct = null, $category_ids = null, $charity_ids = null, $compatibility_filter = null, $epid = null, $fieldgroups = null, $filter = null, $gtin = null, $limit = null, $offset = null, $q = null, $sort = null)
                      {
                          $resourcePath = '/item_summary/search';
                          $formParams = [];
                          $queryParams = [];
                  Severity: Major
                  Found in src/Buy/Browse/V1/Api/ItemSummaryApi.php - About 5 hrs to fix

                    File ReportTask.php has 408 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/Marketing/V1/Model/ReportTask.php - About 5 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language