@@ -32,13 +32,13 @@ |
||
32 | 32 | $dotenv->required('YII_DEBUG', ['', '0', '1', 'true', true]); |
33 | 33 | $dotenv->required('YII_ENV', ['dev', 'prod', 'test']); |
34 | 34 | $dotenv->required([ |
35 | - 'YII_TRACE_LEVEL', |
|
36 | - 'APP_NAME', |
|
37 | - 'APP_TITLE', |
|
38 | - 'APP_ADMIN_EMAIL', |
|
39 | - 'APP_LANGUAGES', |
|
40 | - 'APP_COOKIE_VALIDATION_KEY', |
|
41 | - ])->notEmpty(); |
|
35 | + 'YII_TRACE_LEVEL', |
|
36 | + 'APP_NAME', |
|
37 | + 'APP_TITLE', |
|
38 | + 'APP_ADMIN_EMAIL', |
|
39 | + 'APP_LANGUAGES', |
|
40 | + 'APP_COOKIE_VALIDATION_KEY', |
|
41 | + ])->notEmpty(); |
|
42 | 42 | |
43 | 43 | // Additional validations |
44 | 44 | if (!preg_match('/^[a-z0-9_-]{2,16}$/', getenv('APP_NAME'))) { |
@@ -65,20 +65,20 @@ |
||
65 | 65 | <?php $this->beginBody() ?> |
66 | 66 | |
67 | 67 | <?php Pjax::begin([ |
68 | - 'id' => 'main-content', |
|
69 | - 'timeout' => 5000, |
|
70 | - 'linkSelector' => '.frontend-reload', |
|
71 | - ]) ?> |
|
68 | + 'id' => 'main-content', |
|
69 | + 'timeout' => 5000, |
|
70 | + 'linkSelector' => '.frontend-reload', |
|
71 | + ]) ?> |
|
72 | 72 | |
73 | 73 | <?= TwigWidget::widget(['key' => '_beginBody', 'renderEmpty' => false]) ?> |
74 | 74 | |
75 | 75 | <!-- Navbar --> |
76 | 76 | <?php |
77 | 77 | if (Yii::$app->settings->get('enableTwigNavbar', 'app.layout', false)) { |
78 | - echo \dmstr\modules\prototype\widgets\TwigWidget::widget(['key' => '_navbar']); |
|
79 | - } else { |
|
80 | - echo $this->render('_navbar'); |
|
81 | - } |
|
78 | + echo \dmstr\modules\prototype\widgets\TwigWidget::widget(['key' => '_navbar']); |
|
79 | + } else { |
|
80 | + echo $this->render('_navbar'); |
|
81 | + } |
|
82 | 82 | |
83 | 83 | ?> |
84 | 84 |
@@ -16,9 +16,9 @@ |
||
16 | 16 | // Codeception testing routes |
17 | 17 | if (YII_ENV_TEST && file_exists($rootPath . '/tests/codeception/c3.php')) { |
18 | 18 | define('C3_CODECOVERAGE_ERROR_LOG_FILE', |
19 | - getenv('C3_CODECOVERAGE_ERROR_LOG_FILE')); //Optional (if not set the default c3 output dir will be used) |
|
19 | + getenv('C3_CODECOVERAGE_ERROR_LOG_FILE')); //Optional (if not set the default c3 output dir will be used) |
|
20 | 20 | define('C3_CODECEPTION_CONFIG_PATH', |
21 | - getenv('C3_CODECEPTION_CONFIG_PATH')); //Optional (if not set the default c3 output dir will be used) |
|
21 | + getenv('C3_CODECEPTION_CONFIG_PATH')); //Optional (if not set the default c3 output dir will be used) |
|
22 | 22 | require_once $rootPath . '/tests/codeception/c3.php'; |
23 | 23 | } |
24 | 24 |