| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function init() |
||
| 27 | { |
||
| 28 | parent::init(); |
||
| 29 | if (!$this->filterInputOptions['id']) { |
||
| 30 | $this->filterInputOptions['id'] = $this->attribute; |
||
| 31 | } |
||
| 32 | if (!$this->filter && $this->grid->filterModel) { |
||
| 33 | $this->filter = Yii::createObject([ |
||
| 34 | 'class' => $this->comboClass, |
||
| 35 | 'attribute' => $this->attribute, |
||
| 36 | 'model' => $this->grid->filterModel, |
||
| 37 | 'formElementSelector' => 'td', |
||
| 38 | ])->run(); |
||
| 39 | } |
||
| 47 |