brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

File ObjectSerializer.php has 262 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Minor
Found in src/Sell/Compliance/V1/ObjectSerializer.php - About 2 hrs to fix

    File ObjectSerializer.php has 262 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    /**
     * This file is part of the trollandtoad/ebay-sdk-php package.
     *
    Severity: Minor
    Found in src/Sell/Fulfillment/V1/ObjectSerializer.php - About 2 hrs to fix

      File ObjectSerializer.php has 262 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      /**
       * This file is part of the trollandtoad/ebay-sdk-php package.
       *
      Severity: Minor
      Found in src/Commerce/TranslationBeta/V1/ObjectSerializer.php - About 2 hrs to fix

        File ObjectSerializer.php has 262 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        /**
         * This file is part of the trollandtoad/ebay-sdk-php package.
         *
        Severity: Minor
        Found in src/Commerce/CatalogBeta/V1/ObjectSerializer.php - About 2 hrs to fix

          File ObjectSerializer.php has 262 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          
          /**
           * This file is part of the trollandtoad/ebay-sdk-php package.
           *
          Severity: Minor
          Found in src/Commerce/Notification/V1/ObjectSerializer.php - About 2 hrs to fix

            File ObjectSerializer.php has 262 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            
            /**
             * This file is part of the trollandtoad/ebay-sdk-php package.
             *
            Severity: Minor
            Found in src/Commerce/Taxonomy/V1/ObjectSerializer.php - About 2 hrs to fix

              File ObjectSerializer.php has 262 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              
              /**
               * This file is part of the trollandtoad/ebay-sdk-php package.
               *
              Severity: Minor
              Found in src/Commerce/Charity/V1/ObjectSerializer.php - About 2 hrs to fix

                File ObjectSerializer.php has 262 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                
                /**
                 * This file is part of the trollandtoad/ebay-sdk-php package.
                 *
                Severity: Minor
                Found in src/Commerce/MediaBeta/V1/ObjectSerializer.php - About 2 hrs to fix

                  Method getShoppingCartRequest has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function getShoppingCartRequest()
                      {
                          $resourcePath = '/shopping_cart/';
                          $formParams = [];
                          $queryParams = [];
                  Severity: Major
                  Found in src/Buy/Browse/V1/Api/ShoppingCartApi.php - About 2 hrs to fix

                    Method getSellerFundsSummaryRequest has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function getSellerFundsSummaryRequest($x_ebay_c_marketplace_id = null)
                        {
                            $resourcePath = '/seller_funds_summary';
                            $formParams = [];
                            $queryParams = [];
                    Severity: Major
                    Found in src/Sell/Finances/V1/Api/SellerFundsSummaryApi.php - About 2 hrs to fix

                      Method getReportMetadataRequest has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function getReportMetadataRequest()
                          {
                              $resourcePath = '/ad_report_metadata';
                              $formParams = [];
                              $queryParams = [];
                      Severity: Major
                      Found in src/Sell/Marketing/V1/Api/AdReportMetadataApi.php - About 2 hrs to fix

                        Method getOptedInProgramsRequest has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function getOptedInProgramsRequest()
                            {
                                $resourcePath = '/program/get_opted_in_programs';
                                $formParams = [];
                                $queryParams = [];
                        Severity: Major
                        Found in src/Sell/Account/V1/Api/ProgramApi.php - About 2 hrs to fix

                          Method getPrivilegesRequest has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function getPrivilegesRequest()
                              {
                                  $resourcePath = '/privilege';
                                  $formParams = [];
                                  $queryParams = [];
                          Severity: Major
                          Found in src/Sell/Account/V1/Api/PrivilegeApi.php - About 2 hrs to fix

                            Method getKYCRequest has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function getKYCRequest()
                                {
                                    $resourcePath = '/kyc';
                                    $formParams = [];
                                    $queryParams = [];
                            Severity: Major
                            Found in src/Sell/Account/V1/Api/KycApi.php - About 2 hrs to fix

                              Method getConfigRequest has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function getConfigRequest()
                                  {
                                      $resourcePath = '/config';
                                      $formParams = [];
                                      $queryParams = [];
                              Severity: Major
                              Found in src/Commerce/Notification/V1/Api/ConfigApi.php - About 2 hrs to fix

                                Function getShoppingCartRequest has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function getShoppingCartRequest()
                                    {
                                        $resourcePath = '/shopping_cart/';
                                        $formParams = [];
                                        $queryParams = [];
                                Severity: Minor
                                Found in src/Buy/Browse/V1/Api/ShoppingCartApi.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 getItemsRequest has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function getItemsRequest($item_ids = null, $item_group_ids = null)
                                    {
                                        $resourcePath = '/item/';
                                        $formParams = [];
                                        $queryParams = [];
                                Severity: Minor
                                Found in src/Buy/Browse/V1/Api/ItemApi.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 searchRequest has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function searchRequest($aspect_filter = null, $auto_correct = null, $category_ids = null, $charity_ids = null, $compatibility_filter = null, $epid = null, $fieldgroups = null, $filter = null, $gtin = null, $limit = null, $offset = null, $q = null, $sort = null)
                                    {
                                        $resourcePath = '/item_summary/search';
                                        $formParams = [];
                                        $queryParams = [];
                                Severity: Minor
                                Found in src/Buy/Browse/V1/Api/ItemSummaryApi.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 getRateLimitsRequest has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function getRateLimitsRequest($api_context = null, $api_name = null)
                                    {
                                        $resourcePath = '/rate_limit/';
                                        $formParams = [];
                                        $queryParams = [];
                                Severity: Minor
                                Found in src/Developer/AnalyticsBeta/V1/Api/RateLimitApi.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 getUserRateLimitsRequest has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function getUserRateLimitsRequest($api_context = null, $api_name = null)
                                    {
                                        $resourcePath = '/user_rate_limit/';
                                        $formParams = [];
                                        $queryParams = [];
                                Severity: Minor
                                Found in src/Developer/AnalyticsBeta/V1/Api/UserRateLimitApi.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

                                Severity
                                Category
                                Status
                                Source
                                Language