Code Duplication    Length = 19-21 lines in 2 locations

src/Brendt/Stitcher/Parser/Site/SiteParser.php 1 location

@@ 95-115 (lines=21) @@
92
     * @param SiteMap         $siteMap
93
     * @param array           $metaConfig
94
     */
95
    public function __construct(
96
        string $srcDir,
97
        string $publicDir,
98
        string $environment,
99
        bool $async,
100
        EventDispatcher $eventDispatcher,
101
        PageParser $pageParser,
102
        Htaccess $htaccess,
103
        SiteMap $siteMap,
104
        array $metaConfig = []
105
    ) {
106
        $this->srcDir = $srcDir;
107
        $this->publicDir = $publicDir;
108
        $this->eventDispatcher = $eventDispatcher;
109
        $this->pageParser = $pageParser;
110
        $this->htaccess = $htaccess;
111
        $this->metaConfig = $metaConfig;
112
        $this->async = $async;
113
        $this->environment = $environment;
114
        $this->siteMap = $siteMap;
115
    }
116
117
    /**
118
     * Load a site from YAML configuration files in the `directories.src`/site directory.

src/Brendt/Stitcher/Stitcher.php 1 location

@@ 30-48 (lines=19) @@
27
    private $htaccess;
28
    private $siteMap;
29
30
    public function __construct(
31
        $srcDir,
32
        $publicDir,
33
        $templateDir,
34
        array $cdn,
35
        bool $cdnCache,
36
        SiteParser $siteParser,
37
        Htaccess $htaccess,
38
        SiteMap $siteMap
39
    ) {
40
        $this->srcDir = $srcDir;
41
        $this->publicDir = $publicDir;
42
        $this->templateDir = $templateDir;
43
        $this->cdn = $cdn;
44
        $this->cdnCache = $cdnCache;
45
        $this->siteParser = $siteParser;
46
        $this->htaccess = $htaccess;
47
        $this->siteMap = $siteMap;
48
    }
49
50
    /**
51
     * The core stitcher function. This function will compile the configured site and return an array of parsed