brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

    public function getNegativeKeywordRequest($negative_keyword_id)
    {
        // Verify the required parameter 'negative_keyword_id' is set.
        if ($negative_keyword_id === null || (\is_array($negative_keyword_id) && count($negative_keyword_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $negative_keyword_id when calling getNegativeKeyword');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/NegativeKeywordApi.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 getAdsRequest has a Cognitive Complexity of 21 (exceeds 5 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: Minor
Found in src/Sell/Marketing/V1/Api/AdApi.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 getKeywordsRequest has a Cognitive Complexity of 21 (exceeds 5 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: Minor
Found in src/Sell/Marketing/V1/Api/KeywordApi.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 getReportRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

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

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

    public function getAdGroupsRequest($campaign_id, $ad_group_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 getAdGroups');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdGroupApi.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 deleteItemPromotionRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteItemPromotionRequest($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 deleteItemPromotion');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/ItemPromotionApi.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 getItemPromotionRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getItemPromotionRequest($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 getItemPromotion');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/ItemPromotionApi.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 createItemPriceMarkdownPromotionRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function createItemPriceMarkdownPromotionRequest($item_price_markdown = null)
    {
        $resourcePath = '/item_price_markdown';
        $formParams = [];
        $queryParams = [];
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 deleteCampaignRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteCampaignRequest($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 deleteCampaign');
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 pausePromotionRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function pausePromotionRequest($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 pausePromotion');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/PromotionApi.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 resumePromotionRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function resumePromotionRequest($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 resumePromotion');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/PromotionApi.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 getListingSetRequest has a Cognitive Complexity of 21 (exceeds 5 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: Minor
Found in src/Sell/Marketing/V1/Api/PromotionApi.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 endCampaignRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function endCampaignRequest($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 endCampaign');
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 getCampaignRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCampaignRequest($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 getCampaign');
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 suggestItemsRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function suggestItemsRequest($campaign_id, $category_ids = 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 suggestItems');
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 pauseCampaignRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

    public function pauseCampaignRequest($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 pauseCampaign');
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 deleteReportTaskRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
Open

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

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

    public function deleteItemPriceMarkdownPromotionRequest($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 deleteItemPriceMarkdownPromotion');
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

Severity
Category
Status
Source
Language