Conditions | 6 |
Paths | 4 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function getConverter() |
||
29 | { |
||
30 | if ($this->_ac === null) { |
||
31 | $this->_ac = Yii::createObject(AssetConverter::class); |
||
32 | } elseif (is_array($this->_ac) || is_string($this->_ac)) { |
||
33 | if (is_array($this->_ac) && !isset($this->_ac['class'])) { |
||
34 | $this->_ac['class'] = AssetConverter::class; |
||
35 | } |
||
36 | $this->_ac = Yii::createObject($this->_ac); |
||
37 | } |
||
38 | |||
39 | return $this->_ac; |
||
40 | } |
||
41 | |||
50 |