| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function getDataCellValue($model, $key, $index) |
||
| 40 | { |
||
| 41 | return SwitchInput::widget([ |
||
| 42 | 'name' => 'swc' . $key . $model->id, |
||
| 43 | 'clientOptions' => ArrayHelper::merge([ |
||
| 44 | 'state' => (bool) parent::getDataCellValue($model, $key, $index), |
||
| 45 | ], $this->pluginOptions, $this->switchInputOptions), |
||
| 46 | ]); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |