Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
26 | protected function searchField() |
||
27 | { |
||
28 | if (isset($this->htmlOptions['class'])) { |
||
29 | $this->htmlOptions['class'] .= ' search-query'; |
||
30 | } else { |
||
31 | $this->htmlOptions['class'] = 'search-query'; |
||
32 | } |
||
33 | |||
34 | $this->setPlaceholder(); |
||
35 | echo $this->getPrepend(); |
||
36 | echo $this->form->textField($this->model, $this->attribute, $this->htmlOptions); |
||
37 | echo $this->getAppend(); |
||
38 | echo $this->getError() . $this->getHint(); |
||
39 | } |
||
40 | } |
||
41 |