brandon14/ebay-sdk-php

View on GitHub

Showing 2,539 of 3,709 total issues

Method getEventsRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getEventsRequest($x_ebay_c_marketplace_id, $limit = null, $offset = 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 getEvents');
Severity: Major
Found in src/Buy/Deal/V1/Api/EventApi.php - About 2 hrs to fix

    Method getItemConditionPoliciesRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Method getAutomotivePartsCompatibilityPoliciesRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method getExtendedProducerResponsibilityPoliciesRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method getReturnPoliciesRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Method getListingStructurePoliciesRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method getNegotiatedPricePoliciesRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Method getSellerStandardsProfileRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Method findEligibleItemsRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function findEligibleItemsRequest($x_ebay_c_marketplace_id, $limit = null, $offset = 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 findEligibleItems');
                  Severity: Major
                  Found in src/Sell/Negotiation/V1/Api/OfferApi.php - About 2 hrs to fix

                    Method getShippingFulfillmentRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      Method getCategorySubtreeRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Method getCategorySuggestionsRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method getCompatibilityPropertiesRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Method getItemAspectsForCategoryRequest has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

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

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

                                  public function downloadFileRequest($file_id, $x_ebay_c_marketplace_id, $range = null)
                                  {
                                      // Verify the required parameter 'file_id' is set.
                                      if ($file_id === null || (\is_array($file_id) && count($file_id) === 0)) {
                                          throw new \InvalidArgumentException('Missing the required parameter $file_id when calling downloadFile');
                              Severity: Major
                              Found in src/Buy/Feed/V1/Api/FileApi.php - About 2 hrs to fix

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

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

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

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

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

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

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

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

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

                                            public function createInventoryLocationRequest($merchant_location_key, $inventory_location_full)
                                            {
                                                // Verify the required parameter 'merchant_location_key' is set.
                                                if ($merchant_location_key === null || (\is_array($merchant_location_key) && count($merchant_location_key) === 0)) {
                                                    throw new \InvalidArgumentException('Missing the required parameter $merchant_location_key when calling createInventoryLocation');
                                        Severity: Major
                                        Found in src/Sell/Inventory/V1/Api/LocationApi.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language