brandon14/ebay-sdk-php

View on GitHub
src/Sell/Inventory/V1/Api/OfferApi.php

Summary

Maintainability
F
1 mo
Test Coverage

File OfferApi.php has 1967 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Major
Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 5 days to fix

    OfferApi has 65 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class OfferApi
    {
        /**
         * @var ClientInterface
         */
    Severity: Major
    Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 1 day to fix

      Function updateOfferRequest has a Cognitive Complexity of 31 (exceeds 5 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: Minor
      Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 4 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 createOfferRequest has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
      Open

          public function createOfferRequest($content_language, $ebay_offer_details_with_keys)
          {
              // 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 createOffer');
      Severity: Minor
      Found in src/Sell/Inventory/V1/Api/OfferApi.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 getOffersRequest has 89 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getOffersRequest($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
          {
              $resourcePath = '/offer';
              $formParams = [];
              $queryParams = [];
      Severity: Major
      Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 3 hrs to fix

        Function withdrawOfferByInventoryItemGroupRequest has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
        Open

            public function withdrawOfferByInventoryItemGroupRequest($withdraw_by_inventory_item_group_request)
            {
                // Verify the required parameter 'withdraw_by_inventory_item_group_request' is set.
                if ($withdraw_by_inventory_item_group_request === null || (\is_array($withdraw_by_inventory_item_group_request) && count($withdraw_by_inventory_item_group_request) === 0)) {
                    throw new \InvalidArgumentException('Missing the required parameter $withdraw_by_inventory_item_group_request when calling withdrawOfferByInventoryItemGroup');
        Severity: Minor
        Found in src/Sell/Inventory/V1/Api/OfferApi.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 bulkPublishOfferRequest has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
        Open

            public function bulkPublishOfferRequest($bulk_offer)
            {
                // Verify the required parameter 'bulk_offer' is set.
                if ($bulk_offer === null || (\is_array($bulk_offer) && count($bulk_offer) === 0)) {
                    throw new \InvalidArgumentException('Missing the required parameter $bulk_offer when calling bulkPublishOffer');
        Severity: Minor
        Found in src/Sell/Inventory/V1/Api/OfferApi.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 bulkCreateOfferRequest has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
        Open

            public function bulkCreateOfferRequest($bulk_ebay_offer_details_with_keys)
            {
                // Verify the required parameter 'bulk_ebay_offer_details_with_keys' is set.
                if ($bulk_ebay_offer_details_with_keys === null || (\is_array($bulk_ebay_offer_details_with_keys) && count($bulk_ebay_offer_details_with_keys) === 0)) {
                    throw new \InvalidArgumentException('Missing the required parameter $bulk_ebay_offer_details_with_keys when calling bulkCreateOffer');
        Severity: Minor
        Found in src/Sell/Inventory/V1/Api/OfferApi.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 publishOfferByInventoryItemGroupRequest has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
        Open

            public function publishOfferByInventoryItemGroupRequest($publish_by_inventory_item_group_request)
            {
                // Verify the required parameter 'publish_by_inventory_item_group_request' is set.
                if ($publish_by_inventory_item_group_request === null || (\is_array($publish_by_inventory_item_group_request) && count($publish_by_inventory_item_group_request) === 0)) {
                    throw new \InvalidArgumentException('Missing the required parameter $publish_by_inventory_item_group_request when calling publishOfferByInventoryItemGroup');
        Severity: Minor
        Found in src/Sell/Inventory/V1/Api/OfferApi.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 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 createOfferRequest has 69 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function createOfferRequest($content_language, $ebay_offer_details_with_keys)
              {
                  // 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 createOffer');
          Severity: Major
          Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

            Function publishOfferRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
            Open

                public function publishOfferRequest($offer_id)
                {
                    // Verify the required parameter 'offer_id' is set.
                    if ($offer_id === null || (\is_array($offer_id) && count($offer_id) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $offer_id when calling publishOffer');
            Severity: Minor
            Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 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 getListingFeesRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getListingFeesRequest($offer_keys_with_id = null)
                {
                    $resourcePath = '/offer/get_listing_fees';
                    $formParams = [];
                    $queryParams = [];
            Severity: Minor
            Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 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 getOfferRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getOfferRequest($offer_id)
                {
                    // Verify the required parameter 'offer_id' is set.
                    if ($offer_id === null || (\is_array($offer_id) && count($offer_id) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $offer_id when calling getOffer');
            Severity: Minor
            Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 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 deleteOfferRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
            Open

                public function deleteOfferRequest($offer_id)
                {
                    // Verify the required parameter 'offer_id' is set.
                    if ($offer_id === null || (\is_array($offer_id) && count($offer_id) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $offer_id when calling deleteOffer');
            Severity: Minor
            Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 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 withdrawOfferRequest has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
            Open

                public function withdrawOfferRequest($offer_id)
                {
                    // Verify the required parameter 'offer_id' is set.
                    if ($offer_id === null || (\is_array($offer_id) && count($offer_id) === 0)) {
                        throw new \InvalidArgumentException('Missing the required parameter $offer_id when calling withdrawOffer');
            Severity: Minor
            Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 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 withdrawOfferRequest has 64 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method getOfferRequest has 64 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Method publishOfferRequest has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Method deleteOfferRequest has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

                    Method publishOfferByInventoryItemGroupRequest has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      Method withdrawOfferByInventoryItemGroupRequest has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Method bulkCreateOfferRequest has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method bulkPublishOfferRequest has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Method getListingFeesRequest has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function getListingFeesRequest($offer_keys_with_id = null)
                                {
                                    $resourcePath = '/offer/get_listing_fees';
                                    $formParams = [];
                                    $queryParams = [];
                            Severity: Major
                            Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

                              Method updateOfferWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function updateOfferWithHttpInfo($content_language, $offer_id, $ebay_offer_details_with_id)
                                  {
                                      $request = $this->updateOfferRequest($content_language, $offer_id, $ebay_offer_details_with_id);
                              
                                      try {
                              Severity: Major
                              Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

                                Method createOfferWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function createOfferWithHttpInfo($content_language, $ebay_offer_details_with_keys)
                                    {
                                        $request = $this->createOfferRequest($content_language, $ebay_offer_details_with_keys);
                                
                                        try {
                                Severity: Major
                                Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

                                  Method getListingFeesWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getListingFeesWithHttpInfo($offer_keys_with_id = null)
                                      {
                                          $request = $this->getListingFeesRequest($offer_keys_with_id);
                                  
                                          try {
                                  Severity: Major
                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

                                    Method getOffersWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function getOffersWithHttpInfo($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                        {
                                            $request = $this->getOffersRequest($format, $limit, $marketplace_id, $offset, $sku);
                                    
                                            try {
                                    Severity: Major
                                    Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

                                      Method withdrawOfferWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function withdrawOfferWithHttpInfo($offer_id)
                                          {
                                              $request = $this->withdrawOfferRequest($offer_id);
                                      
                                              try {
                                      Severity: Major
                                      Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

                                        Method publishOfferWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function publishOfferWithHttpInfo($offer_id)
                                            {
                                                $request = $this->publishOfferRequest($offer_id);
                                        
                                                try {
                                        Severity: Major
                                        Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

                                          Method bulkCreateOfferWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                              public function bulkCreateOfferWithHttpInfo($bulk_ebay_offer_details_with_keys)
                                              {
                                                  $request = $this->bulkCreateOfferRequest($bulk_ebay_offer_details_with_keys);
                                          
                                                  try {
                                          Severity: Major
                                          Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

                                            Method publishOfferByInventoryItemGroupWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                                public function publishOfferByInventoryItemGroupWithHttpInfo($publish_by_inventory_item_group_request)
                                                {
                                                    $request = $this->publishOfferByInventoryItemGroupRequest($publish_by_inventory_item_group_request);
                                            
                                                    try {
                                            Severity: Major
                                            Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

                                              Method bulkPublishOfferWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                  public function bulkPublishOfferWithHttpInfo($bulk_offer)
                                                  {
                                                      $request = $this->bulkPublishOfferRequest($bulk_offer);
                                              
                                                      try {
                                              Severity: Major
                                              Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

                                                Method getOfferWithHttpInfo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    public function getOfferWithHttpInfo($offer_id)
                                                    {
                                                        $request = $this->getOfferRequest($offer_id);
                                                
                                                        try {
                                                Severity: Major
                                                Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs to fix

                                                  Function getOffersRequest has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public function getOffersRequest($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                                      {
                                                          $resourcePath = '/offer';
                                                          $formParams = [];
                                                          $queryParams = [];
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 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 updateOfferWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public function updateOfferWithHttpInfo($content_language, $offer_id, $ebay_offer_details_with_id)
                                                      {
                                                          $request = $this->updateOfferRequest($content_language, $offer_id, $ebay_offer_details_with_id);
                                                  
                                                          try {
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 1 hr 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 createOfferWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public function createOfferWithHttpInfo($content_language, $ebay_offer_details_with_keys)
                                                      {
                                                          $request = $this->createOfferRequest($content_language, $ebay_offer_details_with_keys);
                                                  
                                                          try {
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 1 hr 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 withdrawOfferWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public function withdrawOfferWithHttpInfo($offer_id)
                                                      {
                                                          $request = $this->withdrawOfferRequest($offer_id);
                                                  
                                                          try {
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 1 hr 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 getListingFeesWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public function getListingFeesWithHttpInfo($offer_keys_with_id = null)
                                                      {
                                                          $request = $this->getListingFeesRequest($offer_keys_with_id);
                                                  
                                                          try {
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 1 hr 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 bulkPublishOfferWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public function bulkPublishOfferWithHttpInfo($bulk_offer)
                                                      {
                                                          $request = $this->bulkPublishOfferRequest($bulk_offer);
                                                  
                                                          try {
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 1 hr 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 getOfferWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public function getOfferWithHttpInfo($offer_id)
                                                      {
                                                          $request = $this->getOfferRequest($offer_id);
                                                  
                                                          try {
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 1 hr 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 bulkCreateOfferWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public function bulkCreateOfferWithHttpInfo($bulk_ebay_offer_details_with_keys)
                                                      {
                                                          $request = $this->bulkCreateOfferRequest($bulk_ebay_offer_details_with_keys);
                                                  
                                                          try {
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 1 hr 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 getOffersWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public function getOffersWithHttpInfo($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                                      {
                                                          $request = $this->getOffersRequest($format, $limit, $marketplace_id, $offset, $sku);
                                                  
                                                          try {
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 1 hr 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 publishOfferWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public function publishOfferWithHttpInfo($offer_id)
                                                      {
                                                          $request = $this->publishOfferRequest($offer_id);
                                                  
                                                          try {
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 1 hr 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 publishOfferByInventoryItemGroupWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                  Open

                                                      public function publishOfferByInventoryItemGroupWithHttpInfo($publish_by_inventory_item_group_request)
                                                      {
                                                          $request = $this->publishOfferByInventoryItemGroupRequest($publish_by_inventory_item_group_request);
                                                  
                                                          try {
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 1 hr 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 getOffersRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                      public function getOffersRequest($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                                  Severity: Minor
                                                  Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 35 mins to fix

                                                    Method getOffersWithHttpInfo has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                    Open

                                                        public function getOffersWithHttpInfo($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                                    Severity: Minor
                                                    Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 35 mins to fix

                                                      Method getOffers has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                      Open

                                                          public function getOffers($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                                      Severity: Minor
                                                      Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 35 mins to fix

                                                        Method getOffersAsync has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                        Open

                                                            public function getOffersAsync($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                                        Severity: Minor
                                                        Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 35 mins to fix

                                                          Method getOffersAsyncWithHttpInfo has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                          Open

                                                              public function getOffersAsyncWithHttpInfo($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                                          Severity: Minor
                                                          Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 35 mins to fix

                                                            Function deleteOfferWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                            Open

                                                                public function deleteOfferWithHttpInfo($offer_id)
                                                                {
                                                                    $request = $this->deleteOfferRequest($offer_id);
                                                            
                                                                    try {
                                                            Severity: Minor
                                                            Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 35 mins 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 withdrawOfferByInventoryItemGroupWithHttpInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                            Open

                                                                public function withdrawOfferByInventoryItemGroupWithHttpInfo($withdraw_by_inventory_item_group_request)
                                                                {
                                                                    $request = $this->withdrawOfferByInventoryItemGroupRequest($withdraw_by_inventory_item_group_request);
                                                            
                                                                    try {
                                                            Severity: Minor
                                                            Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 35 mins 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

                                                            Similar blocks of code found in 3 locations. Consider refactoring.
                                                            Open

                                                                public function getOffersRequest($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                                                {
                                                                    $resourcePath = '/offer';
                                                                    $formParams = [];
                                                                    $queryParams = [];
                                                            Severity: Major
                                                            Found in src/Sell/Inventory/V1/Api/OfferApi.php and 2 other locations - About 3 days to fix
                                                            src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 789..899
                                                            src/Sell/Fulfillment/V1/Api/OrderApi.php on lines 593..703

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 654.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                            Open

                                                                public function createOfferRequest($content_language, $ebay_offer_details_with_keys)
                                                                {
                                                                    // 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 createOffer');
                                                            Severity: Major
                                                            Found in src/Sell/Inventory/V1/Api/OfferApi.php and 1 other location - About 3 days to fix
                                                            src/Sell/Logistics/V1/Api/ShippingQuoteApi.php on lines 318..407

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 576.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 6 locations. Consider refactoring.
                                                            Open

                                                                public function getOffersWithHttpInfo($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                                                {
                                                                    $request = $this->getOffersRequest($format, $limit, $marketplace_id, $offset, $sku);
                                                            
                                                                    try {
                                                            Severity: Major
                                                            Found in src/Sell/Inventory/V1/Api/OfferApi.php and 5 other locations - About 2 days to fix
                                                            src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 643..708
                                                            src/Sell/Finances/V1/Api/PayoutApi.php on lines 694..759
                                                            src/Sell/Finances/V1/Api/TransactionApi.php on lines 438..503
                                                            src/Sell/Fulfillment/V1/Api/OrderApi.php on lines 447..512
                                                            src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1178..1243

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 573.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 5 locations. Consider refactoring.
                                                            Open

                                                                public function updateOfferWithHttpInfo($content_language, $offer_id, $ebay_offer_details_with_id)
                                                                {
                                                                    $request = $this->updateOfferRequest($content_language, $offer_id, $ebay_offer_details_with_id);
                                                            
                                                                    try {
                                                            Severity: Major
                                                            Found in src/Sell/Inventory/V1/Api/OfferApi.php and 4 other locations - About 2 days to fix
                                                            src/Sell/Analytics/V1/Api/CustomerServiceMetricApi.php on lines 183..248
                                                            src/Sell/Fulfillment/V1/Api/PaymentDisputeApi.php on lines 960..1025
                                                            src/Sell/Marketing/V1/Api/AdApi.php on lines 3901..3966
                                                            src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 1005..1070

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 534.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                            Open

                                                                public function withdrawOfferByInventoryItemGroupRequest($withdraw_by_inventory_item_group_request)
                                                                {
                                                                    // Verify the required parameter 'withdraw_by_inventory_item_group_request' is set.
                                                                    if ($withdraw_by_inventory_item_group_request === null || (\is_array($withdraw_by_inventory_item_group_request) && count($withdraw_by_inventory_item_group_request) === 0)) {
                                                                        throw new \InvalidArgumentException('Missing the required parameter $withdraw_by_inventory_item_group_request when calling withdrawOfferByInventoryItemGroup');
                                                            Severity: Major
                                                            Found in src/Sell/Inventory/V1/Api/OfferApi.php and 1 other location - About 2 days to fix
                                                            src/Sell/Compliance/V1/Api/ListingViolationApi.php on lines 574..654

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 488.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                            Open

                                                                public function getListingFeesRequest($offer_keys_with_id = null)
                                                                {
                                                                    $resourcePath = '/offer/get_listing_fees';
                                                                    $formParams = [];
                                                                    $queryParams = [];
                                                            Severity: Major
                                                            Found in src/Sell/Inventory/V1/Api/OfferApi.php and 1 other location - About 2 days to fix
                                                            src/Developer/KeyManagement/V1/Api/SigningKeyApi.php on lines 313..388

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 451.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 6 locations. Consider refactoring.
                                                            Open

                                                                public function getOffersAsyncWithHttpInfo($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                                                {
                                                                    $returnType = '\TNT\Ebay\Sell\Inventory\V1\Model\Offers';
                                                                    $request = $this->getOffersRequest($format, $limit, $marketplace_id, $offset, $sku);
                                                            
                                                            
                                                            Severity: Major
                                                            Found in src/Sell/Inventory/V1/Api/OfferApi.php and 5 other locations - About 1 day to fix
                                                            src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 746..774
                                                            src/Sell/Finances/V1/Api/PayoutApi.php on lines 797..825
                                                            src/Sell/Finances/V1/Api/TransactionApi.php on lines 541..569
                                                            src/Sell/Fulfillment/V1/Api/OrderApi.php on lines 550..578
                                                            src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1281..1309

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 277.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 6 locations. Consider refactoring.
                                                            Open

                                                                public function getOffersAsync($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
                                                                {
                                                                    return $this->getOffersAsyncWithHttpInfo($format, $limit, $marketplace_id, $offset, $sku)
                                                                        ->then(
                                                                            function ($response) {
                                                            Severity: Major
                                                            Found in src/Sell/Inventory/V1/Api/OfferApi.php and 5 other locations - About 30 mins to fix
                                                            src/Sell/Feed/V1/Api/CustomerServiceMetricTaskApi.php on lines 723..731
                                                            src/Sell/Finances/V1/Api/PayoutApi.php on lines 774..782
                                                            src/Sell/Finances/V1/Api/TransactionApi.php on lines 518..526
                                                            src/Sell/Fulfillment/V1/Api/OrderApi.php on lines 527..535
                                                            src/Sell/Marketing/V1/Api/NegativeKeywordApi.php on lines 1258..1266

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 91.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            There are no issues that match your filters.

                                                            Category
                                                            Status