Code Duplication    Length = 11-14 lines in 2 locations

src/Kunstmaan/GeneratorBundle/Generator/DefaultSiteGenerator.php 1 location

@@ 78-91 (lines=14) @@
75
     *
76
     * @param array $parameters
77
     */
78
    private function generateControllers(array $parameters)
79
    {
80
        $relPath = '/Controller/';
81
        $sourceDir = $this->skeletonDir.$relPath;
82
        $targetDir = $this->bundle->getPath().$relPath;
83
84
        $this->renderSingleFile($sourceDir, $targetDir, 'DefaultController.php', $parameters, true);
85
86
        if ($this->demosite) {
87
            $this->renderSingleFile($sourceDir, $targetDir, 'BikeAdminListController.php', $parameters, true);
88
        }
89
90
        $this->assistant->writeLine('Generating controllers : <info>OK</info>');
91
    }
92
93
    /**
94
     * Generate admin list classes.

src/Kunstmaan/GeneratorBundle/Generator/ArticleGenerator.php 1 location

@@ 473-483 (lines=11) @@
470
    /**
471
     * @param array $parameters The template parameters
472
     */
473
    public function generateFixtures(array $parameters)
474
    {
475
        $relPath = '/DataFixtures/ORM/ArticleGenerator/';
476
        $sourceDir = $this->skeletonDir.$relPath;
477
        $targetDir = $this->bundle->getPath().$relPath;
478
479
        $filename = 'ArticleFixtures.php';
480
        $this->renderSingleFile($sourceDir, $targetDir, $filename, $parameters, false, $this->entity . $filename);
481
482
        $this->assistant->writeLine('Generating fixtures : <info>OK</info>');
483
    }
484
485
    /**
486
     * Update the getPossibleChildTypes function of the parent Page classes