Showing 3,709 of 3,709 total issues
Function getSubscriptionsRequest
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
Open
public function getSubscriptionsRequest($limit = null, $continuation_token = null)
{
$resourcePath = '/subscription';
$formParams = [];
$queryParams = [];
- Read upRead up
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
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File FileMetadata.php
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File PricingSummary.php
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File InventoryLocationResponse.php
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File SetPaymentPolicyResponse.php
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File FulfillmentPolicyRequest.php
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File ShippingService.php
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File InventoryLocationResponse.php
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File Video.php
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File PromotionReportApi.php
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
Method getAccessRequest
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAccessRequest()
{
$resourcePath = '/access';
$formParams = [];
$queryParams = [];
Method getSigningKeysRequest
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSigningKeysRequest()
{
$resourcePath = '/signing_key';
$formParams = [];
$queryParams = [];
Method findSellerStandardsProfilesRequest
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function findSellerStandardsProfilesRequest()
{
$resourcePath = '/seller_standards_profile';
$formParams = [];
$queryParams = [];
Method checkCompatibilityWithHttpInfo
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 {
Method getItemsByItemGroupWithHttpInfo
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getItemsByItemGroupWithHttpInfo($item_group_id)
{
$request = $this->getItemsByItemGroupRequest($item_group_id);
try {
Method addItemWithHttpInfo
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addItemWithHttpInfo($add_cart_item_input = null)
{
$request = $this->addItemRequest($add_cart_item_input);
try {
Method searchWithHttpInfo
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 {
Method getItemsWithHttpInfo
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getItemsWithHttpInfo($item_ids = null, $item_group_ids = null)
{
$request = $this->getItemsRequest($item_ids, $item_group_ids);
try {
Method updateQuantityWithHttpInfo
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateQuantityWithHttpInfo($update_cart_item_input = null)
{
$request = $this->updateQuantityRequest($update_cart_item_input);
try {