Code Duplication    Length = 7-8 lines in 2 locations

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
    public function supports(string $resourceClass, string $operationName = null, array $context = []): bool
59
    {

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

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