brandon14/ebay-sdk-php

View on GitHub

Showing 2,539 of 3,709 total issues

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

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/Buy/Browse/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/Buy/Deal/V1/ObjectSerializer.php - About 3 hrs to fix

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

          public function getItemGroupFeedRequest($accept, $x_ebay_c_marketplace_id, $feed_scope, $category_id, $range = null, $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 getItemGroupFeed');
      Severity: Major
      Found in src/Buy/FeedBeta/V1/Api/ItemGroupApi.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/Buy/MarketplaceInsightsBeta/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/Buy/FeedBeta/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/Buy/Feed/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/Buy/OfferBeta/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/Buy/MarketingBeta/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/Developer/AnalyticsBeta/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/Developer/ClientRegistration/V1/ObjectSerializer.php - About 3 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language