@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | $tests = [ |
3 | - "in_array('mod_rewrite', apache_get_modules());", |
|
4 | - "ini_get('short_open_tag');", |
|
5 | - "ini_get('error_reporting');", |
|
6 | - "phpversion()", |
|
7 | - "php_ini_loaded_file()", |
|
3 | + "in_array('mod_rewrite', apache_get_modules());", |
|
4 | + "ini_get('short_open_tag');", |
|
5 | + "ini_get('error_reporting');", |
|
6 | + "phpversion()", |
|
7 | + "php_ini_loaded_file()", |
|
8 | 8 | ]; |
9 | 9 | foreach ($tests as $i => $test) { |
10 | 10 | $result = eval('return ' . $test . ';'); |
@@ -31,17 +31,17 @@ |
||
31 | 31 | parent::init(); |
32 | 32 | |
33 | 33 | if ($this->module instanceof Module) { |
34 | - // get asset bundles which are defined in the module and register them into the view |
|
35 | - foreach ($this->module->assets as $class) { |
|
36 | - if (!in_array($class, $this->skipModuleAssets) && !in_array('*', $this->skipModuleAssets)) { |
|
37 | - // autoload $class and register with current view |
|
38 | - $this->registerAsset($class); |
|
39 | - } |
|
40 | - } |
|
41 | - // get controller based assets |
|
42 | - foreach ($this->assets as $class) { |
|
43 | - $this->registerAsset($class); |
|
44 | - } |
|
34 | + // get asset bundles which are defined in the module and register them into the view |
|
35 | + foreach ($this->module->assets as $class) { |
|
36 | + if (!in_array($class, $this->skipModuleAssets) && !in_array('*', $this->skipModuleAssets)) { |
|
37 | + // autoload $class and register with current view |
|
38 | + $this->registerAsset($class); |
|
39 | + } |
|
40 | + } |
|
41 | + // get controller based assets |
|
42 | + foreach ($this->assets as $class) { |
|
43 | + $this->registerAsset($class); |
|
44 | + } |
|
45 | 45 | } |
46 | 46 | } |
47 | 47 |