brandon14/ebay-sdk-php

View on GitHub

Showing 2,539 of 3,709 total issues

Function bulkCreateKeywordRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function bulkCreateKeywordRequest($campaign_id, $bulk_create_keyword_request)
    {
        // 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 bulkCreateKeyword');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/KeywordApi.php - About 4 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 createAdGroupRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function createAdGroupRequest($campaign_id, $create_ad_group_request)
    {
        // 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 createAdGroup');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdGroupApi.php - About 4 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 bulkUpdateAdsStatusRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function bulkUpdateAdsStatusRequest($campaign_id, $bulk_update_ad_status_request)
    {
        // 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 bulkUpdateAdsStatus');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdApi.php - About 4 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 cloneCampaignRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function cloneCampaignRequest($campaign_id, $clone_campaign_request)
    {
        // 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 cloneCampaign');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 4 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 createKeywordRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function createKeywordRequest($campaign_id, $create_keyword_request)
    {
        // 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 createKeyword');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/KeywordApi.php - About 4 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 updateCampaignBudgetRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateCampaignBudgetRequest($campaign_id, $update_campaign_budget_request)
    {
        // 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 updateCampaignBudget');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 4 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 updateCampaignIdentificationRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateCampaignIdentificationRequest($campaign_id, $update_campaign_identification_request)
    {
        // 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 updateCampaignIdentification');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 4 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 updateReturnPolicyRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateReturnPolicyRequest($return_policy_id, $return_policy_request)
    {
        // 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 updateReturnPolicy');
Severity: Minor
Found in src/Sell/Account/V1/Api/ReturnPolicyApi.php - About 4 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 createCustomPolicyRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function createCustomPolicyRequest($x_ebay_c_marketplace_id, $custom_policy_create_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 createCustomPolicy');
Severity: Minor
Found in src/Sell/Account/V1/Api/CustomPolicyApi.php - About 4 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 updateFulfillmentPolicyRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateFulfillmentPolicyRequest($fulfillment_policy_id, $fulfillment_policy_request)
    {
        // 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 updateFulfillmentPolicy');
Severity: Minor
Found in src/Sell/Account/V1/Api/FulfillmentPolicyApi.php - About 4 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 updatePaymentPolicyRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function updatePaymentPolicyRequest($payment_policy_id, $payment_policy_request)
    {
        // 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 updatePaymentPolicy');
Severity: Minor
Found in src/Sell/Account/V1/Api/PaymentPolicyApi.php - About 4 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 fetchEvidenceContentRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function fetchEvidenceContentRequest($payment_dispute_id, $evidence_id, $file_id)
    {
        // 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 fetchEvidenceContent');
Severity: Minor
Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 4 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 getFilesRequest has 102 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getFilesRequest($x_ebay_c_marketplace_id, $category_ids = null, $continuation_token = null, $feed_scope = null, $feed_type_id = null, $limit = null, $look_back = 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 getFiles');
Severity: Major
Found in src/Buy/Feed/V1/Api/FileApi.php - About 4 hrs to fix

    Method getAdsRequest has 102 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getAdsRequest($campaign_id, $ad_group_ids = null, $ad_status = null, $limit = null, $listing_ids = 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 getAds');
    Severity: Major
    Found in src/Sell/Marketing/V1/Api/AdApi.php - About 4 hrs to fix

      Method getPromotionReportsRequest has 102 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getPromotionReportsRequest($marketplace_id, $limit = null, $offset = null, $promotion_status = null, $promotion_type = null, $q = null)
          {
              // Verify the required parameter 'marketplace_id' is set.
              if ($marketplace_id === null || (\is_array($marketplace_id) && count($marketplace_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getPromotionReports');
      Severity: Major
      Found in src/Sell/Marketing/V1/Api/PromotionReportApi.php - About 4 hrs to fix

        Method getListingSetRequest has 102 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getListingSetRequest($promotion_id, $limit = null, $offset = null, $q = null, $sort = null, $status = null)
            {
                // 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 getListingSet');
        Severity: Major
        Found in src/Sell/Marketing/V1/Api/PromotionApi.php - About 4 hrs to fix

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

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

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

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

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

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

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

                class SalesHistoryPagedCollection implements ModelInterface, \ArrayAccess, \JsonSerializable
                {
                    public const DISCRIMINATOR = null;
                
                    /**
                  Severity
                  Category
                  Status
                  Source
                  Language