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

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