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

@@ 71-89 (lines=19) @@
68
     * @param Htaccess   $htaccess
69
     * @param SiteMap    $siteMap
70
     */
71
    public function __construct(
72
        $srcDir,
73
        $publicDir,
74
        $templateDir,
75
        array $cdn,
76
        bool $cdnCache,
77
        SiteParser $siteParser,
78
        Htaccess $htaccess,
79
        SiteMap $siteMap
80
    ) {
81
        $this->srcDir = $srcDir;
82
        $this->publicDir = $publicDir;
83
        $this->templateDir = $templateDir;
84
        $this->cdn = $cdn;
85
        $this->cdnCache = $cdnCache;
86
        $this->siteParser = $siteParser;
87
        $this->htaccess = $htaccess;
88
        $this->siteMap = $siteMap;
89
    }
90
91
    /**
92
     * The core stitcher function. This function will compile the configured site and return an array of parsed