brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

    public function getSubscriptionsRequest($limit = null, $continuation_token = null)
    {
        $resourcePath = '/subscription';
        $formParams = [];
        $queryParams = [];
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.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

File SellerLegalInfo.php has 258 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/Buy/Browse/V1/Model/SellerLegalInfo.php - About 2 hrs to fix

    File FileMetadata.php has 258 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/Buy/Feed/V1/Model/FileMetadata.php - About 2 hrs to fix

      File PricingSummary.php has 258 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/Buy/Order/V2/Model/PricingSummary.php - About 2 hrs to fix

        File InventoryLocationResponse.php has 258 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/Account/V1/Model/InventoryLocationResponse.php - About 2 hrs to fix

          File SetPaymentPolicyResponse.php has 258 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/Account/V1/Model/SetPaymentPolicyResponse.php - About 2 hrs to fix

            File FulfillmentPolicyRequest.php has 258 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/Account/V1/Model/FulfillmentPolicyRequest.php - About 2 hrs to fix

              File ShippingService.php has 258 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/Account/V1/Model/ShippingService.php - About 2 hrs to fix

                File InventoryLocationResponse.php has 258 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/Inventory/V1/Model/InventoryLocationResponse.php - About 2 hrs to fix

                  File Video.php has 258 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/Model/Video.php - About 2 hrs to fix

                    File PromotionReportApi.php has 257 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/Marketing/V1/Api/PromotionReportApi.php - About 2 hrs to fix

                      Method getAccessRequest has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Method getSigningKeysRequest has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function getSigningKeysRequest()
                            {
                                $resourcePath = '/signing_key';
                                $formParams = [];
                                $queryParams = [];
                        Severity: Major
                        Found in src/Developer/KeyManagement/V1/Api/SigningKeyApi.php - About 2 hrs to fix

                          Method findSellerStandardsProfilesRequest has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

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

                                public function checkCompatibilityWithHttpInfo($item_id, $x_ebay_c_marketplace_id, $compatibility_payload = null)
                                {
                                    $request = $this->checkCompatibilityRequest($item_id, $x_ebay_c_marketplace_id, $compatibility_payload);
                            
                                    try {
                            Severity: Major
                            Found in src/Buy/Browse/V1/Api/ItemApi.php - About 2 hrs to fix

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

                                  public function getItemsByItemGroupWithHttpInfo($item_group_id)
                                  {
                                      $request = $this->getItemsByItemGroupRequest($item_group_id);
                              
                                      try {
                              Severity: Major
                              Found in src/Buy/Browse/V1/Api/ItemApi.php - About 2 hrs to fix

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

                                    public function addItemWithHttpInfo($add_cart_item_input = null)
                                    {
                                        $request = $this->addItemRequest($add_cart_item_input);
                                
                                        try {
                                Severity: Major
                                Found in src/Buy/Browse/V1/Api/ShoppingCartApi.php - About 2 hrs to fix

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

                                      public function searchWithHttpInfo($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)
                                      {
                                          $request = $this->searchRequest($aspect_filter, $auto_correct, $category_ids, $charity_ids, $compatibility_filter, $epid, $fieldgroups, $filter, $gtin, $limit, $offset, $q, $sort);
                                  
                                          try {
                                  Severity: Major
                                  Found in src/Buy/Browse/V1/Api/ItemSummaryApi.php - About 2 hrs to fix

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

                                        public function getItemsWithHttpInfo($item_ids = null, $item_group_ids = null)
                                        {
                                            $request = $this->getItemsRequest($item_ids, $item_group_ids);
                                    
                                            try {
                                    Severity: Major
                                    Found in src/Buy/Browse/V1/Api/ItemApi.php - About 2 hrs to fix

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

                                          public function updateQuantityWithHttpInfo($update_cart_item_input = null)
                                          {
                                              $request = $this->updateQuantityRequest($update_cart_item_input);
                                      
                                              try {
                                      Severity: Major
                                      Found in src/Buy/Browse/V1/Api/ShoppingCartApi.php - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language