Code Duplication    Length = 7-8 lines in 2 locations

src/Bridge/NelmioApiDoc/Parser/ApiPlatformParser.php 1 location

@@ 48-54 (lines=7) @@
45
    private $propertyMetadataFactory;
46
    private $nameConverter;
47
48
    public function __construct(ResourceMetadataFactoryInterface $resourceMetadataFactory, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, NameConverterInterface $nameConverter = null)
49
    {
50
        $this->resourceMetadataFactory = $resourceMetadataFactory;
51
        $this->propertyNameCollectionFactory = $propertyNameCollectionFactory;
52
        $this->propertyMetadataFactory = $propertyMetadataFactory;
53
        $this->nameConverter = $nameConverter;
54
    }
55
56
    /**
57
     * {@inheritdoc}

src/Bridge/Doctrine/Orm/Extension/EagerLoadingExtension.php 1 location

@@ 38-45 (lines=8) @@
35
    private $maxJoins;
36
    private $forceEager;
37
38
    public function __construct(PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, ResourceMetadataFactoryInterface $resourceMetadataFactory, int $maxJoins = 30, bool $forceEager = true)
39
    {
40
        $this->propertyMetadataFactory = $propertyMetadataFactory;
41
        $this->propertyNameCollectionFactory = $propertyNameCollectionFactory;
42
        $this->resourceMetadataFactory = $resourceMetadataFactory;
43
        $this->maxJoins = $maxJoins;
44
        $this->forceEager = $forceEager;
45
    }
46
47
    /**
48
     * Gets serializer groups once if available, if not it returns the $options array.