brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Method updateOfferRequest has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function updateOfferRequest($content_language, $offer_id, $ebay_offer_details_with_id)
    {
        // Verify the required parameter 'content_language' is set.
        if ($content_language === null || (\is_array($content_language) && count($content_language) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $content_language when calling updateOffer');
Severity: Major
Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 3 hrs to fix

    Method findCampaignByAdReferenceRequest has 78 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function findCampaignByAdReferenceRequest($inventory_reference_id = null, $inventory_reference_type = null, $listing_id = null)
        {
            $resourcePath = '/ad_campaign/find_campaign_by_ad_reference';
            $formParams = [];
            $queryParams = [];
    Severity: Major
    Found in src/Sell/Marketing/V1/Api/CampaignApi.php - About 3 hrs to fix

      Method getReportTasksRequest has 78 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method getScheduleTemplatesRequest has 78 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method getSchedulesRequest has 78 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Function getGuestPurchaseOrderRequest has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getGuestPurchaseOrderRequest($purchase_order_id)
                {
                    // Verify the required parameter 'purchase_order_id' is set.
                    if ($purchase_order_id === null || (\is_array($purchase_order_id) && count($purchase_order_id) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $purchase_order_id when calling getGuestPurchaseOrder');
            Severity: Minor
            Found in src/Buy/Order/V2/Api/GuestPurchaseOrderApi.php - About 3 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function getMerchandisedProductsRequest has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getMerchandisedProductsRequest($category_id, $metric_name, $aspect_filter = null, $limit = null)
                {
                    // 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 getMerchandisedProducts');
            Severity: Minor
            Found in src/Buy/MarketingBeta/V1/Api/MerchandisedProductApi.php - About 3 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function registerClientRequest has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
            Open

                public function registerClientRequest($client_settings)
                {
                    // Verify the required parameter 'client_settings' is set.
                    if ($client_settings === null || (\is_array($client_settings) && count($client_settings) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $client_settings when calling registerClient');
            Severity: Minor
            Found in src/Developer/ClientRegistration/V1/Api/RegisterApi.php - About 3 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function getActivitiesRequest has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getActivitiesRequest($payment_dispute_id)
                {
                    // Verify the required parameter 'payment_dispute_id' is set.
                    if ($payment_dispute_id === null || (\is_array($payment_dispute_id) && count($payment_dispute_id) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $payment_dispute_id when calling getActivities');
            Severity: Minor
            Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 3 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function uploadEvidenceFileRequest has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
            Open

                public function uploadEvidenceFileRequest($payment_dispute_id)
                {
                    // Verify the required parameter 'payment_dispute_id' is set.
                    if ($payment_dispute_id === null || (\is_array($payment_dispute_id) && count($payment_dispute_id) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $payment_dispute_id when calling uploadEvidenceFile');
            Severity: Minor
            Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 3 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function getPaymentDisputeRequest has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getPaymentDisputeRequest($payment_dispute_id)
                {
                    // Verify the required parameter 'payment_dispute_id' is set.
                    if ($payment_dispute_id === null || (\is_array($payment_dispute_id) && count($payment_dispute_id) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $payment_dispute_id when calling getPaymentDispute');
            Severity: Minor
            Found in src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php - About 3 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method getAdGroupRequest has 77 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method getKeywordRequest has 77 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Method getAdRequest has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Method deleteAdRequest has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

                    Method getPaymentsProgramOnboardingRequest has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function getPaymentsProgramOnboardingRequest($marketplace_id, $payments_program_type)
                        {
                            // 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 getPaymentsProgramOnboarding');
                    Severity: Major
                    Found in src/Sell/Account/V1/Api/OnboardingApi.php - About 3 hrs to fix

                      Method getFulfillmentPolicyByNameRequest has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function getFulfillmentPolicyByNameRequest($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 getFulfillmentPolicyByName');
                      Severity: Major
                      Found in src/Sell/Account/V1/Api/FulfillmentPolicyApi.php - About 3 hrs to fix

                        Method getSalesTaxRequest has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function getSalesTaxRequest($country_code, $jurisdiction_id)
                            {
                                // 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 getSalesTax');
                        Severity: Major
                        Found in src/Sell/Account/V1/Api/SalesTaxApi.php - About 3 hrs to fix

                          Method getPaymentsProgramRequest has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function getPaymentsProgramRequest($marketplace_id, $payments_program_type)
                              {
                                  // 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 getPaymentsProgram');
                          Severity: Major
                          Found in src/Sell/Account/V1/Api/PaymentsProgramApi.php - About 3 hrs to fix

                            Method deleteSalesTaxRequest has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function deleteSalesTaxRequest($country_code, $jurisdiction_id)
                                {
                                    // 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 deleteSalesTax');
                            Severity: Major
                            Found in src/Sell/Account/V1/Api/SalesTaxApi.php - About 3 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language