@@ -5,6 +5,6 @@ |
||
5 | 5 | |
6 | 6 | <div class="site-index"> |
7 | 7 | |
8 | - <?= \dmstr\modules\prototype\widgets\TwigWidget::widget(['registerMenuItems' => true]) ?> |
|
8 | + <?= \dmstr\modules\prototype\widgets\TwigWidget::widget([ 'registerMenuItems' => true ]) ?> |
|
9 | 9 | |
10 | 10 | </div> |
@@ -5,7 +5,7 @@ |
||
5 | 5 | <?= |
6 | 6 | \yii\widgets\Breadcrumbs::widget( |
7 | 7 | [ |
8 | - 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], |
|
8 | + 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [ ], |
|
9 | 9 | ] |
10 | 10 | ) ?> |
11 | 11 | </div> |
@@ -47,7 +47,7 @@ |
||
47 | 47 | 'class' => 'yii\log\FileTarget', |
48 | 48 | 'logFile' => '@runtime/logs/console.log', |
49 | 49 | //'levels' => ['info', 'trace'], |
50 | - 'logVars' => [], |
|
50 | + 'logVars' => [ ], |
|
51 | 51 | 'enabled' => YII_DEBUG && !YII_ENV_TEST, |
52 | 52 | ], |
53 | 53 | ], |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | Yii::setAlias('@webroot', '@root/web'); |
27 | 27 | |
28 | 28 | // Use a closure to not pollute the global namespace |
29 | -return call_user_func(function () { |
|
29 | +return call_user_func(function() { |
|
30 | 30 | |
31 | 31 | /*function checkFile(){ |
32 | 32 | if (file_exists($file)) { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | "{$configDir}/".APP_TYPE.'.php' => true, |
41 | 41 | "{$configDir}/common-".YII_ENV.'.php' => false, |
42 | 42 | "{$configDir}/".APP_TYPE.'-'.YII_ENV.'.php' => false, |
43 | - "{$configDir}/".APP_TYPE.'-'.((YII_DEBUG)?'debug':'release').'.php' => false, |
|
43 | + "{$configDir}/".APP_TYPE.'-'.((YII_DEBUG) ? 'debug' : 'release').'.php' => false, |
|
44 | 44 | ]; |
45 | 45 | |
46 | 46 | if (!empty(getenv('APP_CONFIG_FILE'))) { |
@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | // Merge additional configurations |
49 | 49 | foreach ($additionalConfigFiles as $alias) { |
50 | 50 | $file = Yii::getAlias($alias); |
51 | - $configFiles[$file] = true; |
|
51 | + $configFiles[ $file ] = true; |
|
52 | 52 | } |
53 | 53 | } |
54 | 54 | |
55 | 55 | // Merge configurations |
56 | - $config = []; |
|
56 | + $config = [ ]; |
|
57 | 57 | //var_dump($configFiles);exit; |
58 | 58 | Yii::trace($configFiles, __METHOD__); |
59 | 59 | foreach ($configFiles as $file => $isRequired) { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | require($rootPath.'/src/config/env.php'); |
7 | 7 | |
8 | 8 | // Define framework & application constants |
9 | -defined('YII_DEBUG') or define('YII_DEBUG', (boolean)getenv('YII_DEBUG')); |
|
9 | +defined('YII_DEBUG') or define('YII_DEBUG', (boolean) getenv('YII_DEBUG')); |
|
10 | 10 | defined('YII_ENV') or define('YII_ENV', getenv('YII_ENV')); |
11 | 11 | defined('APP_TYPE') or define('APP_TYPE', 'web'); |
12 | 12 |
@@ -20,8 +20,8 @@ |
||
20 | 20 | $dotenv->load(); |
21 | 21 | |
22 | 22 | // Basic checks & validation |
23 | -$dotenv->required('YII_DEBUG', ['', '0', '1', 'true', true]); |
|
24 | -$dotenv->required('YII_ENV', ['dev', 'prod', 'test']); |
|
23 | +$dotenv->required('YII_DEBUG', [ '', '0', '1', 'true', true ]); |
|
24 | +$dotenv->required('YII_ENV', [ 'dev', 'prod', 'test' ]); |
|
25 | 25 | $dotenv->required([ |
26 | 26 | 'YII_TRACE_LEVEL', |
27 | 27 | 'APP_NAME', |
@@ -16,7 +16,7 @@ |
||
16 | 16 | 'view' => [ |
17 | 17 | 'renderers' => [ |
18 | 18 | 'twig' => [ |
19 | - 'extensions' => (getenv('TWIG_DEBUG_MODE')) ? [new Twig_Extension_Debug()] : null, |
|
19 | + 'extensions' => (getenv('TWIG_DEBUG_MODE')) ? [ new Twig_Extension_Debug() ] : null, |
|
20 | 20 | 'options' => [ |
21 | 21 | 'debug' => (getenv('TWIG_DEBUG_MODE')) ? true : false, |
22 | 22 | ], |
@@ -5,7 +5,7 @@ |
||
5 | 5 | <?= |
6 | 6 | \yii\widgets\Breadcrumbs::widget( |
7 | 7 | [ |
8 | - 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], |
|
8 | + 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [ ], |
|
9 | 9 | ] |
10 | 10 | ) ?> |
11 | 11 | </div> |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | </tr> |
30 | 30 | <tr> |
31 | 31 | <th>Virtual Host</th> |
32 | - <td><code><?= isset($_SERVER['HTTP_HOST']) ? |
|
33 | - $_SERVER['HTTP_HOST'] : 'n/a' ?></code></td> |
|
32 | + <td><code><?= isset($_SERVER[ 'HTTP_HOST' ]) ? |
|
33 | + $_SERVER[ 'HTTP_HOST' ] : 'n/a' ?></code></td> |
|
34 | 34 | </tr> |
35 | 35 | <tr> |
36 | 36 | <th>Hostname</th> |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | </div> |
47 | 47 | |
48 | 48 | <div class="pull-right"> |
49 | - <?= Html::a(FA::icon(FA::_COG), ['/backend'], ['class' => 'btn btn-default btn-xs']) ?> |
|
49 | + <?= Html::a(FA::icon(FA::_COG), [ '/backend' ], [ 'class' => 'btn btn-default btn-xs' ]) ?> |
|
50 | 50 | </div> |
51 | 51 | <div class="clearfix"></div> |
52 | 52 |