brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function deserialize($data, $class, $httpHeaders = null)
    {
        if ($data === null) {
            return null;
        }
Severity: Major
Found in src/Sell/Account/V1/ObjectSerializer.php - About 3 hrs to fix

    Method getTasksRequest has 96 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getTasksRequest($date_range = null, $feed_type = null, $limit = null, $look_back_days = null, $offset = null, $schedule_id = null)
        {
            $resourcePath = '/task';
            $formParams = [];
            $queryParams = [];
    Severity: Major
    Found in src/Sell/Feed/V1/Api/TaskApi.php - About 3 hrs to fix

      Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function deserialize($data, $class, $httpHeaders = null)
          {
              if ($data === null) {
                  return null;
              }
      Severity: Major
      Found in src/Sell/Feed/V1/ObjectSerializer.php - About 3 hrs to fix

        Method getOrderTasksRequest has 96 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getOrderTasksRequest($date_range = null, $feed_type = null, $limit = null, $look_back_days = null, $offset = null, $schedule_id = null)
            {
                $resourcePath = '/order_task';
                $formParams = [];
                $queryParams = [];
        Severity: Major
        Found in src/Sell/Feed/V1/Api/OrderTaskApi.php - About 3 hrs to fix

          Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public static function deserialize($data, $class, $httpHeaders = null)
              {
                  if ($data === null) {
                      return null;
                  }
          Severity: Major
          Found in src/Sell/Inventory/V1/ObjectSerializer.php - About 3 hrs to fix

            Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function deserialize($data, $class, $httpHeaders = null)
                {
                    if ($data === null) {
                        return null;
                    }
            Severity: Major
            Found in src/Sell/Negotiation/V1/ObjectSerializer.php - About 3 hrs to fix

              Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public static function deserialize($data, $class, $httpHeaders = null)
                  {
                      if ($data === null) {
                          return null;
                      }
              Severity: Major
              Found in src/Sell/Compliance/V1/ObjectSerializer.php - About 3 hrs to fix

                Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function deserialize($data, $class, $httpHeaders = null)
                    {
                        if ($data === null) {
                            return null;
                        }
                Severity: Major
                Found in src/Sell/Recommendation/V1/ObjectSerializer.php - About 3 hrs to fix

                  Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function deserialize($data, $class, $httpHeaders = null)
                      {
                          if ($data === null) {
                              return null;
                          }
                  Severity: Major
                  Found in src/Sell/Fulfillment/V1/ObjectSerializer.php - About 3 hrs to fix

                    Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public static function deserialize($data, $class, $httpHeaders = null)
                        {
                            if ($data === null) {
                                return null;
                            }
                    Severity: Major
                    Found in src/Commerce/TranslationBeta/V1/ObjectSerializer.php - About 3 hrs to fix

                      Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public static function deserialize($data, $class, $httpHeaders = null)
                          {
                              if ($data === null) {
                                  return null;
                              }
                      Severity: Major
                      Found in src/Commerce/Notification/V1/ObjectSerializer.php - About 3 hrs to fix

                        Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static function deserialize($data, $class, $httpHeaders = null)
                            {
                                if ($data === null) {
                                    return null;
                                }
                        Severity: Major
                        Found in src/Commerce/CatalogBeta/V1/ObjectSerializer.php - About 3 hrs to fix

                          Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public static function deserialize($data, $class, $httpHeaders = null)
                              {
                                  if ($data === null) {
                                      return null;
                                  }
                          Severity: Major
                          Found in src/Commerce/MediaBeta/V1/ObjectSerializer.php - About 3 hrs to fix

                            Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public static function deserialize($data, $class, $httpHeaders = null)
                                {
                                    if ($data === null) {
                                        return null;
                                    }
                            Severity: Major
                            Found in src/Commerce/Charity/V1/ObjectSerializer.php - About 3 hrs to fix

                              Method deserialize has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public static function deserialize($data, $class, $httpHeaders = null)
                                  {
                                      if ($data === null) {
                                          return null;
                                      }
                              Severity: Major
                              Found in src/Commerce/Taxonomy/V1/ObjectSerializer.php - About 3 hrs to fix

                                Method getDealItemsRequest has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function getDealItemsRequest($x_ebay_c_marketplace_id, $category_ids = null, $commissionable = null, $delivery_country = null, $limit = null, $offset = null)
                                    {
                                        // Verify the required parameter 'x_ebay_c_marketplace_id' is set.
                                        if ($x_ebay_c_marketplace_id === null || (\is_array($x_ebay_c_marketplace_id) && count($x_ebay_c_marketplace_id) === 0)) {
                                            throw new \InvalidArgumentException('Missing the required parameter $x_ebay_c_marketplace_id when calling getDealItems');
                                Severity: Major
                                Found in src/Buy/Deal/V1/Api/DealItemApi.php - About 3 hrs to fix

                                  Method getKeywordsRequest has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getKeywordsRequest($campaign_id, $ad_group_ids = null, $keyword_status = null, $limit = null, $offset = null)
                                      {
                                          // Verify the required parameter 'campaign_id' is set.
                                          if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                                              throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling getKeywords');
                                  Severity: Major
                                  Found in src/Sell/Marketing/V1/Api/KeywordApi.php - About 3 hrs to fix

                                    Method getListingViolationsRequest has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function getListingViolationsRequest($x_ebay_c_marketplace_id, $compliance_type = null, $offset = null, $listing_id = null, $limit = null, $filter = null)
                                        {
                                            // Verify the required parameter 'x_ebay_c_marketplace_id' is set.
                                            if ($x_ebay_c_marketplace_id === null || (\is_array($x_ebay_c_marketplace_id) && count($x_ebay_c_marketplace_id) === 0)) {
                                                throw new \InvalidArgumentException('Missing the required parameter $x_ebay_c_marketplace_id when calling getListingViolations');
                                    Severity: Major
                                    Found in src/Sell/Compliance/V1/Api/ListingViolationApi.php - About 3 hrs to fix

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

                                          public function addEvidenceRequest($payment_dispute_id, $add_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 addEvidence');
                                      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 contestPaymentDisputeRequest has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                          public function contestPaymentDisputeRequest($payment_dispute_id, $contest_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 contestPaymentDispute');
                                      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

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language