Code Duplication    Length = 8-8 lines in 2 locations

src/Bridge/Doctrine/MongoDB/ItemDataProvider.php 1 location

@@ 42-49 (lines=8) @@
39
     * @param QueryItemExtensionInterface[]          $itemExtensions
40
     * @param ItemDataProviderInterface|null         $decorated
41
     */
42
    public function __construct(ManagerRegistry $managerRegistry, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, array $itemExtensions = [], ItemDataProviderInterface $decorated = null)
43
    {
44
        $this->managerRegistry = $managerRegistry;
45
        $this->propertyNameCollectionFactory = $propertyNameCollectionFactory;
46
        $this->propertyMetadataFactory = $propertyMetadataFactory;
47
        $this->itemExtensions = $itemExtensions;
48
        $this->decorated = $decorated;
49
    }
50
51
    /**
52
     * {@inheritdoc}

src/Bridge/Doctrine/Orm/ItemDataProvider.php 1 location

@@ 44-51 (lines=8) @@
41
     * @param QueryItemExtensionInterface[]          $itemExtensions
42
     * @param ItemDataProviderInterface|null         $decorated
43
     */
44
    public function __construct(ManagerRegistry $managerRegistry, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, array $itemExtensions = [], ItemDataProviderInterface $decorated = null)
45
    {
46
        $this->managerRegistry = $managerRegistry;
47
        $this->propertyNameCollectionFactory = $propertyNameCollectionFactory;
48
        $this->propertyMetadataFactory = $propertyMetadataFactory;
49
        $this->itemExtensions = $itemExtensions;
50
        $this->decorated = $decorated;
51
    }
52
53
    /**
54
     * {@inheritdoc}