brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

OrderSearchPagedCollection has 32 functions (exceeds 20 allowed). Consider refactoring.
Open

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

    /**
Severity: Minor
Found in src/Sell/Fulfillment/V1/Model/OrderSearchPagedCollection.php - About 4 hrs to fix

    PricingSummary has 32 functions (exceeds 20 allowed). Consider refactoring.
    Open

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

      DisputeEvidence has 32 functions (exceeds 20 allowed). Consider refactoring.
      Open

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

        ProductSearchResponse has 32 functions (exceeds 20 allowed). Consider refactoring.
        Open

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

          CharityOrg has 32 functions (exceeds 20 allowed). Consider refactoring.
          Open

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

            File PromotionReportDetail.php has 333 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/PromotionReportDetail.php - About 4 hrs to fix

              File ConfigApi.php has 333 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/Notification/V1/Api/ConfigApi.php - About 4 hrs to fix

                File Product.php has 333 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/CatalogBeta/V1/Model/Product.php - About 4 hrs to fix

                  Method getItemFeedRequest has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function getItemFeedRequest($accept, $x_ebay_c_marketplace_id, $range, $feed_scope, $category_id, $date = null)
                      {
                          // 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 getItemFeed');
                  Severity: Major
                  Found in src/Buy/FeedBeta/V1/Api/ItemApi.php - About 3 hrs to fix

                    Method getEventItemsRequest has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      Function createShippingQuoteRequest has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function createShippingQuoteRequest($x_ebay_c_marketplace_id, $shipping_quote_request)
                          {
                              // 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 createShippingQuote');
                      Severity: Minor
                      Found in src/Sell/Logistics/V1/Api/ShippingQuoteApi.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 getCustomerServiceMetricRequest has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function getCustomerServiceMetricRequest($customer_service_metric_type, $evaluation_marketplace_id, $evaluation_type)
                          {
                              // Verify the required parameter 'customer_service_metric_type' is set.
                              if ($customer_service_metric_type === null || (\is_array($customer_service_metric_type) && count($customer_service_metric_type) === 0)) {
                                  throw new \InvalidArgumentException('Missing the required parameter $customer_service_metric_type when calling getCustomerServiceMetric');
                      Severity: Minor
                      Found in src/Sell/Analytics/V1/Api/CustomerServiceMetricApi.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 getAdsByInventoryReferenceRequest has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function getAdsByInventoryReferenceRequest($campaign_id, $inventory_reference_id, $inventory_reference_type)
                          {
                              // 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 getAdsByInventoryReference');
                      Severity: Minor
                      Found in src/Sell/Marketing/V1/Api/AdApi.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 uploadFileRequest has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function uploadFileRequest($task_id, $creation_date = null, $file_name = null, $modification_date = null, $name = null, $read_date = null, $size = null, $type = null)
                          {
                              // Verify the required parameter 'task_id' is set.
                              if ($task_id === null || (\is_array($task_id) && count($task_id) === 0)) {
                                  throw new \InvalidArgumentException('Missing the required parameter $task_id when calling uploadFile');
                      Severity: Minor
                      Found in src/Sell/Feed/V1/Api/TaskApi.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 createInventoryLocationRequest has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function createInventoryLocationRequest($merchant_location_key, $inventory_location_full)
                          {
                              // Verify the required parameter 'merchant_location_key' is set.
                              if ($merchant_location_key === null || (\is_array($merchant_location_key) && count($merchant_location_key) === 0)) {
                                  throw new \InvalidArgumentException('Missing the required parameter $merchant_location_key when calling createInventoryLocation');
                      Severity: Minor
                      Found in src/Sell/Inventory/V1/Api/LocationApi.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 updateInventoryLocationRequest has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function updateInventoryLocationRequest($merchant_location_key, $inventory_location)
                          {
                              // Verify the required parameter 'merchant_location_key' is set.
                              if ($merchant_location_key === null || (\is_array($merchant_location_key) && count($merchant_location_key) === 0)) {
                                  throw new \InvalidArgumentException('Missing the required parameter $merchant_location_key when calling updateInventoryLocation');
                      Severity: Minor
                      Found in src/Sell/Inventory/V1/Api/LocationApi.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 updateScheduleRequest has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function updateScheduleRequest($schedule_id, $update_user_schedule_request)
                          {
                              // Verify the required parameter 'schedule_id' is set.
                              if ($schedule_id === null || (\is_array($schedule_id) && count($schedule_id) === 0)) {
                                  throw new \InvalidArgumentException('Missing the required parameter $schedule_id when calling updateSchedule');
                      Severity: Minor
                      Found in src/Sell/Feed/V1/Api/ScheduleApi.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 createCustomerServiceMetricTaskRequest has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function createCustomerServiceMetricTaskRequest($accept_language, $create_service_metrics_task_request)
                          {
                              // Verify the required parameter 'accept_language' is set.
                              if ($accept_language === null || (\is_array($accept_language) && count($accept_language) === 0)) {
                                  throw new \InvalidArgumentException('Missing the required parameter $accept_language when calling createCustomerServiceMetricTask');
                      Severity: Minor
                      Found in src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.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 createOfferRequest has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function createOfferRequest($content_language, $ebay_offer_details_with_keys)
                          {
                              // Verify the required parameter 'content_language' is set.
                              if ($content_language === null || (\is_array($content_language) && count($content_language) === 0)) {
                                  throw new \InvalidArgumentException('Missing the required parameter $content_language when calling createOffer');
                      Severity: Minor
                      Found in src/Sell/Inventory/V1/Api/OfferApi.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 createShippingFulfillmentRequest has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function createShippingFulfillmentRequest($order_id, $shipping_fulfillment_details)
                          {
                              // Verify the required parameter 'order_id' is set.
                              if ($order_id === null || (\is_array($order_id) && count($order_id) === 0)) {
                                  throw new \InvalidArgumentException('Missing the required parameter $order_id when calling createShippingFulfillment');
                      Severity: Minor
                      Found in src/Sell/Fulfillment/V1/Api/ShippingFulfillmentApi.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