brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Function getItemByLegacyIdRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getItemByLegacyIdRequest($legacy_item_id, $fieldgroups = null, $legacy_variation_id = null, $legacy_variation_sku = null)
    {
        // Verify the required parameter 'legacy_item_id' is set.
        if ($legacy_item_id === null || (\is_array($legacy_item_id) && count($legacy_item_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $legacy_item_id when calling getItemByLegacyId');
Severity: Minor
Found in src/Buy/Browse/V1/Api/ItemApi.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 getDealItemsRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getDealItemsRequest($x_ebay_c_marketplace_id, $category_ids = null, $commissionable = null, $delivery_country = null, $limit = null, $offset = 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 getDealItems');
Severity: Minor
Found in src/Buy/Deal/V1/Api/DealItemApi.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 getEventsRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getEventsRequest($x_ebay_c_marketplace_id, $limit = null, $offset = 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 getEvents');
Severity: Minor
Found in src/Buy/Deal/V1/Api/EventApi.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 getFilesRequest has a Cognitive Complexity of 20 (exceeds 5 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: Minor
Found in src/Buy/Feed/V1/Api/FileApi.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 getFeedTypeRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getFeedTypeRequest($feed_type_id)
    {
        // Verify the required parameter 'feed_type_id' is set.
        if ($feed_type_id === null || (\is_array($feed_type_id) && count($feed_type_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $feed_type_id when calling getFeedType');
Severity: Minor
Found in src/Buy/Feed/V1/Api/FeedTypeApi.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 getSigningKeyRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getSigningKeyRequest($signing_key_id)
    {
        // Verify the required parameter 'signing_key_id' is set.
        if ($signing_key_id === null || (\is_array($signing_key_id) && count($signing_key_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $signing_key_id when calling getSigningKey');
Severity: Minor
Found in src/Developer/KeyManagement/V1/Api/SigningKeyApi.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 createSigningKeyRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function createSigningKeyRequest($create_signing_key_request = null)
    {
        $resourcePath = '/signing_key';
        $formParams = [];
        $queryParams = [];
Severity: Minor
Found in src/Developer/KeyManagement/V1/Api/SigningKeyApi.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 getShipmentRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

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

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

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

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

    public function getPromotionsRequest($marketplace_id, $limit = null, $offset = null, $promotion_status = null, $promotion_type = null, $q = null, $sort = 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 getPromotions');
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 getCampaignByNameRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

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

    public function getPromotionSummaryReportRequest($marketplace_id)
    {
        // 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 getPromotionSummaryReport');
Severity: Minor
Found in src/Sell/Marketing/V1/Api/PromotionSummaryReportApi.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 getRateTableRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getRateTableRequest($rate_table_id)
    {
        // Verify the required parameter 'rate_table_id' is set.
        if ($rate_table_id === null || (\is_array($rate_table_id) && count($rate_table_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $rate_table_id when calling getRateTable');
Severity: Minor
Found in src/Sell/Account/V2/Api/RateTableApi.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 getPaymentPoliciesRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getPaymentPoliciesRequest($marketplace_id)
    {
        // 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 getPaymentPolicies');
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 getReturnPoliciesRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getReturnPoliciesRequest($marketplace_id)
    {
        // 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 getReturnPolicies');
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 getFulfillmentPoliciesRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getFulfillmentPoliciesRequest($marketplace_id)
    {
        // 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 getFulfillmentPolicies');
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 getSalesTaxesRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
Open

    public function getSalesTaxesRequest($country_code)
    {
        // Verify the required parameter 'country_code' is set.
        if ($country_code === null || (\is_array($country_code) && count($country_code) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $country_code when calling getSalesTaxes');
Severity: Minor
Found in src/Sell/Account/V1/Api/SalesTaxApi.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