Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
33 | 1 | protected function initFormField() |
|
34 | { |
||
35 | 1 | $label = $this->Title ? "<label class='left'>$this->Title</label>" : ''; |
|
36 | 1 | $classes = $this->Title ? '' : ' nolabel'; |
|
37 | |||
38 | 1 | return new LiteralField("LiteralField[$this->ID]", "<div id='$this->Name' class='field text$classes'> |
|
39 | 1 | $label |
|
40 | 1 | <div class='middleColumn literalFieldArea'>" . $this->getSetting('Content') . '</div>' . |
|
41 | '</div>' |
||
42 | 1 | ); |
|
43 | } |
||
44 | } |
||
45 |