brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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