Showing 2,539 of 3,709 total issues
ComplianceDetail
has 28 functions (exceeds 20 allowed). Consider refactoring. Open
class ComplianceDetail implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
PaymentHold
has 28 functions (exceeds 20 allowed). Consider refactoring. Open
class PaymentHold implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
Payment
has 28 functions (exceeds 20 allowed). Consider refactoring. Open
class Payment implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
PaymentDisputeOutcomeDetail
has 28 functions (exceeds 20 allowed). Consider refactoring. Open
class PaymentDisputeOutcomeDetail implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
CancelRequest
has 28 functions (exceeds 20 allowed). Consider refactoring. Open
class CancelRequest implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
Subscription
has 28 functions (exceeds 20 allowed). Consider refactoring. Open
class Subscription implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
Method suggestKeywordsRequest
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function suggestKeywordsRequest($ad_group_id, $campaign_id, $targeted_keyword_request = null)
{
// 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 suggestKeywords');
Method getFeedTypesRequest
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getFeedTypesRequest($continuation_token = null, $feed_scope = null, $limit = null, $marketplace_ids = null)
{
$resourcePath = '/feed_type';
$formParams = [];
$queryParams = [];
Method getTrafficReportRequest
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getTrafficReportRequest($dimension = null, $filter = null, $metric = null, $sort = null)
{
$resourcePath = '/traffic_report';
$formParams = [];
$queryParams = [];
Method updateCustomPolicyRequest
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function updateCustomPolicyRequest($custom_policy_id, $x_ebay_c_marketplace_id, $custom_policy_request)
{
// Verify the required parameter 'custom_policy_id' is set.
if ($custom_policy_id === null || (\is_array($custom_policy_id) && count($custom_policy_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $custom_policy_id when calling updateCustomPolicy');
Method uploadVideoRequest
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function uploadVideoRequest($content_type, $video_id, $content_length = null, $content_range = null, $body = null)
{
// Verify the required parameter 'content_type' is set.
if ($content_type === null || (\is_array($content_type) && count($content_type) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $content_type when calling uploadVideo');
File ItemSummaryApi.php
has 303 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File Rate.php
has 303 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File ItemPromotion.php
has 303 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File ReturnPolicy.php
has 303 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File UserScheduleResponse.php
has 303 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
Function getEventItemsRequest
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
public function getEventItemsRequest($event_ids, $x_ebay_c_marketplace_id, $category_ids = null, $delivery_country = null, $limit = null, $offset = null)
{
// Verify the required parameter 'event_ids' is set.
if ($event_ids === null || (\is_array($event_ids) && count($event_ids) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $event_ids when calling getEventItems');
- 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 createFromShippingQuoteRequest
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
public function createFromShippingQuoteRequest($create_shipment_from_quote_request)
{
// Verify the required parameter 'create_shipment_from_quote_request' is set.
if ($create_shipment_from_quote_request === null || (\is_array($create_shipment_from_quote_request) && count($create_shipment_from_quote_request) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $create_shipment_from_quote_request when calling createFromShippingQuote');
- 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 getPaymentPolicyByNameRequest
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
public function getPaymentPolicyByNameRequest($marketplace_id, $name)
{
// Verify the required parameter 'marketplace_id' is set.
if ($marketplace_id === null || (\is_array($marketplace_id) && count($marketplace_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getPaymentPolicyByName');
- 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 getFulfillmentPolicyByNameRequest
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
public function getFulfillmentPolicyByNameRequest($marketplace_id, $name)
{
// Verify the required parameter 'marketplace_id' is set.
if ($marketplace_id === null || (\is_array($marketplace_id) && count($marketplace_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getFulfillmentPolicyByName');
- 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"