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