brandon14/ebay-sdk-php

View on GitHub
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php

Summary

Maintainability
F
2 mos
Test Coverage

File GuestCheckoutSessionApi.php has 1268 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 3 days to fix

    GuestCheckoutSessionApi has 40 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class GuestCheckoutSessionApi
    {
        /**
         * @var ClientInterface
         */
    Severity: Minor
    Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 5 hrs to fix

      Function updateGuestQuantityRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
      Open

          public function updateGuestQuantityRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity = null)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestQuantity');
      Severity: Minor
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 4 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 updateGuestShippingAddressRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
      Open

          public function updateGuestShippingAddressRequest($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl = null)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestShippingAddress');
      Severity: Minor
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 4 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 applyGuestCouponRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
      Open

          public function applyGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling applyGuestCoupon');
      Severity: Minor
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 4 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 removeGuestCouponRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
      Open

          public function removeGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling removeGuestCoupon');
      Severity: Minor
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 4 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 updateGuestShippingOptionRequest has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
      Open

          public function updateGuestShippingOptionRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option = null)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestShippingOption');
      Severity: Minor
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 4 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 initiateGuestCheckoutSessionRequest has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
      Open

          public function initiateGuestCheckoutSessionRequest($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx = null, $create_guest_checkout_session_request_v2 = 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 initiateGuestCheckoutSession');
      Severity: Minor
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 3 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 getGuestCheckoutSessionRequest has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
      Open

          public function getGuestCheckoutSessionRequest($checkout_session_id, $x_ebay_c_marketplace_id)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling getGuestCheckoutSession');
      Severity: Minor
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 3 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

      Method updateGuestQuantityRequest has 76 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function updateGuestQuantityRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity = null)
          {
              // Verify the required parameter 'checkout_session_id' is set.
              if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestQuantity');
      Severity: Major
      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 3 hrs to fix

        Method removeGuestCouponRequest has 76 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function removeGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
            {
                // Verify the required parameter 'checkout_session_id' is set.
                if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                    throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling removeGuestCoupon');
        Severity: Major
        Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 3 hrs to fix

          Method updateGuestShippingAddressRequest has 76 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function updateGuestShippingAddressRequest($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl = null)
              {
                  // Verify the required parameter 'checkout_session_id' is set.
                  if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                      throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestShippingAddress');
          Severity: Major
          Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 3 hrs to fix

            Method applyGuestCouponRequest has 76 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function applyGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
                {
                    // Verify the required parameter 'checkout_session_id' is set.
                    if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling applyGuestCoupon');
            Severity: Major
            Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 3 hrs to fix

              Method updateGuestShippingOptionRequest has 76 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function updateGuestShippingOptionRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option = null)
                  {
                      // Verify the required parameter 'checkout_session_id' is set.
                      if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                          throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestShippingOption');
              Severity: Major
              Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 3 hrs to fix

                Method getGuestCheckoutSessionRequest has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function getGuestCheckoutSessionRequest($checkout_session_id, $x_ebay_c_marketplace_id)
                    {
                        // Verify the required parameter 'checkout_session_id' is set.
                        if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                            throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling getGuestCheckoutSession');
                Severity: Major
                Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 2 hrs to fix

                  Method initiateGuestCheckoutSessionRequest has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function initiateGuestCheckoutSessionRequest($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx = null, $create_guest_checkout_session_request_v2 = 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 initiateGuestCheckoutSession');
                  Severity: Major
                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 2 hrs to fix

                    Method updateGuestShippingOptionWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function updateGuestShippingOptionWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option = null)
                        {
                            $request = $this->updateGuestShippingOptionRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option);
                    
                            try {
                    Severity: Major
                    Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 2 hrs to fix

                      Method initiateGuestCheckoutSessionWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function initiateGuestCheckoutSessionWithHttpInfo($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx = null, $create_guest_checkout_session_request_v2 = null)
                          {
                              $request = $this->initiateGuestCheckoutSessionRequest($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx, $create_guest_checkout_session_request_v2);
                      
                              try {
                      Severity: Major
                      Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 2 hrs to fix

                        Method updateGuestQuantityWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function updateGuestQuantityWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity = null)
                            {
                                $request = $this->updateGuestQuantityRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity);
                        
                                try {
                        Severity: Major
                        Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 2 hrs to fix

                          Method removeGuestCouponWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function removeGuestCouponWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
                              {
                                  $request = $this->removeGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);
                          
                                  try {
                          Severity: Major
                          Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 2 hrs to fix

                            Method applyGuestCouponWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function applyGuestCouponWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
                                {
                                    $request = $this->applyGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);
                            
                                    try {
                            Severity: Major
                            Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 2 hrs to fix

                              Method getGuestCheckoutSessionWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function getGuestCheckoutSessionWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id)
                                  {
                                      $request = $this->getGuestCheckoutSessionRequest($checkout_session_id, $x_ebay_c_marketplace_id);
                              
                                      try {
                              Severity: Major
                              Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 2 hrs to fix

                                Method updateGuestShippingAddressWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function updateGuestShippingAddressWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl = null)
                                    {
                                        $request = $this->updateGuestShippingAddressRequest($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl);
                                
                                        try {
                                Severity: Major
                                Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 2 hrs to fix

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

                                      public function removeGuestCouponWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
                                      {
                                          $request = $this->removeGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);
                                  
                                          try {
                                  Severity: Minor
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 1 hr to fix

                                  Cognitive Complexity

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

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

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

                                  Further reading

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

                                      public function updateGuestQuantityWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity = null)
                                      {
                                          $request = $this->updateGuestQuantityRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity);
                                  
                                          try {
                                  Severity: Minor
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 1 hr to fix

                                  Cognitive Complexity

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

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

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

                                  Further reading

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

                                      public function updateGuestShippingAddressWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl = null)
                                      {
                                          $request = $this->updateGuestShippingAddressRequest($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl);
                                  
                                          try {
                                  Severity: Minor
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 1 hr to fix

                                  Cognitive Complexity

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

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

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

                                  Further reading

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

                                      public function initiateGuestCheckoutSessionWithHttpInfo($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx = null, $create_guest_checkout_session_request_v2 = null)
                                      {
                                          $request = $this->initiateGuestCheckoutSessionRequest($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx, $create_guest_checkout_session_request_v2);
                                  
                                          try {
                                  Severity: Minor
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 1 hr to fix

                                  Cognitive Complexity

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

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

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

                                  Further reading

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

                                      public function applyGuestCouponWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
                                      {
                                          $request = $this->applyGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);
                                  
                                          try {
                                  Severity: Minor
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 1 hr to fix

                                  Cognitive Complexity

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

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

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

                                  Further reading

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

                                      public function getGuestCheckoutSessionWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id)
                                      {
                                          $request = $this->getGuestCheckoutSessionRequest($checkout_session_id, $x_ebay_c_marketplace_id);
                                  
                                          try {
                                  Severity: Minor
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 1 hr to fix

                                  Cognitive Complexity

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

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

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

                                  Further reading

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

                                      public function updateGuestShippingOptionWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option = null)
                                      {
                                          $request = $this->updateGuestShippingOptionRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option);
                                  
                                          try {
                                  Severity: Minor
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php - About 1 hr to fix

                                  Cognitive Complexity

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

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

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

                                  Further reading

                                  Similar blocks of code found in 6 locations. Consider refactoring.
                                  Open

                                      public function updateGuestShippingAddressRequest($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl = null)
                                      {
                                          // Verify the required parameter 'checkout_session_id' is set.
                                          if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                                              throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestShippingAddress');
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 3 days to fix
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 583..681
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 323..421
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1116..1214
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1387..1485
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1929..2027

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 624.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 6 locations. Consider refactoring.
                                  Open

                                      public function removeGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
                                      {
                                          // Verify the required parameter 'checkout_session_id' is set.
                                          if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                                              throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling removeGuestCoupon');
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 3 days to fix
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 583..681
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 323..421
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1387..1485
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1658..1756
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1929..2027

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 624.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 6 locations. Consider refactoring.
                                  Open

                                      public function applyGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
                                      {
                                          // Verify the required parameter 'checkout_session_id' is set.
                                          if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                                              throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling applyGuestCoupon');
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 3 days to fix
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 583..681
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1116..1214
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1387..1485
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1658..1756
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1929..2027

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 624.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 6 locations. Consider refactoring.
                                  Open

                                      public function updateGuestShippingOptionRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option = null)
                                      {
                                          // Verify the required parameter 'checkout_session_id' is set.
                                          if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                                              throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestShippingOption');
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 3 days to fix
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 583..681
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 323..421
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1116..1214
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1387..1485
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1658..1756

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 624.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 6 locations. Consider refactoring.
                                  Open

                                      public function updateGuestQuantityRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity = null)
                                      {
                                          // Verify the required parameter 'checkout_session_id' is set.
                                          if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                                              throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling updateGuestQuantity');
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 3 days to fix
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 583..681
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 323..421
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1116..1214
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1658..1756
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1929..2027

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 624.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      public function initiateGuestCheckoutSessionRequest($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx = null, $create_guest_checkout_session_request_v2 = 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 initiateGuestCheckoutSession');
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 1 other location - About 2 days to fix
                                  src/Sell/ListingBeta/V1/Api/ItemDraftApi.php on lines 323..412

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 572.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 5 locations. Consider refactoring.
                                  Open

                                      public function getGuestCheckoutSessionRequest($checkout_session_id, $x_ebay_c_marketplace_id)
                                      {
                                          // Verify the required parameter 'checkout_session_id' is set.
                                          if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
                                              throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling getGuestCheckoutSession');
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 4 other locations - About 2 days to fix
                                  src/Buy/Deal/V1/Api/EventApi.php on lines 318..410
                                  src/Buy/Feed/V1/Api/FileApi.php on lines 607..699
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 318..410
                                  src/Commerce/Charity/V1/Api/CharityOrgApi.php on lines 318..410

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 562.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 6 locations. Consider refactoring.
                                  Open

                                      public function initiateGuestCheckoutSessionWithHttpInfo($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx = null, $create_guest_checkout_session_request_v2 = null)
                                      {
                                          $request = $this->initiateGuestCheckoutSessionRequest($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx, $create_guest_checkout_session_request_v2);
                                  
                                          try {
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 2 days to fix
                                  src/Buy/Deal/V1/Api/EventApi.php on lines 443..508
                                  src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1363..1428
                                  src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1635..1700
                                  src/Sell/ListingBeta/V1/Api/ItemDraftApi.php on lines 183..248
                                  src/Sell/Negotiation/V1/Api/OfferApi.php on lines 183..248

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 544.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 8 locations. Consider refactoring.
                                  Open

                                      public function updateGuestShippingAddressWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl = null)
                                      {
                                          $request = $this->updateGuestShippingAddressRequest($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl);
                                  
                                          try {
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 7 other locations - About 2 days to fix
                                  src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 183..248
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 976..1041
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1247..1312
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1789..1854
                                  src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 539.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 8 locations. Consider refactoring.
                                  Open

                                      public function applyGuestCouponWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
                                      {
                                          $request = $this->applyGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);
                                  
                                          try {
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 7 other locations - About 2 days to fix
                                  src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 976..1041
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1247..1312
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1518..1583
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1789..1854
                                  src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 539.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 8 locations. Consider refactoring.
                                  Open

                                      public function updateGuestShippingOptionWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option = null)
                                      {
                                          $request = $this->updateGuestShippingOptionRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option);
                                  
                                          try {
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 7 other locations - About 2 days to fix
                                  src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 183..248
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 976..1041
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1247..1312
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1518..1583
                                  src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 539.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 8 locations. Consider refactoring.
                                  Open

                                      public function removeGuestCouponWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
                                      {
                                          $request = $this->removeGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);
                                  
                                          try {
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 7 other locations - About 2 days to fix
                                  src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 183..248
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1247..1312
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1518..1583
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1789..1854
                                  src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 539.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 8 locations. Consider refactoring.
                                  Open

                                      public function updateGuestQuantityWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity = null)
                                      {
                                          $request = $this->updateGuestQuantityRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity);
                                  
                                          try {
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 7 other locations - About 2 days to fix
                                  src/Buy/Browse/V1/Api/ItemApi.php on lines 183..248
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 443..508
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 183..248
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 976..1041
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1518..1583
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1789..1854
                                  src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1287..1352

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 539.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 6 locations. Consider refactoring.
                                  Open

                                      public function initiateGuestCheckoutSessionAsyncWithHttpInfo($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx = null, $create_guest_checkout_session_request_v2 = null)
                                      {
                                          $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
                                          $request = $this->initiateGuestCheckoutSessionRequest($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx, $create_guest_checkout_session_request_v2);
                                  
                                  
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 5 other locations - About 1 day to fix
                                  src/Buy/Deal/V1/Api/EventApi.php on lines 542..570
                                  src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1462..1490
                                  src/Sell/Feed/V1/Api/ScheduleApi.php on lines 1734..1762
                                  src/Sell/ListingBeta/V1/Api/ItemDraftApi.php on lines 282..310
                                  src/Sell/Negotiation/V1/Api/OfferApi.php on lines 282..310

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 248.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 9 locations. Consider refactoring.
                                  Open

                                      public function updateGuestQuantityAsyncWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity = null)
                                      {
                                          $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
                                          $request = $this->updateGuestQuantityRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_quantity);
                                  
                                  
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 8 other locations - About 7 hrs to fix
                                  src/Buy/Browse/V1/Api/ItemApi.php on lines 282..310
                                  src/Buy/Feed/V1/Api/FileApi.php on lines 302..330
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 542..570
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 282..310
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1075..1103
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1617..1645
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1888..1916
                                  src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1386..1414

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 243.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 9 locations. Consider refactoring.
                                  Open

                                      public function removeGuestCouponAsyncWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
                                      {
                                          $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
                                          $request = $this->removeGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);
                                  
                                  
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 8 other locations - About 7 hrs to fix
                                  src/Buy/Browse/V1/Api/ItemApi.php on lines 282..310
                                  src/Buy/Feed/V1/Api/FileApi.php on lines 302..330
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 542..570
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 282..310
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1346..1374
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1617..1645
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1888..1916
                                  src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1386..1414

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 243.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 9 locations. Consider refactoring.
                                  Open

                                      public function updateGuestShippingAddressAsyncWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl = null)
                                      {
                                          $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
                                          $request = $this->updateGuestShippingAddressRequest($checkout_session_id, $x_ebay_c_marketplace_id, $shipping_address_impl);
                                  
                                  
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 8 other locations - About 7 hrs to fix
                                  src/Buy/Browse/V1/Api/ItemApi.php on lines 282..310
                                  src/Buy/Feed/V1/Api/FileApi.php on lines 302..330
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 542..570
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 282..310
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1075..1103
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1346..1374
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1888..1916
                                  src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1386..1414

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 243.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 9 locations. Consider refactoring.
                                  Open

                                      public function updateGuestShippingOptionAsyncWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option = null)
                                      {
                                          $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
                                          $request = $this->updateGuestShippingOptionRequest($checkout_session_id, $x_ebay_c_marketplace_id, $update_shipping_option);
                                  
                                  
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 8 other locations - About 7 hrs to fix
                                  src/Buy/Browse/V1/Api/ItemApi.php on lines 282..310
                                  src/Buy/Feed/V1/Api/FileApi.php on lines 302..330
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 542..570
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 282..310
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1075..1103
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1346..1374
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1617..1645
                                  src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1386..1414

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 243.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 9 locations. Consider refactoring.
                                  Open

                                      public function applyGuestCouponAsyncWithHttpInfo($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request = null)
                                      {
                                          $returnType = '\TNT\Ebay\Buy\Order\V2\Model\GuestCheckoutSessionResponseV2';
                                          $request = $this->applyGuestCouponRequest($checkout_session_id, $x_ebay_c_marketplace_id, $coupon_request);
                                  
                                  
                                  Severity: Major
                                  Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 8 other locations - About 7 hrs to fix
                                  src/Buy/Browse/V1/Api/ItemApi.php on lines 282..310
                                  src/Buy/Feed/V1/Api/FileApi.php on lines 302..330
                                  src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 542..570
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1075..1103
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1346..1374
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1617..1645
                                  src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 1888..1916
                                  src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1386..1414

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 243.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  There are no issues that match your filters.

                                  Category
                                  Status