Showing 3,709 of 3,709 total issues
Topic
has 30 functions (exceeds 20 allowed). Consider refactoring. Open
class Topic implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
DestinationApi
has 30 functions (exceeds 20 allowed). Consider refactoring. Open
class DestinationApi
{
/**
* @var ClientInterface
*/
CharitySearchResponse
has 30 functions (exceeds 20 allowed). Consider refactoring. Open
class CharitySearchResponse implements ModelInterface, \ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
Method getCompatibilityPropertyValuesRequest
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getCompatibilityPropertyValuesRequest($category_tree_id, $compatibility_property, $category_id, $filter = null)
{
// Verify the required parameter 'category_tree_id' is set.
if ($category_tree_id === null || (\is_array($category_tree_id) && count($category_tree_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $category_tree_id when calling getCompatibilityPropertyValues');
File ShippingOption.php
has 318 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File PurchasedRate.php
has 318 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File ItemPromotionResponse.php
has 318 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
File SetReturnPolicyResponse.php
has 318 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of the trollandtoad/ebay-sdk-php package.
*
Method __construct
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __construct(array $data = null)
{
$this->container['item_id'] = $data['item_id'] ?? null;
$this->container['availability'] = $data['availability'] ?? null;
$this->container['title'] = $data['title'] ?? null;
Function downloadFileRequest
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function downloadFileRequest($file_id, $x_ebay_c_marketplace_id, $range = null)
{
// Verify the required parameter 'file_id' is set.
if ($file_id === null || (\is_array($file_id) && count($file_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $file_id when calling downloadFile');
- 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 initiateGuestCheckoutSessionRequest
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function initiateGuestCheckoutSessionRequest($x_ebay_c_marketplace_id, $x_ebay_c_enduserctx = null, $create_guest_checkout_session_request_v2 = null)
{
// 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 initiateGuestCheckoutSession');
- 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 createItemDraftRequest
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function createItemDraftRequest($x_ebay_c_marketplace_id, $content_language = null, $item_draft = null)
{
// 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 createItemDraft');
- 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 getKeywordRequest
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function getKeywordRequest($campaign_id, $keyword_id)
{
// 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 getKeyword');
- 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 getAdGroupRequest
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function getAdGroupRequest($ad_group_id, $campaign_id)
{
// 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 getAdGroup');
- 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 deleteAdRequest
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function deleteAdRequest($ad_id, $campaign_id)
{
// 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 deleteAd');
- 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 getAdRequest
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function getAdRequest($ad_id, $campaign_id)
{
// 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 getAd');
- 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 updateItemPromotionRequest
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function updateItemPromotionRequest($promotion_id, $item_promotion = null)
{
// Verify the required parameter 'promotion_id' is set.
if ($promotion_id === null || (\is_array($promotion_id) && count($promotion_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $promotion_id when calling updateItemPromotion');
- 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 updateItemPriceMarkdownPromotionRequest
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function updateItemPriceMarkdownPromotionRequest($promotion_id, $item_price_markdown = null)
{
// Verify the required parameter 'promotion_id' is set.
if ($promotion_id === null || (\is_array($promotion_id) && count($promotion_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $promotion_id when calling updateItemPriceMarkdownPromotion');
- 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 getPaymentsProgramRequest
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function getPaymentsProgramRequest($marketplace_id, $payments_program_type)
{
// 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 getPaymentsProgram');
- 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 getSalesTaxRequest
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
public function getSalesTaxRequest($country_code, $jurisdiction_id)
{
// Verify the required parameter 'country_code' is set.
if ($country_code === null || (\is_array($country_code) && count($country_code) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $country_code when calling getSalesTax');
- 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"