brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

    public function getCategorySuggestionsRequest($category_tree_id, $q)
    {
        // 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 getCategorySuggestions');
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

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

    public function getItemAspectsForCategoryRequest($category_id, $category_tree_id)
    {
        // Verify the required parameter 'category_id' is set.
        if ($category_id === null || (\is_array($category_id) && count($category_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $category_id when calling getItemAspectsForCategory');
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

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

    public function getCategorySubtreeRequest($category_id, $category_tree_id)
    {
        // Verify the required parameter 'category_id' is set.
        if ($category_id === null || (\is_array($category_id) && count($category_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $category_id when calling getCategorySubtree');
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/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/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/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/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/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/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/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/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
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language