Showing 2,539 of 3,709 total issues
Function getItemSnapshotFeedRequest
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public function getItemSnapshotFeedRequest($accept, $x_ebay_c_marketplace_id, $range, $category_id, $snapshot_date)
{
// Verify the required parameter 'accept' is set.
if ($accept === null || (\is_array($accept) && count($accept) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $accept when calling getItemSnapshotFeed');
- 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 getItemFeedRequest
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public function getItemFeedRequest($accept, $x_ebay_c_marketplace_id, $range, $feed_scope, $category_id, $date = null)
{
// Verify the required parameter 'accept' is set.
if ($accept === null || (\is_array($accept) && count($accept) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $accept when calling getItemFeed');
- 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 EventItem.php
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File Transaction.php
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File AdReportMetadataApi.php
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File PaymentDispute.php
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
SellerLegalInfo
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class SellerLegalInfo implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
FileMetadata
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class FileMetadata implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
PricingSummary
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class PricingSummary implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
FulfillmentPolicyRequest
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class FulfillmentPolicyRequest implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
ShippingService
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class ShippingService implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
InventoryLocationResponse
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class InventoryLocationResponse implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
SetPaymentPolicyResponse
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class SetPaymentPolicyResponse implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
InventoryLocationResponse
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class InventoryLocationResponse implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
Video
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class Video implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
Method searchRequest
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function searchRequest($aspect_filter = null, $category_ids = null, $epid = null, $fieldgroups = null, $filter = null, $gtin = null, $limit = null, $offset = null, $q = null, $sort = null)
{
$resourcePath = '/item_sales/search';
$formParams = [];
$queryParams = [];
File ListingViolationApi.php
has 371 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
Method searchByImageRequest
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function searchByImageRequest($aspect_filter = null, $category_ids = null, $charity_ids = null, $fieldgroups = null, $filter = null, $limit = null, $offset = null, $sort = null, $search_by_image_request = null)
{
$resourcePath = '/item_summary/search_by_image';
$formParams = [];
$queryParams = [];
Function updateBidRequest
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function updateBidRequest($ad_id, $campaign_id, $update_bid_percentage_request)
{
// Verify the required parameter 'ad_id' is set.
if ($ad_id === null || (\is_array($ad_id) && count($ad_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $ad_id when calling updateBid');
- 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 suggestBidsRequest
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public function suggestBidsRequest($ad_group_id, $campaign_id, $targeted_bid_request)
{
// Verify the required parameter 'ad_group_id' is set.
if ($ad_group_id === null || (\is_array($ad_group_id) && count($ad_group_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $ad_group_id when calling suggestBids');
- 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"