NewBuilderTemplate::getTemplatesToGenerate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 9
Ratio 100 %

Importance

Changes 0
Metric Value
dl 9
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Admingenerator\GeneratorBundle\Builder\Admin;
4
5
/**
6
 * This builder generates php for New actions
7
 * @author cedric Lombardot
8
 */
9 View Code Duplication
class NewBuilderTemplate extends NewBuilder
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
10
{
11
    /**
12
     * (non-PHPdoc)
13
     * @see \Admingenerator\GeneratorBundle\Builder\BaseBuilder::getTemplatesToGenerate()
14
     */
15
    public function getTemplatesToGenerate()
16
    {
17
        return parent::getTemplatesToGenerate() + array(
18
            'EditBuilderTemplate'.self::TWIG_EXTENSION
19
                => 'Resources/views/'.$this->getBaseGeneratorName().'New/index.html.twig',
20
            'Edit/FormBuilderTemplate'.self::TWIG_EXTENSION
21
                => 'Resources/views/'.$this->getBaseGeneratorName().'New/form.html.twig',
22
        );
23
    }
24
}
25