| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 2 | protected function registerClientScript() |
|
| 40 | { |
||
| 41 | 2 | $js = []; |
|
| 42 | 2 | $view = $this->getView(); |
|
| 43 | 2 | IconPickerAsset::register($view); |
|
| 44 | 2 | $id = $this->options['id']; |
|
| 45 | 2 | $options = Json::encode($this->clientOptions); |
|
| 46 | 2 | $js[] = "$('#{$id}').iconpicker($options);"; |
|
| 47 | 2 | $view->registerJs(implode("\n", $js)); |
|
| 48 | 2 | } |
|
| 49 | } |
||
| 50 |