| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 13 | public function init() |
|
| 28 | { |
||
| 29 | 13 | $this->setAttribute('type', 'text'); |
|
| 30 | 13 | $this->setAttribute('class', 'form-control'); |
|
| 31 | 13 | $stringTrim = new FilterAdapterZf(new StringTrim()); |
|
| 32 | 13 | $stripTags = new FilterAdapterZf(new StripTags()); |
|
| 33 | 13 | $notEmpty = new ValidatorAdapterZf(new NotEmpty()); |
|
| 34 | 13 | $this->addFilter($stringTrim) |
|
| 35 | 13 | ->addFilter($stripTags) |
|
| 36 | 13 | ->addValidator($notEmpty); |
|
| 37 | 13 | } |
|
| 38 | |||
| 56 | } |