Code Duplication    Length = 15-16 lines in 2 locations

Tests/Units/Model/Serializer.php 1 location

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

Tests/Units/UnitOfWork.php 1 location

@@ 522-536 (lines=15) @@
519
        return $cartItemMetadata;
520
    }
521
522
    private function getCartItemDetailMetadata()
523
    {
524
        $cartItemDetailMetadata = new ClassMetadata(
525
            'cart_item_details',
526
            'Mapado\RestClientSdk\Tests\Model\JsonLd\CartItemDetail',
527
            ''
528
        );
529
530
        $cartItemDetailMetadata->setAttributeList([
531
            new Attribute('@id', 'id', 'string', true),
532
            new Attribute('name'),
533
        ]);
534
535
        return $cartItemDetailMetadata;
536
    }
537
}
538