Code Duplication    Length = 14-14 lines in 2 locations

src/Model/Cart/MyLineItemDraft.php 1 location

@@ 36-49 (lines=14) @@
33
 * @method CustomFieldObject getCustom()
34
 * @method MyLineItemDraft setCustom(CustomFieldObject $custom = null)
35
 */
36
class MyLineItemDraft extends JsonObject
37
{
38
    public function fieldDefinitions()
39
    {
40
        return [
41
            'productId' => [static::TYPE => 'string'],
42
            'variantId' => [static::TYPE => 'int'],
43
            'quantity' => [static::TYPE => 'int'],
44
            'supplyChannel' => [static::TYPE => '\Commercetools\Core\Model\Channel\ChannelReference'],
45
            'distributionChannel' => [static::TYPE => '\Commercetools\Core\Model\Channel\ChannelReference'],
46
            'custom' => [static::TYPE => '\Commercetools\Core\Model\CustomField\CustomFieldObject'],
47
        ];
48
    }
49
}
50

src/Model/Common/Asset.php 1 location

@@ 26-39 (lines=14) @@
23
 * @method CustomFieldObject getCustom()
24
 * @method Asset setCustom(CustomFieldObject $custom = null)
25
 */
26
class Asset extends JsonObject
27
{
28
    public function fieldDefinitions()
29
    {
30
        return [
31
            'id' => [static::TYPE => 'string'],
32
            'sources' => [static::TYPE => '\Commercetools\Core\Model\Common\AssetSourceCollection'],
33
            'name' => [static::TYPE => '\Commercetools\Core\Model\Common\LocalizedString'],
34
            'description' => [static::TYPE => '\Commercetools\Core\Model\Common\LocalizedString'],
35
            'tags' => [static::TYPE => 'array'],
36
            'custom' => [static::TYPE => '\Commercetools\Core\Model\CustomField\CustomFieldObject'],
37
        ];
38
    }
39
}
40