Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
43 | protected function configureFormFields(FormMapper $form) |
||
44 | { |
||
45 | if ($this->getSubject()->getId()) { |
||
46 | $form |
||
47 | ->add('machine_name') |
||
48 | ->add( |
||
49 | 'translations', |
||
50 | 'sonata_type_collection', |
||
51 | array(), |
||
52 | array( |
||
53 | 'edit' => 'inline', |
||
54 | 'inline' => 'table', |
||
55 | ) |
||
56 | ); |
||
57 | } else { |
||
58 | $form |
||
59 | ->add('machine_name'); |
||
60 | } |
||
89 |