Code Duplication    Length = 13-13 lines in 2 locations

code/control/models/PageBuildController.php 1 location

@@ 10-22 (lines=13) @@
7
{
8
    protected $myBaseClass = 'Page';
9
10
    protected function primaryThingsToBuild()
11
    {
12
        return $this->addKeysToThingsToBuild([
13
            ['singular_name',       'text',                                      '',                       false],
14
            ['plural_name',         'text',                                      '',                       false],
15
            ['db',                  'text',                                     'dbFields',                true],
16
            ['belongs_to',          'text',                                     'possibleRelations',       true],
17
            ['has_one',             'text',                                     'possibleRelations',       true],
18
            ['has_many',            'text',                                     'possibleRelations',       true],
19
            ['many_many',           'text',                                     'possibleRelations',       true],
20
            ['belongs_many_many',   'text',                                     'possibleRelations',       true]
21
        ]);
22
    }
23
24
    protected function secondaryThingsToBuild()
25
    {

code/control/models/DataObjectBuildController.php 1 location

@@ 23-35 (lines=13) @@
20
    }
21
22
23
    protected function primaryThingsToBuild()
24
    {
25
        return $this->addKeysToThingsToBuild([
26
            ['singular_name',       'text',                                      '',                       false],
27
            ['plural_name',         'text',                                      '',                       false],
28
            ['db',                  'text',                                     'dbFields',                true],
29
            ['belongs_to',          'text',                                     'possibleRelations',       true],
30
            ['has_one',             'text',                                     'possibleRelations',       true],
31
            ['has_many',            'text',                                     'possibleRelations',       true],
32
            ['many_many',           'text',                                     'possibleRelations',       true],
33
            ['belongs_many_many',   'text',                                     'possibleRelations',       true]
34
        ]);
35
    }
36
37
    protected function secondaryThingsToBuild()
38
    {