| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 11 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 10 | protected function container($content, Field $field) | ||
| 11 |     { | ||
| 12 | $extensions = $field->getExtensions(); | ||
| 13 | $container = new HTMLElement(Framework::getEditableContainerTag(), [], $content); | ||
| 14 |         if (array_key_exists('label', $extensions)) { | ||
| 15 |             $container->prependContent(new HTMLElement('label', ['for' => $content->getAttribute('id')], $extensions['label'])); | ||
| 16 | } | ||
| 17 |         if (array_key_exists('comment', $extensions)) { | ||
| 18 |             $container->appendContent(new HTMLElement('div', ['class' => 'comment'], $extensions['comment'])); | ||
| 19 | } | ||
| 20 | return $container; | ||
| 21 | } | ||
| 23 |