brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Function bulkUpdateAdsStatusWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function bulkUpdateAdsStatusWithHttpInfo($campaign_id, $bulk_update_ad_status_request)
    {
        $request = $this->bulkUpdateAdsStatusRequest($campaign_id, $bulk_update_ad_status_request);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdApi.php - About 1 hr 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 createKeywordWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function createKeywordWithHttpInfo($campaign_id, $create_keyword_request)
    {
        $request = $this->createKeywordRequest($campaign_id, $create_keyword_request);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/KeywordApi.php - About 1 hr 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 bulkDeleteAdsByInventoryReferenceWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function bulkDeleteAdsByInventoryReferenceWithHttpInfo($campaign_id, $bulk_delete_ads_by_inventory_reference_request)
    {
        $request = $this->bulkDeleteAdsByInventoryReferenceRequest($campaign_id, $bulk_delete_ads_by_inventory_reference_request);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdApi.php - About 1 hr 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 getKeywordWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getKeywordWithHttpInfo($campaign_id, $keyword_id)
    {
        $request = $this->getKeywordRequest($campaign_id, $keyword_id);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/KeywordApi.php - About 1 hr 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 getAdsWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getAdsWithHttpInfo($campaign_id, $ad_group_ids = null, $ad_status = null, $limit = null, $listing_ids = null, $offset = null)
    {
        $request = $this->getAdsRequest($campaign_id, $ad_group_ids, $ad_status, $limit, $listing_ids, $offset);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdApi.php - About 1 hr 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 suggestBidsWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function suggestBidsWithHttpInfo($ad_group_id, $campaign_id, $targeted_bid_request)
    {
        $request = $this->suggestBidsRequest($ad_group_id, $campaign_id, $targeted_bid_request);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdGroupApi.php - About 1 hr 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 getNegativeKeywordsWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getNegativeKeywordsWithHttpInfo($ad_group_ids = null, $campaign_ids = null, $limit = null, $negative_keyword_status = null, $offset = null)
    {
        $request = $this->getNegativeKeywordsRequest($ad_group_ids, $campaign_ids, $limit, $negative_keyword_status, $offset);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/NegativeKeywordApi.php - About 1 hr 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 getAdsByInventoryReferenceWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getAdsByInventoryReferenceWithHttpInfo($campaign_id, $inventory_reference_id, $inventory_reference_type)
    {
        $request = $this->getAdsByInventoryReferenceRequest($campaign_id, $inventory_reference_id, $inventory_reference_type);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdApi.php - About 1 hr 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 bulkCreateAdsByListingIdWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function bulkCreateAdsByListingIdWithHttpInfo($campaign_id, $bulk_create_ad_request)
    {
        $request = $this->bulkCreateAdsByListingIdRequest($campaign_id, $bulk_create_ad_request);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdApi.php - About 1 hr 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 deleteAdsByInventoryReferenceWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteAdsByInventoryReferenceWithHttpInfo($campaign_id, $delete_ads_by_inventory_reference_request)
    {
        $request = $this->deleteAdsByInventoryReferenceRequest($campaign_id, $delete_ads_by_inventory_reference_request);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdApi.php - About 1 hr 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 getReportWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getReportWithHttpInfo($report_id)
    {
        $request = $this->getReportRequest($report_id);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdReportApi.php - About 1 hr 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 getNegativeKeywordWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getNegativeKeywordWithHttpInfo($negative_keyword_id)
    {
        $request = $this->getNegativeKeywordRequest($negative_keyword_id);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/NegativeKeywordApi.php - About 1 hr 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 updateItemPromotionWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateItemPromotionWithHttpInfo($promotion_id, $item_promotion = null)
    {
        $request = $this->updateItemPromotionRequest($promotion_id, $item_promotion);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/ItemPromotionApi.php - About 1 hr 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 getReportMetadataForReportTypeWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getReportMetadataForReportTypeWithHttpInfo($report_type)
    {
        $request = $this->getReportMetadataForReportTypeRequest($report_type);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdReportMetadataApi.php - About 1 hr 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 bulkCreateAdsByInventoryReferenceWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function bulkCreateAdsByInventoryReferenceWithHttpInfo($campaign_id, $bulk_create_ads_by_inventory_reference_request)
    {
        $request = $this->bulkCreateAdsByInventoryReferenceRequest($campaign_id, $bulk_create_ads_by_inventory_reference_request);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdApi.php - About 1 hr 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 bulkDeleteAdsByListingIdWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function bulkDeleteAdsByListingIdWithHttpInfo($campaign_id, $bulk_delete_ad_request)
    {
        $request = $this->bulkDeleteAdsByListingIdRequest($campaign_id, $bulk_delete_ad_request);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdApi.php - About 1 hr 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 bulkUpdateAdsBidByListingIdWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function bulkUpdateAdsBidByListingIdWithHttpInfo($campaign_id, $bulk_create_ad_request)
    {
        $request = $this->bulkUpdateAdsBidByListingIdRequest($campaign_id, $bulk_create_ad_request);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/AdApi.php - About 1 hr 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 bulkCreateKeywordWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function bulkCreateKeywordWithHttpInfo($campaign_id, $bulk_create_keyword_request)
    {
        $request = $this->bulkCreateKeywordRequest($campaign_id, $bulk_create_keyword_request);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/KeywordApi.php - About 1 hr 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 bulkCreateNegativeKeywordWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function bulkCreateNegativeKeywordWithHttpInfo($bulk_create_negative_keyword_request)
    {
        $request = $this->bulkCreateNegativeKeywordRequest($bulk_create_negative_keyword_request);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/NegativeKeywordApi.php - About 1 hr 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 getItemPromotionWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getItemPromotionWithHttpInfo($promotion_id)
    {
        $request = $this->getItemPromotionRequest($promotion_id);

        try {
Severity: Minor
Found in src/Sell/Marketing/V1/Api/ItemPromotionApi.php - About 1 hr 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