Code Duplication    Length = 15-16 lines in 2 locations

Tests/Units/Model/Serializer.php 1 location

@@ 690-705 (lines=16) @@
687
    /**
688
     * @param string $idKey
689
     */
690
    private function getProductMetadata($idKey)
691
    {
692
        $productMetadata = new ClassMetadata(
693
            'products',
694
            'Mapado\RestClientSdk\Tests\Model\JsonLd\Product',
695
            ''
696
        );
697
698
        $productMetadata->setAttributeList([
699
            new Attribute($idKey, 'id', 'string', true),
700
            new Attribute('product_value', 'value'),
701
            new Attribute('currency'),
702
        ]);
703
704
        return $productMetadata;
705
    }
706
707
    /**
708
     * @param string $idKey

Tests/Units/UnitOfWork.php 1 location

@@ 997-1011 (lines=15) @@
994
        return $cartItemMetadata;
995
    }
996
997
    private function getCartItemDetailMetadata()
998
    {
999
        $cartItemDetailMetadata = new ClassMetadata(
1000
            'cart_item_details',
1001
            'Mapado\RestClientSdk\Tests\Model\JsonLd\CartItemDetail',
1002
            ''
1003
        );
1004
1005
        $cartItemDetailMetadata->setAttributeList([
1006
            new Attribute('@id', 'id', 'string', true),
1007
            new Attribute('name'),
1008
        ]);
1009
1010
        return $cartItemDetailMetadata;
1011
    }
1012
}
1013