brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Function acceptPaymentDisputeRequest has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
Open

    public function acceptPaymentDisputeRequest($payment_dispute_id, $accept_payment_dispute_request = null)
    {
        // Verify the required parameter 'payment_dispute_id' is set.
        if ($payment_dispute_id === null || (\is_array($payment_dispute_id) && count($payment_dispute_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $payment_dispute_id when calling acceptPaymentDispute');
Severity: Minor
Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 3 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 updateEvidenceRequest has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateEvidenceRequest($payment_dispute_id, $update_evidence_payment_dispute_request = null)
    {
        // Verify the required parameter 'payment_dispute_id' is set.
        if ($payment_dispute_id === null || (\is_array($payment_dispute_id) && count($payment_dispute_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $payment_dispute_id when calling updateEvidence');
Severity: Minor
Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 3 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 getCompatibilityPropertyValuesRequest has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCompatibilityPropertyValuesRequest($category_tree_id, $compatibility_property, $category_id, $filter = null)
    {
        // Verify the required parameter 'category_tree_id' is set.
        if ($category_tree_id === null || (\is_array($category_tree_id) && count($category_tree_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $category_tree_id when calling getCompatibilityPropertyValues');
Severity: Minor
Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.php - About 3 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

Method getItemSnapshotFeedRequest has 92 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getItemSnapshotFeedRequest($accept, $x_ebay_c_marketplace_id, $range, $category_id, $snapshot_date)
    {
        // Verify the required parameter 'accept' is set.
        if ($accept === null || (\is_array($accept) && count($accept) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $accept when calling getItemSnapshotFeed');
Severity: Major
Found in src/Buy/FeedBeta/V1/Api/ItemSnapshotApi.php - About 3 hrs to fix

    Method getItemPriorityFeedRequest has 92 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getItemPriorityFeedRequest($accept, $x_ebay_c_marketplace_id, $range, $category_id, $date)
        {
            // Verify the required parameter 'accept' is set.
            if ($accept === null || (\is_array($accept) && count($accept) === 0)) {
                throw new \InvalidArgumentException('Missing the required parameter $accept when calling getItemPriorityFeed');
    Severity: Major
    Found in src/Buy/FeedBeta/V1/Api/ItemPriorityApi.php - About 3 hrs to fix

      Method getNegativeKeywordsRequest has 92 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getNegativeKeywordsRequest($ad_group_ids = null, $campaign_ids = null, $limit = null, $negative_keyword_status = null, $offset = null)
          {
              $resourcePath = '/negative_keyword';
              $formParams = [];
              $queryParams = [];
      Severity: Major
      Found in src/Sell/Marketing/V1/Api/NegativeKeywordApi.php - About 3 hrs to fix

        ItemLocationImpl has 30 functions (exceeds 20 allowed). Consider refactoring.
        Open

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

          Address has 30 functions (exceeds 20 allowed). Consider refactoring.
          Open

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

            ItemApi has 30 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class ItemApi
            {
                /**
                 * @var ClientInterface
                 */
            Severity: Minor
            Found in src/Buy/Browse/V1/Api/ItemApi.php - About 3 hrs to fix

              EventItemSearchResponse has 30 functions (exceeds 20 allowed). Consider refactoring.
              Open

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

                EventSearchResponse has 30 functions (exceeds 20 allowed). Consider refactoring.
                Open

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

                  ItemGroup has 30 functions (exceeds 20 allowed). Consider refactoring.
                  Open

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

                    DealItemSearchResponse has 30 functions (exceeds 20 allowed). Consider refactoring.
                    Open

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

                      ItemLocation has 30 functions (exceeds 20 allowed). Consider refactoring.
                      Open

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

                        SigningKey has 30 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class SigningKey implements ModelInterface, \ArrayAccess, \JsonSerializable
                        {
                            public const DISCRIMINATOR = null;
                        
                            /**
                        Severity: Minor
                        Found in src/Developer/KeyManagement/V1/Model/SigningKey.php - About 3 hrs to fix

                          ContactAddress has 30 functions (exceeds 20 allowed). Consider refactoring.
                          Open

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

                            Report has 30 functions (exceeds 20 allowed). Consider refactoring.
                            Open

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

                              Transactions has 30 functions (exceeds 20 allowed). Consider refactoring.
                              Open

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

                                Payouts has 30 functions (exceeds 20 allowed). Consider refactoring.
                                Open

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

                                  CreateCampaignRequest has 30 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

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