brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Method createInventoryLocationRequest has 73 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createInventoryLocationRequest($merchant_location_key, $inventory_location_full)
    {
        // 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 createInventoryLocation');
Severity: Major
Found in src/Sell/Inventory/V1/Api/LocationApi.php - About 2 hrs to fix

    Method updateInventoryLocationRequest has 73 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function updateInventoryLocationRequest($merchant_location_key, $inventory_location)
        {
            // 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 updateInventoryLocation');
    Severity: Major
    Found in src/Sell/Inventory/V1/Api/LocationApi.php - About 2 hrs to fix

      Method createShippingFulfillmentRequest has 73 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function createShippingFulfillmentRequest($order_id, $shipping_fulfillment_details)
          {
              // Verify the required parameter 'order_id' is set.
              if ($order_id === null || (\is_array($order_id) && count($order_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $order_id when calling createShippingFulfillment');
      Severity: Major
      Found in src/Sell/Fulfillment/V1/Api/ShippingFulfillmentApi.php - About 2 hrs to fix

        Method updateSubscriptionRequest has 73 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function updateSubscriptionRequest($subscription_id, $update_subscription_request = null)
            {
                // Verify the required parameter 'subscription_id' is set.
                if ($subscription_id === null || (\is_array($subscription_id) && count($subscription_id) === 0)) {
                    throw new \InvalidArgumentException('Missing the required parameter $subscription_id when calling updateSubscription');
        Severity: Major
        Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 2 hrs to fix

          Method updateDestinationRequest has 73 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function updateDestinationRequest($destination_id, $destination_request = null)
              {
                  // Verify the required parameter 'destination_id' is set.
                  if ($destination_id === null || (\is_array($destination_id) && count($destination_id) === 0)) {
                      throw new \InvalidArgumentException('Missing the required parameter $destination_id when calling updateDestination');
          Severity: Major
          Found in src/Commerce/Notification/V1/Api/DestinationApi.php - About 2 hrs to fix

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

                public function removeItemRequest($remove_cart_item_input = null)
                {
                    $resourcePath = '/shopping_cart/remove_item';
                    $formParams = [];
                    $queryParams = [];
            Severity: Minor
            Found in src/Buy/Browse/V1/Api/ShoppingCartApi.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 updateQuantityRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

                public function updateQuantityRequest($update_cart_item_input = null)
                {
                    $resourcePath = '/shopping_cart/update_quantity';
                    $formParams = [];
                    $queryParams = [];
            Severity: Minor
            Found in src/Buy/Browse/V1/Api/ShoppingCartApi.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 addItemRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

                public function addItemRequest($add_cart_item_input = null)
                {
                    $resourcePath = '/shopping_cart/add_item';
                    $formParams = [];
                    $queryParams = [];
            Severity: Minor
            Found in src/Buy/Browse/V1/Api/ShoppingCartApi.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 searchByImageRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

                public function searchByImageRequest($aspect_filter = null, $category_ids = null, $charity_ids = null, $fieldgroups = null, $filter = null, $limit = null, $offset = null, $sort = null, $search_by_image_request = null)
                {
                    $resourcePath = '/item_summary/search_by_image';
                    $formParams = [];
                    $queryParams = [];
            Severity: Minor
            Found in src/Buy/Browse/V1/Api/SearchByImageApi.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 getItemRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getItemRequest($item_id, $fieldgroups = null)
                {
                    // Verify the required parameter 'item_id' is set.
                    if ($item_id === null || (\is_array($item_id) && count($item_id) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $item_id when calling getItem');
            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 getExtendedProducerResponsibilityPoliciesRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getExtendedProducerResponsibilityPoliciesRequest($marketplace_id, $filter = 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 getExtendedProducerResponsibilityPolicies');
            Severity: Minor
            Found in src/Sell/Metadata/V1/Api/MarketplaceApi.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 getNegotiatedPricePoliciesRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getNegotiatedPricePoliciesRequest($marketplace_id, $filter = 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 getNegotiatedPricePolicies');
            Severity: Minor
            Found in src/Sell/Metadata/V1/Api/MarketplaceApi.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 getItemConditionPoliciesRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getItemConditionPoliciesRequest($marketplace_id, $filter = 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 getItemConditionPolicies');
            Severity: Minor
            Found in src/Sell/Metadata/V1/Api/MarketplaceApi.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 21 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getReturnPoliciesRequest($marketplace_id, $filter = 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 getReturnPolicies');
            Severity: Minor
            Found in src/Sell/Metadata/V1/Api/MarketplaceApi.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 getListingStructurePoliciesRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getListingStructurePoliciesRequest($marketplace_id, $filter = 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 getListingStructurePolicies');
            Severity: Minor
            Found in src/Sell/Metadata/V1/Api/MarketplaceApi.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 getAutomotivePartsCompatibilityPoliciesRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getAutomotivePartsCompatibilityPoliciesRequest($marketplace_id, $filter = 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 getAutomotivePartsCompatibilityPolicies');
            Severity: Minor
            Found in src/Sell/Metadata/V1/Api/MarketplaceApi.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 getSalesTaxJurisdictionsRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getSalesTaxJurisdictionsRequest($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 getSalesTaxJurisdictions');
            Severity: Minor
            Found in src/Sell/Metadata/V1/Api/CountryApi.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 getPayoutRequest has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

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

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

                public function createItemPromotionRequest($item_promotion = null)
                {
                    $resourcePath = '/item_promotion';
                    $formParams = [];
                    $queryParams = [];
            Severity: Minor
            Found in src/Sell/Marketing/V1/Api/ItemPromotionApi.php - About 2 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Severity
            Category
            Status
            Source
            Language