Showing 2,539 of 3,709 total issues
Function getCharityOrgByLegacyIdRequest
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
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');
- 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
Function getCompatibilityPropertiesRequest
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
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');
- 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
Method createInventoryLocationRequest
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');
Method updateInventoryLocationRequest
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/
Configuration
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
{
/**
* @var Configuration
*/