| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | public function generateElement() |
||
| 10 | { |
||
| 11 | $return = '<div class="row">'; |
||
| 12 | |||
| 13 | $elements = $this->getElement()->getElements(); |
||
| 14 | $returnElements = []; |
||
| 15 | foreach ($elements as $key => $element) { |
||
| 16 | $element->addClass('form-control'); |
||
| 17 | $element->setAttrib('style', 'padding-left:5px; padding-right: 0;'); |
||
| 18 | $returnElements[] = '<div class="col col-xs-4" style="max-width:' . ($key == 'day' ? 95 : 130) . 'px;">' |
||
| 19 | . $element->render() |
||
| 20 | . '</div>'; |
||
| 21 | } |
||
| 22 | |||
| 23 | $return .= implode(' ', $returnElements); |
||
| 24 | $return .= '</div>'; |
||
| 25 | |||
| 26 | return $return; |
||
| 27 | } |
||
| 29 |