Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.7085 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 8 | public function renderErrors() |
|
16 | { |
||
17 | 8 | $return = ''; |
|
18 | 8 | if ($this->getElement()->isError() && $this->getElement()->getForm()->getOption('renderElementErrors') !== false) { |
|
|
|||
19 | $errors = $this->getElement()->getErrors(); |
||
20 | $errors_string = implode('<br />', $errors); |
||
21 | $return .= '<div class="help-inline invalid-feedback">' . $errors_string . '</div>'; |
||
22 | } |
||
23 | |||
24 | 8 | return $return; |
|
25 | } |
||
27 |