brandon14/ebay-sdk-php

View on GitHub

Showing 2,539 of 3,709 total issues

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

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

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

                                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

                                  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

                                      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

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

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