Showing 2,539 of 3,709 total issues
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 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 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 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 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 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"
Further reading
Method deserialize
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function deserialize($data, $class, $httpHeaders = null)
{
if ($data === null) {
return null;
}
Method deserialize
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function deserialize($data, $class, $httpHeaders = null)
{
if ($data === null) {
return null;
}
Method getItemGroupFeedRequest
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getItemGroupFeedRequest($accept, $x_ebay_c_marketplace_id, $feed_scope, $category_id, $range = null, $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 getItemGroupFeed');
Method deserialize
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function deserialize($data, $class, $httpHeaders = null)
{
if ($data === null) {
return null;
}
Method deserialize
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function deserialize($data, $class, $httpHeaders = null)
{
if ($data === null) {
return null;
}
Method deserialize
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function deserialize($data, $class, $httpHeaders = null)
{
if ($data === null) {
return null;
}
Method deserialize
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function deserialize($data, $class, $httpHeaders = null)
{
if ($data === null) {
return null;
}
Method deserialize
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function deserialize($data, $class, $httpHeaders = null)
{
if ($data === null) {
return null;
}
Method deserialize
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function deserialize($data, $class, $httpHeaders = null)
{
if ($data === null) {
return null;
}
Method deserialize
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function deserialize($data, $class, $httpHeaders = null)
{
if ($data === null) {
return null;
}