Showing 3,709 of 3,709 total issues
OrderSearchPagedCollection
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
class OrderSearchPagedCollection implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
PricingSummary
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
class PricingSummary implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
DisputeEvidence
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
class DisputeEvidence implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
ProductSearchResponse
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
class ProductSearchResponse implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
CharityOrg
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
class CharityOrg implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
File PromotionReportDetail.php
has 333 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File ConfigApi.php
has 333 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File Product.php
has 333 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
Method getItemFeedRequest
has 99 lines of code (exceeds 25 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');
Method getEventItemsRequest
has 98 lines of code (exceeds 25 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');
Function createShippingQuoteRequest
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public function createShippingQuoteRequest($x_ebay_c_marketplace_id, $shipping_quote_request)
{
// 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 createShippingQuote');
- 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 getCustomerServiceMetricRequest
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public function getCustomerServiceMetricRequest($customer_service_metric_type, $evaluation_marketplace_id, $evaluation_type)
{
// Verify the required parameter 'customer_service_metric_type' is set.
if ($customer_service_metric_type === null || (\is_array($customer_service_metric_type) && count($customer_service_metric_type) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $customer_service_metric_type when calling getCustomerServiceMetric');
- 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 getAdsByInventoryReferenceRequest
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public function getAdsByInventoryReferenceRequest($campaign_id, $inventory_reference_id, $inventory_reference_type)
{
// Verify the required parameter 'campaign_id' is set.
if ($campaign_id === null || (\is_array($campaign_id) && count($campaign_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $campaign_id when calling getAdsByInventoryReference');
- 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 uploadFileRequest
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public function uploadFileRequest($task_id, $creation_date = null, $file_name = null, $modification_date = null, $name = null, $read_date = null, $size = null, $type = null)
{
// Verify the required parameter 'task_id' is set.
if ($task_id === null || (\is_array($task_id) && count($task_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $task_id when calling uploadFile');
- 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 createInventoryLocationRequest
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. 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');
- 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 updateInventoryLocationRequest
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. 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');
- 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 updateScheduleRequest
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public function updateScheduleRequest($schedule_id, $update_user_schedule_request)
{
// Verify the required parameter 'schedule_id' is set.
if ($schedule_id === null || (\is_array($schedule_id) && count($schedule_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $schedule_id when calling updateSchedule');
- 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 createCustomerServiceMetricTaskRequest
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public function createCustomerServiceMetricTaskRequest($accept_language, $create_service_metrics_task_request)
{
// Verify the required parameter 'accept_language' is set.
if ($accept_language === null || (\is_array($accept_language) && count($accept_language) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $accept_language when calling createCustomerServiceMetricTask');
- 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 createOfferRequest
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public function createOfferRequest($content_language, $ebay_offer_details_with_keys)
{
// Verify the required parameter 'content_language' is set.
if ($content_language === null || (\is_array($content_language) && count($content_language) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $content_language when calling createOffer');
- 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 createShippingFulfillmentRequest
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public function createShippingFulfillmentRequest($order_id, $shipping_fulfillment_details)
{
// Verify the required parameter 'order_id' is set.
if ($order_id === null || (\is_array($order_id) && count($order_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $order_id when calling createShippingFulfillment');
- 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"