brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Function getTopicWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getTopicWithHttpInfo($topic_id)
    {
        $request = $this->getTopicRequest($topic_id);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/TopicApi.php - About 1 hr to fix

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 getConfigWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getConfigWithHttpInfo()
    {
        $request = $this->getConfigRequest();

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/ConfigApi.php - About 1 hr to fix

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 createSubscriptionWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function createSubscriptionWithHttpInfo($create_subscription_request = null)
    {
        $request = $this->createSubscriptionRequest($create_subscription_request);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 1 hr to fix

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 getSubscriptionWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getSubscriptionWithHttpInfo($subscription_id)
    {
        $request = $this->getSubscriptionRequest($subscription_id);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 1 hr to fix

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 getVideoWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getVideoWithHttpInfo($video_id)
    {
        $request = $this->getVideoRequest($video_id);

        try {
Severity: Minor
Found in src/Commerce/MediaBeta/V1/Api/VideoApi.php - About 1 hr to fix

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 getPublicKeyWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getPublicKeyWithHttpInfo($public_key_id)
    {
        $request = $this->getPublicKeyRequest($public_key_id);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/PublicKeyApi.php - About 1 hr to fix

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 getSubscriptionsWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getSubscriptionsWithHttpInfo($limit = null, $continuation_token = null)
    {
        $request = $this->getSubscriptionsRequest($limit, $continuation_token);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/SubscriptionApi.php - About 1 hr to fix

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 createDestinationWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function createDestinationWithHttpInfo($destination_request = null)
    {
        $request = $this->createDestinationRequest($destination_request);

        try {
Severity: Minor
Found in src/Commerce/Notification/V1/Api/DestinationApi.php - About 1 hr to fix

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 getCharityOrgsWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCharityOrgsWithHttpInfo($x_ebay_c_marketplace_id, $limit = null, $offset = null, $q = null, $registration_ids = null)
    {
        $request = $this->getCharityOrgsRequest($x_ebay_c_marketplace_id, $limit, $offset, $q, $registration_ids);

        try {
Severity: Minor
Found in src/Commerce/Charity/V1/Api/CharityOrgApi.php - About 1 hr to fix

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 getDefaultCategoryTreeIdWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getDefaultCategoryTreeIdWithHttpInfo($marketplace_id, $accept_language = null)
    {
        $request = $this->getDefaultCategoryTreeIdRequest($marketplace_id, $accept_language);

        try {
Severity: Minor
Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.php - About 1 hr to fix

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 getItemAspectsForCategoryWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getItemAspectsForCategoryWithHttpInfo($category_id, $category_tree_id)
    {
        $request = $this->getItemAspectsForCategoryRequest($category_id, $category_tree_id);

        try {
Severity: Minor
Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.php - About 1 hr to fix

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 getCompatibilityPropertyValuesWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCompatibilityPropertyValuesWithHttpInfo($category_tree_id, $compatibility_property, $category_id, $filter = null)
    {
        $request = $this->getCompatibilityPropertyValuesRequest($category_tree_id, $compatibility_property, $category_id, $filter);

        try {
Severity: Minor
Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.php - About 1 hr to fix

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 getCharityOrgWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCharityOrgWithHttpInfo($charity_org_id, $x_ebay_c_marketplace_id)
    {
        $request = $this->getCharityOrgRequest($charity_org_id, $x_ebay_c_marketplace_id);

        try {
Severity: Minor
Found in src/Commerce/Charity/V1/Api/CharityOrgApi.php - About 1 hr to fix

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 fetchItemAspectsWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function fetchItemAspectsWithHttpInfo($category_tree_id)
    {
        $request = $this->fetchItemAspectsRequest($category_tree_id);

        try {
Severity: Minor
Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.php - About 1 hr to fix

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 getCategorySubtreeWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCategorySubtreeWithHttpInfo($category_id, $category_tree_id)
    {
        $request = $this->getCategorySubtreeRequest($category_id, $category_tree_id);

        try {
Severity: Minor
Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.php - About 1 hr to fix

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 getCompatibilityPropertiesWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCompatibilityPropertiesWithHttpInfo($category_tree_id, $category_id)
    {
        $request = $this->getCompatibilityPropertiesRequest($category_tree_id, $category_id);

        try {
Severity: Minor
Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.php - About 1 hr to fix

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 getCharityOrgByLegacyIdWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCharityOrgByLegacyIdWithHttpInfo($x_ebay_c_marketplace_id, $legacy_charity_org_id)
    {
        $request = $this->getCharityOrgByLegacyIdRequest($x_ebay_c_marketplace_id, $legacy_charity_org_id);

        try {
Severity: Minor
Found in src/Commerce/Charity/V1/Api/CharityOrgApi.php - About 1 hr to fix

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 getCategoryTreeWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCategoryTreeWithHttpInfo($category_tree_id)
    {
        $request = $this->getCategoryTreeRequest($category_tree_id);

        try {
Severity: Minor
Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.php - About 1 hr to fix

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 getCategorySuggestionsWithHttpInfo has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCategorySuggestionsWithHttpInfo($category_tree_id, $q)
    {
        $request = $this->getCategorySuggestionsRequest($category_tree_id, $q);

        try {
Severity: Minor
Found in src/Commerce/Taxonomy/V1/Api/CategoryTreeApi.php - About 1 hr to fix

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

Similar blocks of code found in 4 locations. Consider refactoring.
Open

    protected static $setters = [
        'campaign_ids' => 'setCampaignIds',
        'date_from' => 'setDateFrom',
        'date_to' => 'setDateTo',
        'dimensions' => 'setDimensions',
Severity: Major
Found in src/Sell/Marketing/V1/Model/ReportTask.php and 3 other locations - About 1 hr to fix
src/Sell/Marketing/V1/Model/ReportTask.php on lines 96..118
src/Sell/Marketing/V1/Model/ReportTask.php on lines 179..201
src/Sell/Marketing/V1/Model/ReportTask.php on lines 237..259

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 112.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language