brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Method getReturnPolicyByNameRequest has 77 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getReturnPolicyByNameRequest($marketplace_id, $name)
    {
        // Verify the required parameter 'marketplace_id' is set.
        if ($marketplace_id === null || (\is_array($marketplace_id) && count($marketplace_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getReturnPolicyByName');
Severity: Major
Found in src/Sell/Account/V1/Api/ReturnPolicyApi.php - About 3 hrs to fix

    Method getPaymentPolicyByNameRequest has 77 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getPaymentPolicyByNameRequest($marketplace_id, $name)
        {
            // Verify the required parameter 'marketplace_id' is set.
            if ($marketplace_id === null || (\is_array($marketplace_id) && count($marketplace_id) === 0)) {
                throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getPaymentPolicyByName');
    Severity: Major
    Found in src/Sell/Account/V1/Api/PaymentPolicyApi.php - About 3 hrs to fix

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

          public function placeProxyBidRequest($item_id, $x_ebay_c_marketplace_id, $place_proxy_bid_request = null)
          {
              // Verify the required parameter 'item_id' is set.
              if ($item_id === null || (\is_array($item_id) && count($item_id) === 0)) {
                  throw new \InvalidArgumentException('Missing the required parameter $item_id when calling placeProxyBid');
      Severity: Major
      Found in src/Buy/OfferBeta/V1/Api/BiddingApi.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 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 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 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 createAdGroupRequest has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function createAdGroupRequest($campaign_id, $create_ad_group_request)
                      {
                          // Verify the required parameter 'campaign_id' is set.
                          if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                              throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling createAdGroup');
                  Severity: Major
                  Found in src/Sell/Marketing/V1/Api/AdGroupApi.php - About 3 hrs to fix

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

                        public function bulkUpdateKeywordRequest($campaign_id, $bulk_update_keyword_request)
                        {
                            // Verify the required parameter 'campaign_id' is set.
                            if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                                throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling bulkUpdateKeyword');
                    Severity: Major
                    Found in src/Sell/Marketing/V1/Api/KeywordApi.php - About 3 hrs to fix

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

                          public function createKeywordRequest($campaign_id, $create_keyword_request)
                          {
                              // Verify the required parameter 'campaign_id' is set.
                              if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                                  throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling createKeyword');
                      Severity: Major
                      Found in src/Sell/Marketing/V1/Api/KeywordApi.php - About 3 hrs to fix

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

                            public function updateNegativeKeywordRequest($negative_keyword_id, $update_negative_keyword_request)
                            {
                                // Verify the required parameter 'negative_keyword_id' is set.
                                if ($negative_keyword_id === null || (\is_array($negative_keyword_id) && count($negative_keyword_id) === 0)) {
                                    throw new \InvalidArgumentException('Missing the required parameter $negative_keyword_id when calling updateNegativeKeyword');
                        Severity: Major
                        Found in src/Sell/Marketing/V1/Api/NegativeKeywordApi.php - About 3 hrs to fix

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

                              public function bulkCreateKeywordRequest($campaign_id, $bulk_create_keyword_request)
                              {
                                  // Verify the required parameter 'campaign_id' is set.
                                  if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                                      throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling bulkCreateKeyword');
                          Severity: Major
                          Found in src/Sell/Marketing/V1/Api/KeywordApi.php - About 3 hrs to fix

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

                                public function bulkUpdateAdsStatusByListingIdRequest($campaign_id, $bulk_update_ad_status_by_listing_id_request)
                                {
                                    // Verify the required parameter 'campaign_id' is set.
                                    if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                                        throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling bulkUpdateAdsStatusByListingId');
                            Severity: Major
                            Found in src/Sell/Marketing/V1/Api/AdApi.php - About 3 hrs to fix

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

                                  public function bulkCreateAdsByInventoryReferenceRequest($campaign_id, $bulk_create_ads_by_inventory_reference_request)
                                  {
                                      // Verify the required parameter 'campaign_id' is set.
                                      if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                                          throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling bulkCreateAdsByInventoryReference');
                              Severity: Major
                              Found in src/Sell/Marketing/V1/Api/AdApi.php - About 3 hrs to fix

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

                                    public function bulkCreateAdsByListingIdRequest($campaign_id, $bulk_create_ad_request)
                                    {
                                        // Verify the required parameter 'campaign_id' is set.
                                        if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                                            throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling bulkCreateAdsByListingId');
                                Severity: Major
                                Found in src/Sell/Marketing/V1/Api/AdApi.php - About 3 hrs to fix

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

                                      public function bulkUpdateAdsBidByInventoryReferenceRequest($campaign_id, $bulk_create_ads_by_inventory_reference_request)
                                      {
                                          // Verify the required parameter 'campaign_id' is set.
                                          if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                                              throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling bulkUpdateAdsBidByInventoryReference');
                                  Severity: Major
                                  Found in src/Sell/Marketing/V1/Api/AdApi.php - About 3 hrs to fix

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

                                        public function bulkDeleteAdsByInventoryReferenceRequest($campaign_id, $bulk_delete_ads_by_inventory_reference_request)
                                        {
                                            // Verify the required parameter 'campaign_id' is set.
                                            if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                                                throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling bulkDeleteAdsByInventoryReference');
                                    Severity: Major
                                    Found in src/Sell/Marketing/V1/Api/AdApi.php - About 3 hrs to fix

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

                                          public function bulkDeleteAdsByListingIdRequest($campaign_id, $bulk_delete_ad_request)
                                          {
                                              // Verify the required parameter 'campaign_id' is set.
                                              if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                                                  throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling bulkDeleteAdsByListingId');
                                      Severity: Major
                                      Found in src/Sell/Marketing/V1/Api/AdApi.php - About 3 hrs to fix

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

                                            public function bulkUpdateAdsBidByListingIdRequest($campaign_id, $bulk_create_ad_request)
                                            {
                                                // Verify the required parameter 'campaign_id' is set.
                                                if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
                                                    throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling bulkUpdateAdsBidByListingId');
                                        Severity: Major
                                        Found in src/Sell/Marketing/V1/Api/AdApi.php - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language