brandon14/ebay-sdk-php

View on GitHub

Showing 3,709 of 3,709 total issues

Function getInventoryLocationsRequest has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
Open

    public function getInventoryLocationsRequest($limit = null, $offset = null)
    {
        $resourcePath = '/location';
        $formParams = [];
        $queryParams = [];
Severity: Minor
Found in src/Sell/Inventory/V1/Api/LocationApi.php - About 2 hrs 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 createOrReplaceProductCompatibilityWithHttpInfo has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
Open

    public function createOrReplaceProductCompatibilityWithHttpInfo($content_language, $sku, $compatibility)
    {
        $request = $this->createOrReplaceProductCompatibilityRequest($content_language, $sku, $compatibility);

        try {
Severity: Minor
Found in src/Sell/Inventory/V1/Api/ProductCompatibilityApi.php - About 2 hrs 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 createOrReplaceInventoryItemGroupWithHttpInfo has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
Open

    public function createOrReplaceInventoryItemGroupWithHttpInfo($content_language, $inventory_item_group_key, $inventory_item_group)
    {
        $request = $this->createOrReplaceInventoryItemGroupRequest($content_language, $inventory_item_group_key, $inventory_item_group);

        try {
Severity: Minor
Found in src/Sell/Inventory/V1/Api/InventoryItemGroupApi.php - About 2 hrs 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 getInventoryItemsRequest has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
Open

    public function getInventoryItemsRequest($limit = null, $offset = null)
    {
        $resourcePath = '/inventory_item';
        $formParams = [];
        $queryParams = [];
Severity: Minor
Found in src/Sell/Inventory/V1/Api/InventoryItemApi.php - About 2 hrs 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 createOrReplaceInventoryItemWithHttpInfo has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
Open

    public function createOrReplaceInventoryItemWithHttpInfo($content_language, $sku, $inventory_item)
    {
        $request = $this->createOrReplaceInventoryItemRequest($content_language, $sku, $inventory_item);

        try {
Severity: Minor
Found in src/Sell/Inventory/V1/Api/InventoryItemApi.php - About 2 hrs 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 getOffersRequest has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
Open

    public function getOffersRequest($format = null, $limit = null, $marketplace_id = null, $offset = null, $sku = null)
    {
        $resourcePath = '/offer';
        $formParams = [];
        $queryParams = [];
Severity: Minor
Found in src/Sell/Inventory/V1/Api/OfferApi.php - About 2 hrs 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 getOrdersRequest has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
Open

    public function getOrdersRequest($field_groups = null, $filter = null, $limit = null, $offset = null, $order_ids = null)
    {
        $resourcePath = '/order';
        $formParams = [];
        $queryParams = [];
Severity: Minor
Found in src/Sell/Fulfillment/V1/Api/OrderApi.php - About 2 hrs 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

File EventItemApi.php has 253 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * This file is part of the trollandtoad/ebay-sdk-php package.
 *
Severity: Minor
Found in src/Buy/Deal/V1/Api/EventItemApi.php - About 2 hrs to fix

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

        protected static $getters = [
            'additional_images' => 'getAdditionalImages',
            'category_ancestor_ids' => 'getCategoryAncestorIds',
            'category_id' => 'getCategoryId',
            'commissionable' => 'getCommissionable',
    Severity: Major
    Found in src/Buy/Deal/V1/Model/DealItem.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 96..120
    src/Buy/Deal/V1/Model/DealItem.php on lines 183..207
    src/Buy/Deal/V1/Model/DealItem.php on lines 214..238
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 96..120
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 183..207
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 214..238
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 245..269
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 96..120
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 183..207
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 214..238
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 245..269

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

    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 12 locations. Consider refactoring.
    Open

        protected static $getters = [
            'applied_promotions' => 'getAppliedPromotions',
            'delivery_cost' => 'getDeliveryCost',
            'discounted_line_item_cost' => 'getDiscountedLineItemCost',
            'ebay_collect_and_remit_taxes' => 'getEbayCollectAndRemitTaxes',
    Severity: Major
    Found in src/Sell/Fulfillment/V1/Model/LineItem.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 96..120
    src/Buy/Deal/V1/Model/DealItem.php on lines 183..207
    src/Buy/Deal/V1/Model/DealItem.php on lines 214..238
    src/Buy/Deal/V1/Model/DealItem.php on lines 245..269
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 96..120
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 183..207
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 214..238
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 96..120
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 183..207
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 214..238
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 245..269

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

    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 12 locations. Consider refactoring.
    Open

        protected static $openAPITypes = [
            'applied_promotions' => '\TNT\Ebay\Sell\Fulfillment\V1\Model\AppliedPromotion[]',
            'delivery_cost' => '\TNT\Ebay\Sell\Fulfillment\V1\Model\DeliveryCost',
            'discounted_line_item_cost' => '\TNT\Ebay\Sell\Fulfillment\V1\Model\Amount',
            'ebay_collect_and_remit_taxes' => '\TNT\Ebay\Sell\Fulfillment\V1\Model\EbayCollectAndRemitTax[]',
    Severity: Major
    Found in src/Sell/Fulfillment/V1/Model/LineItem.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 96..120
    src/Buy/Deal/V1/Model/DealItem.php on lines 183..207
    src/Buy/Deal/V1/Model/DealItem.php on lines 214..238
    src/Buy/Deal/V1/Model/DealItem.php on lines 245..269
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 183..207
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 214..238
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 245..269
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 96..120
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 183..207
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 214..238
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 245..269

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

    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 12 locations. Consider refactoring.
    Open

        protected static $openAPITypes = [
            'additional_images' => '\TNT\Ebay\Buy\Deal\V1\Model\Image[]',
            'category_ancestor_ids' => 'string[]',
            'category_id' => 'string',
            'commissionable' => 'bool',
    Severity: Major
    Found in src/Buy/Deal/V1/Model/DealItem.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 183..207
    src/Buy/Deal/V1/Model/DealItem.php on lines 214..238
    src/Buy/Deal/V1/Model/DealItem.php on lines 245..269
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 96..120
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 183..207
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 214..238
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 245..269
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 96..120
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 183..207
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 214..238
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 245..269

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

    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 12 locations. Consider refactoring.
    Open

        protected static $attributeMap = [
            'additional_images' => 'additionalImages',
            'category_ancestor_ids' => 'categoryAncestorIds',
            'category_id' => 'categoryId',
            'commissionable' => 'commissionable',
    Severity: Major
    Found in src/Buy/Deal/V1/Model/DealItem.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 96..120
    src/Buy/Deal/V1/Model/DealItem.php on lines 214..238
    src/Buy/Deal/V1/Model/DealItem.php on lines 245..269
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 96..120
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 183..207
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 214..238
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 245..269
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 96..120
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 183..207
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 214..238
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 245..269

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

    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 12 locations. Consider refactoring.
    Open

        protected static $setters = [
            'available_quantity' => 'setAvailableQuantity',
            'category_id' => 'setCategoryId',
            'charity' => 'setCharity',
            'extended_producer_responsibility' => 'setExtendedProducerResponsibility',
    Severity: Major
    Found in src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 96..120
    src/Buy/Deal/V1/Model/DealItem.php on lines 183..207
    src/Buy/Deal/V1/Model/DealItem.php on lines 214..238
    src/Buy/Deal/V1/Model/DealItem.php on lines 245..269
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 96..120
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 183..207
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 214..238
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 245..269
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 96..120
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 183..207
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 245..269

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

    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 12 locations. Consider refactoring.
    Open

        protected static $getters = [
            'available_quantity' => 'getAvailableQuantity',
            'category_id' => 'getCategoryId',
            'charity' => 'getCharity',
            'extended_producer_responsibility' => 'getExtendedProducerResponsibility',
    Severity: Major
    Found in src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 96..120
    src/Buy/Deal/V1/Model/DealItem.php on lines 183..207
    src/Buy/Deal/V1/Model/DealItem.php on lines 214..238
    src/Buy/Deal/V1/Model/DealItem.php on lines 245..269
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 96..120
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 183..207
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 214..238
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 245..269
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 96..120
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 183..207
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 214..238

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

    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 12 locations. Consider refactoring.
    Open

        protected static $attributeMap = [
            'applied_promotions' => 'appliedPromotions',
            'delivery_cost' => 'deliveryCost',
            'discounted_line_item_cost' => 'discountedLineItemCost',
            'ebay_collect_and_remit_taxes' => 'ebayCollectAndRemitTaxes',
    Severity: Major
    Found in src/Sell/Fulfillment/V1/Model/LineItem.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 96..120
    src/Buy/Deal/V1/Model/DealItem.php on lines 183..207
    src/Buy/Deal/V1/Model/DealItem.php on lines 214..238
    src/Buy/Deal/V1/Model/DealItem.php on lines 245..269
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 96..120
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 214..238
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 245..269
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 96..120
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 183..207
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 214..238
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 245..269

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

    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 12 locations. Consider refactoring.
    Open

        protected static $attributeMap = [
            'available_quantity' => 'availableQuantity',
            'category_id' => 'categoryId',
            'charity' => 'charity',
            'extended_producer_responsibility' => 'extendedProducerResponsibility',
    Severity: Major
    Found in src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 96..120
    src/Buy/Deal/V1/Model/DealItem.php on lines 183..207
    src/Buy/Deal/V1/Model/DealItem.php on lines 214..238
    src/Buy/Deal/V1/Model/DealItem.php on lines 245..269
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 96..120
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 183..207
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 214..238
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 245..269
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 96..120
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 214..238
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 245..269

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

    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 12 locations. Consider refactoring.
    Open

        protected static $setters = [
            'additional_images' => 'setAdditionalImages',
            'category_ancestor_ids' => 'setCategoryAncestorIds',
            'category_id' => 'setCategoryId',
            'commissionable' => 'setCommissionable',
    Severity: Major
    Found in src/Buy/Deal/V1/Model/DealItem.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 96..120
    src/Buy/Deal/V1/Model/DealItem.php on lines 183..207
    src/Buy/Deal/V1/Model/DealItem.php on lines 245..269
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 96..120
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 183..207
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 214..238
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 245..269
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 96..120
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 183..207
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 214..238
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 245..269

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

    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 12 locations. Consider refactoring.
    Open

        protected static $openAPITypes = [
            'available_quantity' => 'int',
            'category_id' => 'string',
            'charity' => '\TNT\Ebay\Sell\Inventory\V1\Model\Charity',
            'extended_producer_responsibility' => '\TNT\Ebay\Sell\Inventory\V1\Model\ExtendedProducerResponsibility',
    Severity: Major
    Found in src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 96..120
    src/Buy/Deal/V1/Model/DealItem.php on lines 183..207
    src/Buy/Deal/V1/Model/DealItem.php on lines 214..238
    src/Buy/Deal/V1/Model/DealItem.php on lines 245..269
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 96..120
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 183..207
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 214..238
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 245..269
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 183..207
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 214..238
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 245..269

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

    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 12 locations. Consider refactoring.
    Open

        protected static $setters = [
            'applied_promotions' => 'setAppliedPromotions',
            'delivery_cost' => 'setDeliveryCost',
            'discounted_line_item_cost' => 'setDiscountedLineItemCost',
            'ebay_collect_and_remit_taxes' => 'setEbayCollectAndRemitTaxes',
    Severity: Major
    Found in src/Sell/Fulfillment/V1/Model/LineItem.php and 11 other locations - About 2 hrs to fix
    src/Buy/Deal/V1/Model/DealItem.php on lines 96..120
    src/Buy/Deal/V1/Model/DealItem.php on lines 183..207
    src/Buy/Deal/V1/Model/DealItem.php on lines 214..238
    src/Buy/Deal/V1/Model/DealItem.php on lines 245..269
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 96..120
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 183..207
    src/Sell/Fulfillment/V1/Model/LineItem.php on lines 245..269
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 96..120
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 183..207
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 214..238
    src/Sell/Inventory/V1/Model/EbayOfferDetailsWithAll.php on lines 245..269

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

    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