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

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