Code Duplication    Length = 14-14 lines in 2 locations

Routing/Loader/RestXmlCollectionLoader.php 1 location

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

Routing/Loader/RestYamlCollectionLoader.php 1 location

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