Code Duplication    Length = 14-14 lines in 2 locations

Routing/Loader/RestXmlCollectionLoader.php 1 location

@@ 40-53 (lines=14) @@
37
    /**
38
     * @param string[] $formats
39
     */
40
    public function __construct(
41
        FileLocatorInterface $locator,
42
        RestRouteProcessor $processor,
43
        bool $includeFormat = true,
44
        array $formats = [],
45
        string $defaultFormat = null
46
    ) {
47
        parent::__construct($locator);
48
49
        $this->processor = $processor;
50
        $this->includeFormat = $includeFormat;
51
        $this->formats = $formats;
52
        $this->defaultFormat = $defaultFormat;
53
    }
54
55
    /**
56
     * {@inheritdoc}

Routing/Loader/RestYamlCollectionLoader.php 1 location

@@ 40-53 (lines=14) @@
37
    /**
38
     * @param string[] $formats
39
     */
40
    public function __construct(
41
        FileLocatorInterface $locator,
42
        RestRouteProcessor $processor,
43
        bool $includeFormat = true,
44
        array $formats = [],
45
        string $defaultFormat = null
46
    ) {
47
        parent::__construct($locator);
48
49
        $this->processor = $processor;
50
        $this->includeFormat = $includeFormat;
51
        $this->formats = $formats;
52
        $this->defaultFormat = $defaultFormat;
53
    }
54
55
    /**
56
     * {@inheritdoc}