brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Method getSalesTaxJurisdictionsRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

    Method getTransferRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Method getPayoutRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method getReportMetadataForReportTypeRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method deleteItemPromotionRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function deleteItemPromotionRequest($promotion_id)
              {
                  // 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 deleteItemPromotion');
          Severity: Major
          Found in src/Sell/Marketing/V1/Api/ItemPromotionApi.php - About 2 hrs to fix

            Method getItemPromotionRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function getItemPromotionRequest($promotion_id)
                {
                    // 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 getItemPromotion');
            Severity: Major
            Found in src/Sell/Marketing/V1/Api/ItemPromotionApi.php - About 2 hrs to fix

              Method getNegativeKeywordRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function getNegativeKeywordRequest($negative_keyword_id)
                  {
                      // 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 getNegativeKeyword');
              Severity: Major
              Found in src/Sell/Marketing/V1/Api/NegativeKeywordApi.php - About 2 hrs to fix

                Method getReportRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Method getItemPriceMarkdownPromotionRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function getItemPriceMarkdownPromotionRequest($promotion_id)
                      {
                          // 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 getItemPriceMarkdownPromotion');
                  Severity: Major
                  Found in src/Sell/Marketing/V1/Api/ItemPriceMarkdownApi.php - About 2 hrs to fix

                    Method getCampaignRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function getCampaignRequest($campaign_id)
                        {
                            // 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 getCampaign');
                    Severity: Major
                    Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 2 hrs to fix

                      Method deleteCampaignRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function deleteCampaignRequest($campaign_id)
                          {
                              // 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 deleteCampaign');
                      Severity: Major
                      Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 2 hrs to fix

                        Method deleteItemPriceMarkdownPromotionRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function deleteItemPriceMarkdownPromotionRequest($promotion_id)
                            {
                                // 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 deleteItemPriceMarkdownPromotion');
                        Severity: Major
                        Found in src/Sell/Marketing/V1/Api/ItemPriceMarkdownApi.php - About 2 hrs to fix

                          Method endCampaignRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function endCampaignRequest($campaign_id)
                              {
                                  // 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 endCampaign');
                          Severity: Major
                          Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 2 hrs to fix

                            Method pausePromotionRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function pausePromotionRequest($promotion_id)
                                {
                                    // 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 pausePromotion');
                            Severity: Major
                            Found in src/Sell/Marketing/V1/Api/PromotionApi.php - About 2 hrs to fix

                              Method pauseCampaignRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function pauseCampaignRequest($campaign_id)
                                  {
                                      // 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 pauseCampaign');
                              Severity: Major
                              Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 2 hrs to fix

                                Method resumePromotionRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function resumePromotionRequest($promotion_id)
                                    {
                                        // 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 resumePromotion');
                                Severity: Major
                                Found in src/Sell/Marketing/V1/Api/PromotionApi.php - About 2 hrs to fix

                                  Method getCampaignByNameRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    Method getPromotionSummaryReportRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function getPromotionSummaryReportRequest($marketplace_id)
                                        {
                                            // 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 getPromotionSummaryReport');
                                    Severity: Major
                                    Found in src/Sell/Marketing/V1/Api/PromotionSummaryReportApi.php - About 2 hrs to fix

                                      Method resumeCampaignRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function resumeCampaignRequest($campaign_id)
                                          {
                                              // 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 resumeCampaign');
                                      Severity: Major
                                      Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 2 hrs to fix

                                        Method deleteReportTaskRequest has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

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