brandon14/ebay-sdk-php

View on GitHub

Showing 2,539 of 3,709 total issues

Function deleteProductCompatibilityWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteProductCompatibilityWithHttpInfo($sku)
    {
        $request = $this->deleteProductCompatibilityRequest($sku);

        try {
Severity: Minor
Found in src/Sell/Inventory/V1/Api/ProductCompatibilityApi.php - About 35 mins 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 deleteInventoryItemWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteInventoryItemWithHttpInfo($sku)
    {
        $request = $this->deleteInventoryItemRequest($sku);

        try {
Severity: Minor
Found in src/Sell/Inventory/V1/Api/InventoryItemApi.php - About 35 mins 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 deleteOfferWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteOfferWithHttpInfo($offer_id)
    {
        $request = $this->deleteOfferRequest($offer_id);

        try {
Severity: Minor
Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 35 mins 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 withdrawOfferByInventoryItemGroupWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function withdrawOfferByInventoryItemGroupWithHttpInfo($withdraw_by_inventory_item_group_request)
    {
        $request = $this->withdrawOfferByInventoryItemGroupRequest($withdraw_by_inventory_item_group_request);

        try {
Severity: Minor
Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 35 mins 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 acceptPaymentDisputeWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function acceptPaymentDisputeWithHttpInfo($payment_dispute_id, $accept_payment_dispute_request = null)
    {
        $request = $this->acceptPaymentDisputeRequest($payment_dispute_id, $accept_payment_dispute_request);

        try {
Severity: Minor
Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 35 mins 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 contestPaymentDisputeWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function contestPaymentDisputeWithHttpInfo($payment_dispute_id, $contest_payment_dispute_request = null)
    {
        $request = $this->contestPaymentDisputeRequest($payment_dispute_id, $contest_payment_dispute_request);

        try {
Severity: Minor
Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 35 mins 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 suppressViolationWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function suppressViolationWithHttpInfo($suppress_violation_request)
    {
        $request = $this->suppressViolationRequest($suppress_violation_request);

        try {
Severity: Minor
Found in src/Sell/Compliance/V1/Api/ListingViolationApi.php - About 35 mins 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 updateEvidenceWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateEvidenceWithHttpInfo($payment_dispute_id, $update_evidence_payment_dispute_request = null)
    {
        $request = $this->updateEvidenceRequest($payment_dispute_id, $update_evidence_payment_dispute_request);

        try {
Severity: Minor
Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 35 mins 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 testWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function testWithHttpInfo($subscription_id)
    {
        $request = $this->testRequest($subscription_id);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 35 mins 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 deleteDestinationWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteDestinationWithHttpInfo($destination_id)
    {
        $request = $this->deleteDestinationRequest($destination_id);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/DestinationApi.php - About 35 mins 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 updateDestinationWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateDestinationWithHttpInfo($destination_id, $destination_request = null)
    {
        $request = $this->updateDestinationRequest($destination_id, $destination_request);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/DestinationApi.php - About 35 mins 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 createVideoWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function createVideoWithHttpInfo($body = null)
    {
        $request = $this->createVideoRequest($body);

        try {
Severity: Minor
Found in src/Commerce/MediaBeta/V1/Api/VideoApi.php - About 35 mins 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 updateSubscriptionWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateSubscriptionWithHttpInfo($subscription_id, $update_subscription_request = null)
    {
        $request = $this->updateSubscriptionRequest($subscription_id, $update_subscription_request);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 35 mins 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 disableSubscriptionWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function disableSubscriptionWithHttpInfo($subscription_id)
    {
        $request = $this->disableSubscriptionRequest($subscription_id);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 35 mins 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 uploadVideoWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function uploadVideoWithHttpInfo($content_type, $video_id, $content_length = null, $content_range = null, $body = null)
    {
        $request = $this->uploadVideoRequest($content_type, $video_id, $content_length, $content_range, $body);

        try {
Severity: Minor
Found in src/Commerce/MediaBeta/V1/Api/VideoApi.php - About 35 mins 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 deleteSubscriptionWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function deleteSubscriptionWithHttpInfo($subscription_id)
    {
        $request = $this->deleteSubscriptionRequest($subscription_id);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 35 mins 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 updateConfigWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function updateConfigWithHttpInfo($config = null)
    {
        $request = $this->updateConfigRequest($config);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/ConfigApi.php - About 35 mins 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 enableSubscriptionWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function enableSubscriptionWithHttpInfo($subscription_id)
    {
        $request = $this->enableSubscriptionRequest($subscription_id);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 35 mins 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

Avoid too many return statements within this method.
Open

                    return new \DateTime($data);
Severity: Major
Found in src/Buy/Browse/V1/ObjectSerializer.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return new \SplFileObject($filename, 'r');
    Severity: Major
    Found in src/Buy/Browse/V1/ObjectSerializer.php - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language