| Conditions | 4 |
| Paths | 5 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function init() |
||
| 26 | { |
||
| 27 | parent::init(); |
||
| 28 | |||
| 29 | if (!empty($this->grid->filterModel)) { |
||
| 30 | if (!$this->filterInputOptions['id']) { |
||
| 31 | $this->filterInputOptions['id'] = $this->attribute; |
||
| 32 | } |
||
| 33 | if (!$this->filter) { |
||
| 34 | $this->filter = AccountCombo::widget([ |
||
| 35 | 'attribute' => $this->attribute, |
||
| 36 | 'model' => $this->grid->filterModel, |
||
| 37 | 'formElementSelector' => 'td', |
||
| 38 | ]); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 48 |