brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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 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

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

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

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

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

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

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

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

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

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

                            public function getInventoryLocationsRequest($limit = null, $offset = null)
                            {
                                $resourcePath = '/location';
                                $formParams = [];
                                $queryParams = [];
                        Severity: Major
                        Found in src/Sell/Account/V1/Api/LocationApi.php - About 3 hrs to fix

                          RemoteShopcartResponse has 26 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class RemoteShopcartResponse implements ModelInterface, \ArrayAccess, \JsonSerializable
                          {
                              public const DISCRIMINATOR = null;
                          
                              /**
                          Severity: Minor
                          Found in src/Buy/Browse/V1/Model/RemoteShopcartResponse.php - About 3 hrs to fix

                            Refinement has 26 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class Refinement implements ModelInterface, \ArrayAccess, \JsonSerializable
                            {
                                public const DISCRIMINATOR = null;
                            
                                /**
                            Severity: Minor
                            Found in src/Buy/Browse/V1/Model/Refinement.php - About 3 hrs to fix

                              Method __construct has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function __construct(array $data = null)
                                  {
                                      $this->container['additional_images'] = $data['additional_images'] ?? null;
                                      $this->container['addon_services'] = $data['addon_services'] ?? null;
                                      $this->container['adult_only'] = $data['adult_only'] ?? null;
                              Severity: Major
                              Found in src/Buy/Browse/V1/Model/Item.php - About 3 hrs to fix

                                SellerDetail has 26 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class SellerDetail implements ModelInterface, \ArrayAccess, \JsonSerializable
                                {
                                    public const DISCRIMINATOR = null;
                                
                                    /**
                                Severity: Minor
                                Found in src/Buy/Browse/V1/Model/SellerDetail.php - About 3 hrs to fix

                                  ShippingOptionSummary has 26 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class ShippingOptionSummary implements ModelInterface, \ArrayAccess, \JsonSerializable
                                  {
                                      public const DISCRIMINATOR = null;
                                  
                                      /**
                                  Severity: Minor
                                  Found in src/Buy/Browse/V1/Model/ShippingOptionSummary.php - About 3 hrs to fix

                                    Refinement has 26 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class Refinement implements ModelInterface, \ArrayAccess, \JsonSerializable
                                    {
                                        public const DISCRIMINATOR = null;
                                    
                                        /**
                                    Severity: Minor
                                    Found in src/Buy/MarketplaceInsightsBeta/V1/Model/Refinement.php - About 3 hrs to fix

                                      FileMetadataSearchResponse has 26 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class FileMetadataSearchResponse implements ModelInterface, \ArrayAccess, \JsonSerializable
                                      {
                                          public const DISCRIMINATOR = null;
                                      
                                          /**
                                      Severity: Minor
                                      Found in src/Buy/Feed/V1/Model/FileMetadataSearchResponse.php - About 3 hrs to fix

                                        FeedTypeSearchResponse has 26 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class FeedTypeSearchResponse implements ModelInterface, \ArrayAccess, \JsonSerializable
                                        {
                                            public const DISCRIMINATOR = null;
                                        
                                            /**
                                        Severity: Minor
                                        Found in src/Buy/Feed/V1/Model/FeedTypeSearchResponse.php - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language