| Conditions | 5 |
| Paths | 9 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | public function init() |
||
| 50 | { |
||
| 51 | if (empty($this->css)) { |
||
| 52 | if (YII_ENV_DEV) { |
||
| 53 | $this->css = $this->cssDev; |
||
| 54 | } else { |
||
| 55 | $this->css = $this->cssProd; |
||
| 56 | } |
||
| 57 | } |
||
| 58 | if (empty($this->js)) { |
||
| 59 | if (YII_ENV_DEV) { |
||
| 60 | $this->js = $this->jsDev; |
||
| 61 | } else { |
||
| 62 | $this->js = $this->jsProd; |
||
| 63 | } |
||
| 64 | } |
||
| 65 | parent::init(); |
||
| 66 | } |
||
| 68 |