Code Duplication    Length = 7-8 lines in 2 locations

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}

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

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