Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 48-54 (lines=7) @@
45
     * @param PropertyMetadataFactoryInterface       $propertyMetadataFactory
46
     * @param QueryItemExtensionInterface[]          $itemExtensions
47
     */
48
    public function __construct(ManagerRegistry $managerRegistry, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, array $itemExtensions = [])
49
    {
50
        $this->managerRegistry = $managerRegistry;
51
        $this->propertyNameCollectionFactory = $propertyNameCollectionFactory;
52
        $this->propertyMetadataFactory = $propertyMetadataFactory;
53
        $this->itemExtensions = $itemExtensions;
54
    }
55
56
    /**
57
     * {@inheritdoc}

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

@@ 50-57 (lines=8) @@
47
     * @param QueryCollectionExtensionInterface[]    $collectionExtensions
48
     * @param QueryItemExtensionInterface[]          $itemExtensions
49
     */
50
    public function __construct(ManagerRegistry $managerRegistry, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, array $collectionExtensions = [], array $itemExtensions = [])
51
    {
52
        $this->managerRegistry = $managerRegistry;
53
        $this->propertyNameCollectionFactory = $propertyNameCollectionFactory;
54
        $this->propertyMetadataFactory = $propertyMetadataFactory;
55
        $this->collectionExtensions = $collectionExtensions;
56
        $this->itemExtensions = $itemExtensions;
57
    }
58
59
    /**
60
     * {@inheritdoc}