Showing 2,539 of 3,709 total issues
Method findCampaignByAdReferenceRequest
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function findCampaignByAdReferenceRequest($inventory_reference_id = null, $inventory_reference_type = null, $listing_id = null)
{
$resourcePath = '/ad_campaign/find_campaign_by_ad_reference';
$formParams = [];
$queryParams = [];
Method getReportTasksRequest
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getReportTasksRequest($limit = null, $offset = null, $report_task_statuses = null)
{
$resourcePath = '/ad_report_task';
$formParams = [];
$queryParams = [];
Method getSchedulesRequest
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getSchedulesRequest($feed_type, $limit = null, $offset = null)
{
// Verify the required parameter 'feed_type' is set.
if ($feed_type === null || (\is_array($feed_type) && count($feed_type) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $feed_type when calling getSchedules');
Method getScheduleTemplatesRequest
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getScheduleTemplatesRequest($feed_type, $limit = null, $offset = null)
{
// Verify the required parameter 'feed_type' is set.
if ($feed_type === null || (\is_array($feed_type) && count($feed_type) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $feed_type when calling getScheduleTemplates');
Function getMerchandisedProductsRequest
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
public function getMerchandisedProductsRequest($category_id, $metric_name, $aspect_filter = null, $limit = null)
{
// Verify the required parameter 'category_id' is set.
if ($category_id === null || (\is_array($category_id) && count($category_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $category_id when calling getMerchandisedProducts');
- 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 getGuestPurchaseOrderRequest
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
public function getGuestPurchaseOrderRequest($purchase_order_id)
{
// Verify the required parameter 'purchase_order_id' is set.
if ($purchase_order_id === null || (\is_array($purchase_order_id) && count($purchase_order_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $purchase_order_id when calling getGuestPurchaseOrder');
- 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 registerClientRequest
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
public function registerClientRequest($client_settings)
{
// Verify the required parameter 'client_settings' is set.
if ($client_settings === null || (\is_array($client_settings) && count($client_settings) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $client_settings when calling registerClient');
- 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 getPaymentDisputeRequest
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
public function getPaymentDisputeRequest($payment_dispute_id)
{
// Verify the required parameter 'payment_dispute_id' is set.
if ($payment_dispute_id === null || (\is_array($payment_dispute_id) && count($payment_dispute_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $payment_dispute_id when calling getPaymentDispute');
- 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 uploadEvidenceFileRequest
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
public function uploadEvidenceFileRequest($payment_dispute_id)
{
// Verify the required parameter 'payment_dispute_id' is set.
if ($payment_dispute_id === null || (\is_array($payment_dispute_id) && count($payment_dispute_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $payment_dispute_id when calling uploadEvidenceFile');
- 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 getActivitiesRequest
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
public function getActivitiesRequest($payment_dispute_id)
{
// Verify the required parameter 'payment_dispute_id' is set.
if ($payment_dispute_id === null || (\is_array($payment_dispute_id) && count($payment_dispute_id) === 0)) {
throw new \InvalidArgumentException('Missing the required parameter $payment_dispute_id when calling getActivities');
- 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 getKeywordRequest
has 77 lines of code (exceeds 25 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');
Method deleteAdRequest
has 77 lines of code (exceeds 25 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');
Method getAdGroupRequest
has 77 lines of code (exceeds 25 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');
Method getAdRequest
has 77 lines of code (exceeds 25 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');
Method getPaymentsProgramOnboardingRequest
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getPaymentsProgramOnboardingRequest($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 getPaymentsProgramOnboarding');
Method getSalesTaxRequest
has 77 lines of code (exceeds 25 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');
Method getPaymentsProgramRequest
has 77 lines of code (exceeds 25 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');
Method deleteSalesTaxRequest
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function deleteSalesTaxRequest($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 deleteSalesTax');
Method getReturnPolicyByNameRequest
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getReturnPolicyByNameRequest($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 getReturnPolicyByName');
Method getFulfillmentPolicyByNameRequest
has 77 lines of code (exceeds 25 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');