brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Function resumeCampaignRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function resumeCampaignRequest($campaign_id)
    {
        // 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 resumeCampaign');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 2 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 getItemPriceMarkdownPromotionRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getItemPriceMarkdownPromotionRequest($promotion_id)
    {
        // Verify the required parameter 'promotion_id' is set.
        if ($promotion_id === null || (\is_array($promotion_id) && count($promotion_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $promotion_id when calling getItemPriceMarkdownPromotion');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/ItemPriceMarkdownApi.php - About 2 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 deleteReturnPolicyRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteReturnPolicyRequest($return_policy_id)
    {
        // Verify the required parameter 'return_policy_id' is set.
        if ($return_policy_id === null || (\is_array($return_policy_id) && count($return_policy_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $return_policy_id when calling deleteReturnPolicy');
Severity: Minor
Found in src/Sell/Account/V1/Api/ReturnPolicyApi.php - About 2 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 deletePaymentPolicyRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function deletePaymentPolicyRequest($payment_policy_id)
    {
        // Verify the required parameter 'payment_policy_id' is set.
        if ($payment_policy_id === null || (\is_array($payment_policy_id) && count($payment_policy_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $payment_policy_id when calling deletePaymentPolicy');
Severity: Minor
Found in src/Sell/Account/V1/Api/PaymentPolicyApi.php - About 2 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 getReturnPolicyRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getReturnPolicyRequest($return_policy_id)
    {
        // Verify the required parameter 'return_policy_id' is set.
        if ($return_policy_id === null || (\is_array($return_policy_id) && count($return_policy_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $return_policy_id when calling getReturnPolicy');
Severity: Minor
Found in src/Sell/Account/V1/Api/ReturnPolicyApi.php - About 2 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 deleteFulfillmentPolicyRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteFulfillmentPolicyRequest($fulfillment_policy_id)
    {
        // Verify the required parameter 'fulfillment_policy_id' is set.
        if ($fulfillment_policy_id === null || (\is_array($fulfillment_policy_id) && count($fulfillment_policy_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $fulfillment_policy_id when calling deleteFulfillmentPolicy');
Severity: Minor
Found in src/Sell/Account/V1/Api/FulfillmentPolicyApi.php - About 2 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 getPaymentPolicyRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getPaymentPolicyRequest($payment_policy_id)
    {
        // Verify the required parameter 'payment_policy_id' is set.
        if ($payment_policy_id === null || (\is_array($payment_policy_id) && count($payment_policy_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $payment_policy_id when calling getPaymentPolicy');
Severity: Minor
Found in src/Sell/Account/V1/Api/PaymentPolicyApi.php - About 2 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 getCustomPoliciesRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCustomPoliciesRequest($x_ebay_c_marketplace_id, $policy_types = 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 getCustomPolicies');
Severity: Minor
Found in src/Sell/Account/V1/Api/CustomPolicyApi.php - About 2 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 getFulfillmentPolicyRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getFulfillmentPolicyRequest($fulfillment_policy_id)
    {
        // Verify the required parameter 'fulfillment_policy_id' is set.
        if ($fulfillment_policy_id === null || (\is_array($fulfillment_policy_id) && count($fulfillment_policy_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $fulfillment_policy_id when calling getFulfillmentPolicy');
Severity: Minor
Found in src/Sell/Account/V1/Api/FulfillmentPolicyApi.php - About 2 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 getAdvertisingEligibilityRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getAdvertisingEligibilityRequest($x_ebay_c_marketplace_id, $program_types = 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 getAdvertisingEligibility');
Severity: Minor
Found in src/Sell/Account/V1/Api/AdvertisingEligibilityApi.php - About 2 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 getDestinationRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getDestinationRequest($destination_id)
    {
        // Verify the required parameter 'destination_id' is set.
        if ($destination_id === null || (\is_array($destination_id) && count($destination_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $destination_id when calling getDestination');
Severity: Minor
Found in src/Commerce/Notification/V1/Api/DestinationApi.php - About 2 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 testRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function testRequest($subscription_id)
    {
        // Verify the required parameter 'subscription_id' is set.
        if ($subscription_id === null || (\is_array($subscription_id) && count($subscription_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $subscription_id when calling test');
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 2 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 getTopicRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getTopicRequest($topic_id)
    {
        // Verify the required parameter 'topic_id' is set.
        if ($topic_id === null || (\is_array($topic_id) && count($topic_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $topic_id when calling getTopic');
Severity: Minor
Found in src/Commerce/Notification/V1/Api/TopicApi.php - About 2 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 enableSubscriptionRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function enableSubscriptionRequest($subscription_id)
    {
        // Verify the required parameter 'subscription_id' is set.
        if ($subscription_id === null || (\is_array($subscription_id) && count($subscription_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $subscription_id when calling enableSubscription');
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 2 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 createDestinationRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function createDestinationRequest($destination_request = null)
    {
        $resourcePath = '/destination';
        $formParams = [];
        $queryParams = [];
Severity: Minor
Found in src/Commerce/Notification/V1/Api/DestinationApi.php - About 2 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 deleteDestinationRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteDestinationRequest($destination_id)
    {
        // Verify the required parameter 'destination_id' is set.
        if ($destination_id === null || (\is_array($destination_id) && count($destination_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $destination_id when calling deleteDestination');
Severity: Minor
Found in src/Commerce/Notification/V1/Api/DestinationApi.php - About 2 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 disableSubscriptionRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function disableSubscriptionRequest($subscription_id)
    {
        // Verify the required parameter 'subscription_id' is set.
        if ($subscription_id === null || (\is_array($subscription_id) && count($subscription_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $subscription_id when calling disableSubscription');
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 2 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 getProductRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getProductRequest($epid, $x_ebay_c_marketplace_id = null)
    {
        // Verify the required parameter 'epid' is set.
        if ($epid === null || (\is_array($epid) && count($epid) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $epid when calling getProduct');
Severity: Minor
Found in src/Commerce/CatalogBeta/V1/Api/ProductApi.php - About 2 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 getSubscriptionRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getSubscriptionRequest($subscription_id)
    {
        // Verify the required parameter 'subscription_id' is set.
        if ($subscription_id === null || (\is_array($subscription_id) && count($subscription_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $subscription_id when calling getSubscription');
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 2 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 deleteSubscriptionRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteSubscriptionRequest($subscription_id)
    {
        // Verify the required parameter 'subscription_id' is set.
        if ($subscription_id === null || (\is_array($subscription_id) && count($subscription_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $subscription_id when calling deleteSubscription');
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 2 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