Showing 2,539 of 3,709 total issues
ReportTask
has 58 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ReportTask implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
EbayOfferDetailsWithKeys
has 56 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class EbayOfferDetailsWithKeys implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
Order
has 56 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Order implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
EventItem
has 54 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class EventItem implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
Transaction
has 54 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Transaction implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
PaymentDispute
has 54 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PaymentDispute implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
File VideoApi.php
has 477 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
OrderLineItemV2
has 50 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class OrderLineItemV2 implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
EbayOfferDetailsWithId
has 50 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class EbayOfferDetailsWithId implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
PaymentDisputeApi
has 50 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PaymentDisputeApi
{
/**
* @var ClientInterface
*/
PromotionReportDetail
has 48 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PromotionReportDetail implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
Product
has 48 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Product implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
File DealItem.php
has 438 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File EbayOfferDetailsWithAll.php
has 438 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File LineItem.php
has 438 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
ShippingOption
has 46 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ShippingOption implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
PurchasedRate
has 46 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PurchasedRate implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
ItemPromotionResponse
has 46 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ItemPromotionResponse implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
SetReturnPolicyResponse
has 46 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SetReturnPolicyResponse implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
Function deserialize
has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function deserialize($data, $class, $httpHeaders = null)
{
if ($data === null) {
return null;
}
- 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"