brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

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

    public function getNegotiatedPricePoliciesRequest($marketplace_id, $filter = null)
    {
        // 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 getNegotiatedPricePolicies');
Severity: Major
Found in src/Sell/Metadata/V1/Api/MarketplaceApi.php and 6 other locations - About 2 days to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 593..689
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 318..414
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 582..678
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 846..942
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1110..1206
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1638..1734

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 567.

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

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

    public function getListingStructurePoliciesRequest($marketplace_id, $filter = null)
    {
        // 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 getListingStructurePolicies');
Severity: Major
Found in src/Sell/Metadata/V1/Api/MarketplaceApi.php and 6 other locations - About 2 days to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 593..689
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 318..414
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 582..678
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 846..942
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1374..1470
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1638..1734

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 567.

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

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

    public function getAutomotivePartsCompatibilityPoliciesRequest($marketplace_id, $filter = null)
    {
        // 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 getAutomotivePartsCompatibilityPolicies');
Severity: Major
Found in src/Sell/Metadata/V1/Api/MarketplaceApi.php and 6 other locations - About 2 days to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 593..689
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 582..678
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 846..942
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1110..1206
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1374..1470
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1638..1734

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 567.

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

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

    public function getItemRequest($item_id, $fieldgroups = null)
    {
        // Verify the required parameter 'item_id' is set.
        if ($item_id === null || (\is_array($item_id) && count($item_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $item_id when calling getItem');
Severity: Major
Found in src/Buy/Browse/V1/Api/ItemApi.php and 6 other locations - About 2 days to fix
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 318..414
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 582..678
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 846..942
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1110..1206
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1374..1470
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1638..1734

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 567.

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

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

    public function getItemConditionPoliciesRequest($marketplace_id, $filter = null)
    {
        // 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 getItemConditionPolicies');
Severity: Major
Found in src/Sell/Metadata/V1/Api/MarketplaceApi.php and 6 other locations - About 2 days to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 593..689
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 318..414
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 582..678
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1110..1206
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1374..1470
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1638..1734

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 567.

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

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

    public function getExtendedProducerResponsibilityPoliciesRequest($marketplace_id, $filter = null)
    {
        // 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 getExtendedProducerResponsibilityPolicies');
Severity: Major
Found in src/Sell/Metadata/V1/Api/MarketplaceApi.php and 6 other locations - About 2 days to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 593..689
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 318..414
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 846..942
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1110..1206
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1374..1470
src/Sell/Metadata/V1/Api/MarketplaceApi.php on lines 1638..1734

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 567.

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

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

    public function __construct(array $data = null)
    {
        $this->container['applied_promotions'] = $data['applied_promotions'] ?? null;
        $this->container['delivery_cost'] = $data['delivery_cost'] ?? null;
        $this->container['discounted_line_item_cost'] = $data['discounted_line_item_cost'] ?? null;
Severity: Major
Found in src/Sell/Fulfillment/V1/Model/LineItem.php and 2 other locations - About 2 days to fix
src/Buy/Deal/V1/Model/DealItem.php on lines 325..350
src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 325..350

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 565.

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

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

    public function __construct(array $data = null)
    {
        $this->container['available_quantity'] = $data['available_quantity'] ?? null;
        $this->container['category_id'] = $data['category_id'] ?? null;
        $this->container['charity'] = $data['charity'] ?? null;
Severity: Major
Found in src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php and 2 other locations - About 2 days to fix
src/Buy/Deal/V1/Model/DealItem.php on lines 325..350
src/Sell/Fulfillment/V1/Model/LineItem.php on lines 325..350

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 565.

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

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

    public function __construct(array $data = null)
    {
        $this->container['additional_images'] = $data['additional_images'] ?? null;
        $this->container['category_ancestor_ids'] = $data['category_ancestor_ids'] ?? null;
        $this->container['category_id'] = $data['category_id'] ?? null;
Severity: Major
Found in src/Buy/Deal/V1/Model/DealItem.php and 2 other locations - About 2 days to fix
src/Sell/Fulfillment/V1/Model/LineItem.php on lines 325..350
src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 325..350

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 565.

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

Similar blocks of code found in 5 locations. 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');
Severity: Major
Found in src/Commerce/Charity/V1/Api/CharityOrgApi.php and 4 other locations - About 2 days to fix
src/Buy/Deal/V1/Api/EventApi.php on lines 318..410
src/Buy/Feed/V1/Api/FileApi.php on lines 607..699
src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 318..410
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 589..681

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 562.

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

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

    public function getFileRequest($file_id, $x_ebay_c_marketplace_id)
    {
        // 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 getFile');
Severity: Major
Found in src/Buy/Feed/V1/Api/FileApi.php and 4 other locations - About 2 days to fix
src/Buy/Deal/V1/Api/EventApi.php on lines 318..410
src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 318..410
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 589..681
src/Commerce/Charity/V1/Api/CharityOrgApi.php on lines 318..410

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 562.

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

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

    public function getEventRequest($x_ebay_c_marketplace_id, $event_id)
    {
        // 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 getEvent');
Severity: Major
Found in src/Buy/Deal/V1/Api/EventApi.php and 4 other locations - About 2 days to fix
src/Buy/Feed/V1/Api/FileApi.php on lines 607..699
src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 318..410
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 589..681
src/Commerce/Charity/V1/Api/CharityOrgApi.php on lines 318..410

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 562.

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

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

    public function getBiddingRequest($item_id, $x_ebay_c_marketplace_id)
    {
        // Verify the required parameter 'item_id' is set.
        if ($item_id === null || (\is_array($item_id) && count($item_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $item_id when calling getBidding');
Severity: Major
Found in src/Buy/OfferBeta/V1/Api/BiddingApi.php and 4 other locations - About 2 days to fix
src/Buy/Deal/V1/Api/EventApi.php on lines 318..410
src/Buy/Feed/V1/Api/FileApi.php on lines 607..699
src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php on lines 589..681
src/Commerce/Charity/V1/Api/CharityOrgApi.php on lines 318..410

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 562.

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

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

    public function getGuestCheckoutSessionRequest($checkout_session_id, $x_ebay_c_marketplace_id)
    {
        // Verify the required parameter 'checkout_session_id' is set.
        if ($checkout_session_id === null || (\is_array($checkout_session_id) && count($checkout_session_id) === 0)) {
            throw new \InvalidArgumentException('Missing the required parameter $checkout_session_id when calling getGuestCheckoutSession');
Severity: Major
Found in src/Buy/Order/V2/Api/GuestCheckoutSessionApi.php and 4 other locations - About 2 days to fix
src/Buy/Deal/V1/Api/EventApi.php on lines 318..410
src/Buy/Feed/V1/Api/FileApi.php on lines 607..699
src/Buy/OfferBeta/V1/Api/BiddingApi.php on lines 318..410
src/Commerce/Charity/V1/Api/CharityOrgApi.php on lines 318..410

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 562.

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

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

    public function getTrafficReportWithHttpInfo($dimension = null, $filter = null, $metric = null, $sort = null)
    {
        $request = $this->getTrafficReportRequest($dimension, $filter, $metric, $sort);

        try {
Severity: Major
Found in src/Sell/Analytics/V1/Api/TrafficReportApi.php and 1 other location - About 2 days to fix
src/Buy/Feed/V1/Api/FeedTypeApi.php on lines 431..496

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 561.

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

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

    public function getFeedTypesWithHttpInfo($continuation_token = null, $feed_scope = null, $limit = null, $marketplace_ids = null)
    {
        $request = $this->getFeedTypesRequest($continuation_token, $feed_scope, $limit, $marketplace_ids);

        try {
Severity: Major
Found in src/Buy/Feed/V1/Api/FeedTypeApi.php and 1 other location - About 2 days to fix
src/Sell/Analytics/V1/Api/TrafficReportApi.php on lines 185..250

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 561.

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

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

    public function getAdvertisingEligibilityRequest($x_ebay_c_marketplace_id, $program_types = 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 getAdvertisingEligibility');
Severity: Major
Found in src/Sell/Account/V1/Api/AdvertisingEligibilityApi.php and 1 other location - About 2 days to fix
src/Sell/Account/V1/Api/CustomPolicyApi.php on lines 579..671

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 558.

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

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

    public function getCustomPoliciesRequest($x_ebay_c_marketplace_id, $policy_types = 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 getCustomPolicies');
Severity: Major
Found in src/Sell/Account/V1/Api/CustomPolicyApi.php and 1 other location - About 2 days to fix
src/Sell/Account/V1/Api/AdvertisingEligibilityApi.php on lines 318..410

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 558.

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

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

    public function getAdGroupsWithHttpInfo($campaign_id, $ad_group_status = null, $limit = null, $offset = null)
    {
        $request = $this->getAdGroupsRequest($campaign_id, $ad_group_status, $limit, $offset);

        try {
Severity: Major
Found in src/Sell/Marketing/V1/Api/AdGroupApi.php and 2 other locations - About 2 days to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 724..789
src/Sell/Marketing/V1/Api/CampaignApi.php on lines 2603..2668

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 556.

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

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

    public function suggestItemsWithHttpInfo($campaign_id, $category_ids = null, $limit = null, $offset = null)
    {
        $request = $this->suggestItemsRequest($campaign_id, $category_ids, $limit, $offset);

        try {
Severity: Major
Found in src/Sell/Marketing/V1/Api/CampaignApi.php and 2 other locations - About 2 days to fix
src/Buy/Browse/V1/Api/ItemApi.php on lines 724..789
src/Sell/Marketing/V1/Api/AdGroupApi.php on lines 717..782

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 556.

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