@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$params = require __DIR__ . '/params.php'; |
|
4 | -$db = require __DIR__ . '/db.php'; |
|
5 | -$translations = require __DIR__ . '/translations.php'; |
|
3 | +$params = require __DIR__.'/params.php'; |
|
4 | +$db = require __DIR__.'/db.php'; |
|
5 | +$translations = require __DIR__.'/translations.php'; |
|
6 | 6 | |
7 | 7 | $config = [ |
8 | 8 | 'id' => 'yii2_template_multilanguage', |
9 | 9 | 'version' => '1.0.0', |
10 | 10 | 'basePath' => dirname(__DIR__), |
11 | 11 | 'homeUrl' => YII_DEBUG ? 'http://yii2-template-multilanguage' : 'http://yii2-template-multilanguage', |
12 | - 'bootstrap' => ['log'], |
|
12 | + 'bootstrap' => [ 'log' ], |
|
13 | 13 | 'language' => 'en-US', |
14 | 14 | 'aliases' => [ |
15 | 15 | '@bower' => '@vendor/bower-asset', |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'targets' => [ |
52 | 52 | [ |
53 | 53 | 'class' => 'yii\log\FileTarget', |
54 | - 'levels' => ['error', 'warning'], |
|
54 | + 'levels' => [ 'error', 'warning' ], |
|
55 | 55 | ], |
56 | 56 | ], |
57 | 57 | ], |
@@ -101,18 +101,18 @@ discard block |
||
101 | 101 | |
102 | 102 | if (YII_ENV_DEV) { |
103 | 103 | // configuration adjustments for 'dev' environment |
104 | - $config['bootstrap'][] = 'debug'; |
|
105 | - $config['modules']['debug'] = [ |
|
104 | + $config[ 'bootstrap' ][ ] = 'debug'; |
|
105 | + $config[ 'modules' ][ 'debug' ] = [ |
|
106 | 106 | 'class' => 'yii\debug\Module', |
107 | 107 | // uncomment the following to add your IP if you are not connecting from localhost. |
108 | - 'allowedIPs' => ['127.0.0.1', '::1', '*'], |
|
108 | + 'allowedIPs' => [ '127.0.0.1', '::1', '*' ], |
|
109 | 109 | ]; |
110 | 110 | |
111 | - $config['bootstrap'][] = 'gii'; |
|
112 | - $config['modules']['gii'] = [ |
|
111 | + $config[ 'bootstrap' ][ ] = 'gii'; |
|
112 | + $config[ 'modules' ][ 'gii' ] = [ |
|
113 | 113 | 'class' => 'yii\gii\Module', |
114 | 114 | // uncomment the following to add your IP if you are not connecting from localhost. |
115 | - 'allowedIPs' => ['127.0.0.1', '::1', '*'], |
|
115 | + 'allowedIPs' => [ '127.0.0.1', '::1', '*' ], |
|
116 | 116 | ]; |
117 | 117 | } |
118 | 118 |