Code Duplication    Length = 10-10 lines in 2 locations

src/Kunstmaan/GeneratorBundle/Generator/DefaultSiteGenerator.php 2 locations

@@ 128-137 (lines=10) @@
125
            $this->renderSingleFile($sourceDir, $targetDir, 'SearchPage.php', $parameters);
126
        }
127
128
        if ($this->demosite) {
129
            $relPath = '/Entity/PageParts/';
130
            $sourceDir = $this->skeletonDir.$relPath;
131
            $targetDir = $this->bundle->getPath().$relPath;
132
133
            $this->renderSingleFile($sourceDir, $targetDir, 'PageBannerPagePart.php', $parameters);
134
            $this->renderSingleFile($sourceDir, $targetDir, 'ServicePagePart.php', $parameters);
135
            $this->renderSingleFile($sourceDir, $targetDir, 'UspPagePart.php', $parameters);
136
            $this->renderSingleFile($sourceDir, $targetDir, 'BikesListPagePart.php', $parameters);
137
        }
138
139
        if ($this->demosite) {
140
            $relPath = '/Entity/';
@@ 170-179 (lines=10) @@
167
            $this->renderSingleFile($sourceDir, $targetDir, 'FormPageAdminType.php', $parameters);
168
        }
169
170
        if ($this->demosite) {
171
            $relPath = '/Form/PageParts/';
172
            $sourceDir = $this->skeletonDir.$relPath;
173
            $targetDir = $this->bundle->getPath().$relPath;
174
175
            $this->renderSingleFile($sourceDir, $targetDir, 'PageBannerPagePartAdminType.php', $parameters);
176
            $this->renderSingleFile($sourceDir, $targetDir, 'ServicePagePartAdminType.php', $parameters);
177
            $this->renderSingleFile($sourceDir, $targetDir, 'UspPagePartAdminType.php', $parameters);
178
            $this->renderSingleFile($sourceDir, $targetDir, 'BikesListPagePartAdminType.php', $parameters);
179
        }
180
181
        if ($this->demosite) {
182
            $relPath = '/Form/';