| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 5 | public function renderFieldBlock() |
|
| 29 | { |
||
| 30 | 5 | $formGroup = $this->block; |
|
| 31 | 5 | $class = $formGroup->getAttribute('class'); |
|
| 32 | 5 | $formGroup->setAttribute('class', $class.'form-group'); |
|
| 33 | 5 | $formGroup->appendChild($this->label); |
|
| 34 | 5 | $formGroup->appendChild($this->element); |
|
| 35 | 5 | if (!is_null($this->errors)) { |
|
| 36 | 2 | $formGroup->appendChild($this->errors); |
|
| 37 | } |
||
| 38 | 5 | return $formGroup; |
|
| 39 | } |
||
| 40 | |||
| 41 | } |