Showing 2,539 of 3,709 total issues
Function createCampaignRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function createCampaignRequest($create_campaign_request)
{
// Verify the required parameter 'create_campaign_request' is set.
if ($create_campaign_request === null || (\is_array($create_campaign_request) && count($create_campaign_request) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $create_campaign_request when calling createCampaign');
- 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 createReportTaskRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function createReportTaskRequest($create_report_task)
{
// Verify the required parameter 'create_report_task' is set.
if ($create_report_task === null || (\is_array($create_report_task) && count($create_report_task) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $create_report_task when calling createReportTask');
- 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 optOutOfProgramRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function optOutOfProgramRequest($program)
{
// Verify the required parameter 'program' is set.
if ($program === null || (\is_array($program) && count($program) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $program when calling optOutOfProgram');
- 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 createPaymentPolicyRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function createPaymentPolicyRequest($payment_policy_request)
{
// Verify the required parameter 'payment_policy_request' is set.
if ($payment_policy_request === null || (\is_array($payment_policy_request) && count($payment_policy_request) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $payment_policy_request when calling createPaymentPolicy');
- 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 optInToProgramRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function optInToProgramRequest($program)
{
// Verify the required parameter 'program' is set.
if ($program === null || (\is_array($program) && count($program) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $program when calling optInToProgram');
- 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 createReturnPolicyRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function createReturnPolicyRequest($return_policy_request)
{
// Verify the required parameter 'return_policy_request' is set.
if ($return_policy_request === null || (\is_array($return_policy_request) && count($return_policy_request) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $return_policy_request when calling createReturnPolicy');
- 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 updateShippingCostRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function updateShippingCostRequest($rate_table_id, $rate_table_update = null)
{
// Verify the required parameter 'rate_table_id' is set.
if ($rate_table_id === null || (\is_array($rate_table_id) && count($rate_table_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $rate_table_id when calling updateShippingCost');
- 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 createFulfillmentPolicyRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function createFulfillmentPolicyRequest($fulfillment_policy_request)
{
// Verify the required parameter 'fulfillment_policy_request' is set.
if ($fulfillment_policy_request === null || (\is_array($fulfillment_policy_request) && count($fulfillment_policy_request) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $fulfillment_policy_request when calling createFulfillmentPolicy');
- 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 createInventoryTaskRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function createInventoryTaskRequest($create_inventory_task_request, $x_ebay_c_marketplace_id = null)
{
// Verify the required parameter 'create_inventory_task_request' is set.
if ($create_inventory_task_request === null || (\is_array($create_inventory_task_request) && count($create_inventory_task_request) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $create_inventory_task_request when calling createInventoryTask');
- 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 createTaskRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function createTaskRequest($create_task_request, $x_ebay_c_marketplace_id = null)
{
// Verify the required parameter 'create_task_request' is set.
if ($create_task_request === null || (\is_array($create_task_request) && count($create_task_request) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $create_task_request when calling createTask');
- 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 createOrderTaskRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function createOrderTaskRequest($create_order_task_request, $x_ebay_c_marketplace_id = null)
{
// Verify the required parameter 'create_order_task_request' is set.
if ($create_order_task_request === null || (\is_array($create_order_task_request) && count($create_order_task_request) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $create_order_task_request when calling createOrderTask');
- 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 sendOfferToInterestedBuyersRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function sendOfferToInterestedBuyersRequest($x_ebay_c_marketplace_id, $create_offers_request = 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 sendOfferToInterestedBuyers');
- 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 findListingRecommendationsRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function findListingRecommendationsRequest($x_ebay_c_marketplace_id, $filter = null, $limit = null, $offset = null, $find_listing_recommendation_request = 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 findListingRecommendations');
- 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 getShippingFulfillmentRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function getShippingFulfillmentRequest($fulfillment_id, $order_id)
{
// Verify the required parameter 'fulfillment_id' is set.
if ($fulfillment_id === null || (\is_array($fulfillment_id) && count($fulfillment_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $fulfillment_id when calling getShippingFulfillment');
- 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 issueRefundRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function issueRefundRequest($order_id, $issue_refund_request = null)
{
// 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 issueRefund');
- 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 getCharityOrgRequest
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public function getCharityOrgRequest($charity_org_id, $x_ebay_c_marketplace_id)
{
// Verify the required parameter 'charity_org_id' is set.
if ($charity_org_id === null || (\is_array($charity_org_id) && count($charity_org_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $charity_org_id when calling getCharityOrg');
- 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 getPayoutsRequest
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getPayoutsRequest($x_ebay_c_marketplace_id = null, $filter = null, $limit = null, $offset = null, $sort = null)
{
$resourcePath = '/payout';
$formParams = [];
$queryParams = [];
Method getTransactionsRequest
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getTransactionsRequest($x_ebay_c_marketplace_id = null, $filter = null, $limit = null, $offset = null, $sort = null)
{
$resourcePath = '/transaction';
$formParams = [];
$queryParams = [];
Method uploadFileRequest
has 85 lines of code (exceeds 25 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');
Method getCustomerServiceMetricRequest
has 84 lines of code (exceeds 25 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');