brandon14/ebay-sdk-php

View on GitHub

Showing 2,539 of 3,709 total issues

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 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 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 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 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 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 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 createAdByListingIdRequest has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function createAdByListingIdRequest($campaign_id, $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 createAdByListingId');
                        Severity: Major
                        Found in src/Sell/Marketing/V1/Api/AdApi.php - About 3 hrs to fix

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

                              public function deleteAdsByInventoryReferenceRequest($campaign_id, $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 deleteAdsByInventoryReference');
                          Severity: Major
                          Found in src/Sell/Marketing/V1/Api/AdApi.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 updateCampaignBudgetRequest has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function updateCampaignBudgetRequest($campaign_id, $update_campaign_budget_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 updateCampaignBudget');
                              Severity: Major
                              Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 3 hrs to fix

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

                                    public function updateCampaignIdentificationRequest($campaign_id, $update_campaign_identification_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 updateCampaignIdentification');
                                Severity: Major
                                Found in src/Sell/Marketing/V1/Api/CampaignApi.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 cloneCampaignRequest has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function cloneCampaignRequest($campaign_id, $clone_campaign_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 cloneCampaign');
                                    Severity: Major
                                    Found in src/Sell/Marketing/V1/Api/CampaignApi.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 updateAdRateStrategyRequest has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function updateAdRateStrategyRequest($campaign_id, $update_adrate_strategy_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 updateAdRateStrategy');
                                        Severity: Major
                                        Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language