Code Duplication    Length = 10-10 lines in 3 locations

src/Hal/ContextBuilder.php 1 location

@@ 41-50 (lines=10) @@
38
     */
39
    private $nameConverter;
40
41
    public function __construct(ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ResourceMetadataFactoryInterface $resourceMetadataFactory, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, UrlGeneratorInterface $urlGenerator, string $docUri = '', NameConverterInterface $nameConverter = null)
42
    {
43
        $this->resourceNameCollectionFactory = $resourceNameCollectionFactory;
44
        $this->resourceMetadataFactory = $resourceMetadataFactory;
45
        $this->propertyNameCollectionFactory = $propertyNameCollectionFactory;
46
        $this->propertyMetadataFactory = $propertyMetadataFactory;
47
        $this->urlGenerator = $urlGenerator;
48
        $this->nameConverter = $nameConverter;
49
        $this->docUri = $docUri;
50
    }
51
52
    /**
53
     * {@inheritdoc}

src/Hypermedia/ContextBuilder.php 1 location

@@ 40-49 (lines=10) @@
37
     */
38
    private $nameConverter;
39
40
    public function __construct(ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ResourceMetadataFactoryInterface $resourceMetadataFactory, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, UrlGeneratorInterface $urlGenerator, string $docUri = '', NameConverterInterface $nameConverter = null)
41
    {
42
        $this->resourceNameCollectionFactory = $resourceNameCollectionFactory;
43
        $this->resourceMetadataFactory = $resourceMetadataFactory;
44
        $this->propertyNameCollectionFactory = $propertyNameCollectionFactory;
45
        $this->propertyMetadataFactory = $propertyMetadataFactory;
46
        $this->urlGenerator = $urlGenerator;
47
        $this->nameConverter = $nameConverter;
48
        $this->docUri = $docUri;
49
    }
50
51
    /**
52
     * {@inheritdoc}

src/JsonLd/ContextBuilder.php 1 location

@@ 41-50 (lines=10) @@
38
     */
39
    private $nameConverter;
40
41
    public function __construct(ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ResourceMetadataFactoryInterface $resourceMetadataFactory, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, UrlGeneratorInterface $urlGenerator, string $docUri = '', NameConverterInterface $nameConverter = null)
42
    {
43
        $this->resourceNameCollectionFactory = $resourceNameCollectionFactory;
44
        $this->resourceMetadataFactory = $resourceMetadataFactory;
45
        $this->propertyNameCollectionFactory = $propertyNameCollectionFactory;
46
        $this->propertyMetadataFactory = $propertyMetadataFactory;
47
        $this->urlGenerator = $urlGenerator;
48
        $this->nameConverter = $nameConverter;
49
        $this->docUri = $docUri;
50
    }
51
52
    /**
53
     * {@inheritdoc}