Code Duplication    Length = 8-8 lines in 2 locations

src/Offer/ReadModel/JSONLD/OfferLDProjector.php 1 location

@@ 770-777 (lines=8) @@
767
            'priceCurrency' => $basePrice->getCurrency()->getCode()->toNative(),
768
        ];
769
770
        foreach ($priceInfoUpdated->getPriceInfo()->getTariffs() as $tariff) {
771
            $offerLd->priceInfo[] = [
772
                'category' => 'tariff',
773
                'name' => $tariff->getName()->serialize(),
774
                'price' => $tariff->getPrice()->toFloat(),
775
                'priceCurrency' => $tariff->getCurrency()->getCode()->toNative(),
776
            ];
777
        }
778
779
        return $document->withBody($offerLd);
780
    }

src/Offer/ReadModel/JSONLD/CdbXMLItemBaseImporter.php 1 location

@@ 257-264 (lines=8) @@
254
            ]
255
        ];
256
257
        foreach ($tariffs as $tariff) {
258
            $jsonLD->priceInfo[] = [
259
                'category' => 'tariff',
260
                'name' => $tariff->getName()->serialize(),
261
                'price' => $tariff->getPrice()->toFloat(),
262
                'priceCurrency' => $tariff->getCurrency()->getCode()->toNative(),
263
            ];
264
        }
265
    }
266
}
267