brandon14/ebay-sdk-php

View on GitHub

Showing 2,539 of 3,709 total issues

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

    public function getCharityOrgByLegacyIdRequest($x_ebay_c_marketplace_id, $legacy_charity_org_id)
    {
        // Verify the required parameter 'x_ebay_c_marketplace_id' is set.
        if ($x_ebay_c_marketplace_id === null || (\is_array($x_ebay_c_marketplace_id) && count($x_ebay_c_marketplace_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $x_ebay_c_marketplace_id when calling getCharityOrgByLegacyId');
Severity: Minor
Found in src/Commerce/Charity/V1/Api/CharityOrgApi.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 getCompatibilityPropertiesRequest has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCompatibilityPropertiesRequest($category_tree_id, $category_id)
    {
        // Verify the required parameter 'category_tree_id' is set.
        if ($category_tree_id === null || (\is_array($category_tree_id) && count($category_tree_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $category_tree_id when calling getCompatibilityProperties');
Severity: Minor
Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.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 createInventoryLocationRequest has 81 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

    Method updateInventoryLocationRequest has 81 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Configuration
      {
          /**
           * @var Configuration
           */
      Severity: Minor
      Found in src/Buy/Browse/V1/Configuration.php - About 3 hrs to fix

        Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Configuration
        {
            /**
             * @var Configuration
             */
        Severity: Minor
        Found in src/Buy/Deal/V1/Configuration.php - About 3 hrs to fix

          Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class Configuration
          {
              /**
               * @var Configuration
               */
          Severity: Minor
          Found in src/Buy/FeedBeta/V1/Configuration.php - About 3 hrs to fix

            Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class Configuration
            {
                /**
                 * @var Configuration
                 */
            Severity: Minor
            Found in src/Buy/MarketplaceInsightsBeta/V1/Configuration.php - About 3 hrs to fix

              Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Configuration
              {
                  /**
                   * @var Configuration
                   */
              Severity: Minor
              Found in src/Buy/Feed/V1/Configuration.php - About 3 hrs to fix

                Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class Configuration
                {
                    /**
                     * @var Configuration
                     */
                Severity: Minor
                Found in src/Buy/OfferBeta/V1/Configuration.php - About 3 hrs to fix

                  Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class Configuration
                  {
                      /**
                       * @var Configuration
                       */
                  Severity: Minor
                  Found in src/Buy/MarketingBeta/V1/Configuration.php - About 3 hrs to fix

                    Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class Configuration
                    {
                        /**
                         * @var Configuration
                         */
                    Severity: Minor
                    Found in src/Developer/KeyManagement/V1/Configuration.php - About 3 hrs to fix

                      Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class Configuration
                      {
                          /**
                           * @var Configuration
                           */
                      Severity: Minor
                      Found in src/Developer/AnalyticsBeta/V1/Configuration.php - About 3 hrs to fix

                        Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class Configuration
                        {
                            /**
                             * @var Configuration
                             */
                        Severity: Minor
                        Found in src/Buy/Order/V2/Configuration.php - About 3 hrs to fix

                          Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class Configuration
                          {
                              /**
                               * @var Configuration
                               */
                          Severity: Minor
                          Found in src/Sell/Metadata/V1/Configuration.php - About 3 hrs to fix

                            Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class Configuration
                            {
                                /**
                                 * @var Configuration
                                 */
                            Severity: Minor
                            Found in src/Sell/Logistics/V1/Configuration.php - About 3 hrs to fix

                              Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class Configuration
                              {
                                  /**
                                   * @var Configuration
                                   */
                              Severity: Minor
                              Found in src/Developer/ClientRegistration/V1/Configuration.php - About 3 hrs to fix

                                Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class Configuration
                                {
                                    /**
                                     * @var Configuration
                                     */
                                Severity: Minor
                                Found in src/Sell/Analytics/V1/Configuration.php - About 3 hrs to fix

                                  Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class Configuration
                                  {
                                      /**
                                       * @var Configuration
                                       */
                                  Severity: Minor
                                  Found in src/Sell/Finances/V1/Configuration.php - About 3 hrs to fix

                                    Configuration has 27 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class Configuration
                                    {
                                        /**
                                         * @var Configuration
                                         */
                                    Severity: Minor
                                    Found in src/Sell/ListingBeta/V1/Configuration.php - About 3 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language