@@ -8,25 +8,25 @@ discard block |
||
8 | 8 | use Yii; |
9 | 9 | |
10 | 10 | // initialize local variables |
11 | -$menuItems = []; |
|
12 | -$languageItems = []; |
|
11 | +$menuItems = [ ]; |
|
12 | +$languageItems = [ ]; |
|
13 | 13 | |
14 | 14 | |
15 | 15 | // prepare languages |
16 | 16 | foreach (Yii::$app->urlManager->languages as $language) { |
17 | - $languageItems[] = [ |
|
18 | - 'url' => ['/', Yii::$app->urlManager->languageParam => $language], |
|
17 | + $languageItems[ ] = [ |
|
18 | + 'url' => [ '/', Yii::$app->urlManager->languageParam => $language ], |
|
19 | 19 | 'label' => $language, |
20 | 20 | ]; |
21 | 21 | } |
22 | 22 | |
23 | 23 | // add language items to menu |
24 | -$menuItems[] = [ |
|
24 | +$menuItems[ ] = [ |
|
25 | 25 | 'label' => Yii::t('app', '{icon} {language}', [ |
26 | 26 | 'icon' => '<i class="glyphicon glyphicon-globe"></i>', |
27 | 27 | 'language' => Yii::$app->language |
28 | 28 | ]), |
29 | - 'options' => ['id' => 'link-languages-menu'], |
|
29 | + 'options' => [ 'id' => 'link-languages-menu' ], |
|
30 | 30 | 'items' => $languageItems, |
31 | 31 | ]; |
32 | 32 | |
@@ -35,39 +35,39 @@ discard block |
||
35 | 35 | if (Yii::$app->user->isGuest) { |
36 | 36 | // unauthorized users |
37 | 37 | //$menuItems[] = ['label' => 'Signup', 'url' => ['/user/registration/register']]; |
38 | - $menuItems[] = [ |
|
38 | + $menuItems[ ] = [ |
|
39 | 39 | 'label' => Yii::t('app', 'Login'), |
40 | - 'url' => ['/user/security/login'], |
|
41 | - 'linkOptions' => ['id' => 'link-login'], |
|
40 | + 'url' => [ '/user/security/login' ], |
|
41 | + 'linkOptions' => [ 'id' => 'link-login' ], |
|
42 | 42 | ]; |
43 | 43 | } else { |
44 | 44 | // logged in users |
45 | - $menuItems[] = [ |
|
45 | + $menuItems[ ] = [ |
|
46 | 46 | 'label' => Yii::t('app', '{icon} {username}', [ |
47 | 47 | 'icon' => '<i class="glyphicon glyphicon-user"></i>', |
48 | 48 | 'username' => Yii::$app->user->identity->username |
49 | 49 | ]), |
50 | - 'options' => ['id' => 'link-user-menu'], |
|
50 | + 'options' => [ 'id' => 'link-user-menu' ], |
|
51 | 51 | 'items' => [ |
52 | 52 | [ |
53 | 53 | 'label' => Yii::t('app', '{icon} Profile', [ |
54 | 54 | 'icon' => '<i class="glyphicon glyphicon-user"></i>' |
55 | 55 | ]), |
56 | - 'url' => ['/user/profile/show', 'id' => Yii::$app->user->id], |
|
56 | + 'url' => [ '/user/profile/show', 'id' => Yii::$app->user->id ], |
|
57 | 57 | ], |
58 | 58 | [ |
59 | 59 | 'label' => Yii::t('app', '{icon} Settings', [ |
60 | 60 | 'icon' => '<i class="glyphicon glyphicon-cog"></i>' |
61 | 61 | ]), |
62 | - 'url' => ['/user/settings/profile'], |
|
62 | + 'url' => [ '/user/settings/profile' ], |
|
63 | 63 | ], |
64 | 64 | '<li class="divider"></li>', |
65 | 65 | [ |
66 | 66 | 'label' => Yii::t('app', '{icon} Logout', [ |
67 | 67 | 'icon' => '<i class="glyphicon glyphicon-log-out"></i>' |
68 | 68 | ]), |
69 | - 'url' => ['/user/security/logout'], |
|
70 | - 'linkOptions' => ['data-method' => 'post', 'id' => 'link-logout'], |
|
69 | + 'url' => [ '/user/security/logout' ], |
|
70 | + 'linkOptions' => [ 'data-method' => 'post', 'id' => 'link-logout' ], |
|
71 | 71 | ], |
72 | 72 | ], |
73 | 73 | ]; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | // render root pages |
89 | 89 | echo Nav::widget( |
90 | 90 | [ |
91 | - 'options' => ['class' => 'navbar-nav'], |
|
91 | + 'options' => [ 'class' => 'navbar-nav' ], |
|
92 | 92 | 'encodeLabels' => false, |
93 | 93 | 'items' => Tree::getMenuItems('root'), |
94 | 94 | ] |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | // render additional menu items (languages, user) |
98 | 98 | echo Nav::widget( |
99 | 99 | [ |
100 | - 'options' => ['class' => 'navbar-nav navbar-right'], |
|
100 | + 'options' => [ 'class' => 'navbar-nav navbar-right' ], |
|
101 | 101 | 'encodeLabels' => false, |
102 | 102 | 'items' => $menuItems, |
103 | 103 | ] |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | <div class="container-layout"> |
13 | 13 | <div class="container-fluid"> |
14 | - <?= Breadcrumbs::widget(['links' => $this->params['breadcrumbs'] ?? []]) ?> |
|
14 | + <?= Breadcrumbs::widget([ 'links' => $this->params[ 'breadcrumbs' ] ?? [ ] ]) ?> |
|
15 | 15 | </div> |
16 | 16 | |
17 | 17 | <div class="container-fluid"> |
@@ -12,7 +12,7 @@ |
||
12 | 12 | <div class="container-layout"> |
13 | 13 | <div class="container"> |
14 | 14 | <?= |
15 | - Breadcrumbs::widget(['links' => $this->params['breadcrumbs'] ?? []]) ?> |
|
15 | + Breadcrumbs::widget([ 'links' => $this->params[ 'breadcrumbs' ] ?? [ ] ]) ?> |
|
16 | 16 | </div> |
17 | 17 | |
18 | 18 | <div class="container"> |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | { |
33 | 33 | switch ($actionID) { |
34 | 34 | case 'config': |
35 | - $additionalOptions = ['level']; |
|
35 | + $additionalOptions = [ 'level' ]; |
|
36 | 36 | break; |
37 | 37 | default: |
38 | - $additionalOptions = []; |
|
38 | + $additionalOptions = [ ]; |
|
39 | 39 | } |
40 | 40 | return ArrayHelper::merge( |
41 | 41 | $additionalOptions, |
@@ -65,14 +65,14 @@ discard block |
||
65 | 65 | public function actionConfig($key = null) |
66 | 66 | { |
67 | 67 | // get config from global variable (TODO) |
68 | - $data = $GLOBALS['config']; |
|
68 | + $data = $GLOBALS[ 'config' ]; |
|
69 | 69 | if ($key) { |
70 | 70 | $keys = explode('.', $key); |
71 | - if (isset($keys[0])) { |
|
72 | - $data = $GLOBALS['config'][$keys[0]]; |
|
71 | + if (isset($keys[ 0 ])) { |
|
72 | + $data = $GLOBALS[ 'config' ][ $keys[ 0 ] ]; |
|
73 | 73 | } |
74 | - if (isset($keys[1])) { |
|
75 | - $data = $GLOBALS['config'][$keys[0]][$keys[1]]; |
|
74 | + if (isset($keys[ 1 ])) { |
|
75 | + $data = $GLOBALS[ 'config' ][ $keys[ 0 ] ][ $keys[ 1 ] ]; |
|
76 | 76 | } |
77 | 77 | } |
78 | 78 | $this->stdout(VarDumper::dumpAsString($data, $this->level)); |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | public function actionVersion() |
95 | 95 | { |
96 | 96 | $this->stdout('Application Version: '); |
97 | - $this->stdout(getenv('APP_NAME') . ' '); |
|
98 | - $this->stdout(APP_VERSION . "\n"); |
|
97 | + $this->stdout(getenv('APP_NAME').' '); |
|
98 | + $this->stdout(APP_VERSION."\n"); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
@@ -108,12 +108,12 @@ discard block |
||
108 | 108 | $this->stdout("=====================\n"); |
109 | 109 | $this->stdout("Initializing application\n"); |
110 | 110 | |
111 | - $this->interactive = (bool)getenv('APP_INTERACTIVE'); |
|
111 | + $this->interactive = (bool) getenv('APP_INTERACTIVE'); |
|
112 | 112 | |
113 | 113 | $this->stdout("\nDatabase\n"); |
114 | 114 | $this->stdout("--------\n"); |
115 | - $this->run('db/create', [getenv('DB_ENV_MYSQL_ROOT_USER'),getenv('DB_ENV_MYSQL_ROOT_PASSWORD')]); |
|
116 | - $this->run('migrate/up', ['interactive' => (bool)getenv('APP_INTERACTIVE')]); |
|
115 | + $this->run('db/create', [ getenv('DB_ENV_MYSQL_ROOT_USER'), getenv('DB_ENV_MYSQL_ROOT_PASSWORD') ]); |
|
116 | + $this->run('migrate/up', [ 'interactive' => (bool) getenv('APP_INTERACTIVE') ]); |
|
117 | 117 | |
118 | 118 | $this->stdout("\nUser\n"); |
119 | 119 | $this->stdout("----\n"); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | 'default' => getenv('APP_ADMIN_PASSWORD') ?: Yii::$app->security->generateRandomString(8), |
124 | 124 | ] |
125 | 125 | ); |
126 | - $this->run('user/create', [getenv('APP_ADMIN_EMAIL'), 'admin', $adminPassword]); |
|
126 | + $this->run('user/create', [ getenv('APP_ADMIN_EMAIL'), 'admin', $adminPassword ]); |
|
127 | 127 | |
128 | 128 | $this->stdout('Initializing modules'); |
129 | 129 | |
@@ -138,8 +138,8 @@ discard block |
||
138 | 138 | $this->stdout("\nCleanup\n"); |
139 | 139 | $this->stdout("-------\n"); |
140 | 140 | $this->run('cache/flush-all'); |
141 | - $this->run('audit/cleanup', ['age' => 30, 'interactive' => (bool)getenv('APP_INTERACTIVE')]); |
|
142 | - $this->run('app/clear-assets', ['interactive' => (bool)getenv('APP_INTERACTIVE')]); |
|
141 | + $this->run('audit/cleanup', [ 'age' => 30, 'interactive' => (bool) getenv('APP_INTERACTIVE') ]); |
|
142 | + $this->run('app/clear-assets', [ 'interactive' => (bool) getenv('APP_INTERACTIVE') ]); |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
@@ -153,20 +153,20 @@ discard block |
||
153 | 153 | $matchRegex = '"^[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]\?[a-z0-9]$"'; |
154 | 154 | |
155 | 155 | // create $cmd command |
156 | - $cmd = 'cd "' . $assets . '" && ls | grep -e ' . $matchRegex . ' | xargs rm -rf '; |
|
156 | + $cmd = 'cd "'.$assets.'" && ls | grep -e '.$matchRegex.' | xargs rm -rf '; |
|
157 | 157 | |
158 | 158 | // Set command |
159 | 159 | $command = new Command($cmd); |
160 | 160 | |
161 | 161 | // Prompt user |
162 | - $delete = $this->confirm("\nDo you really want to delete web assets?", ['default' => true]); |
|
162 | + $delete = $this->confirm("\nDo you really want to delete web assets?", [ 'default' => true ]); |
|
163 | 163 | |
164 | 164 | if ($delete) { |
165 | 165 | // Try to execute $command |
166 | 166 | if ($command->execute()) { |
167 | 167 | $this->stdout("Web assets have been deleted.\n\n"); |
168 | 168 | } else { |
169 | - $this->stderr("\n" . $command->getError() . "\n"); |
|
169 | + $this->stderr("\n".$command->getError()."\n"); |
|
170 | 170 | $this->stderr($command->getStdErr()); |
171 | 171 | } |
172 | 172 | } |
@@ -179,8 +179,8 @@ discard block |
||
179 | 179 | $message = $mailer->compose(); |
180 | 180 | $message |
181 | 181 | ->setTo($to) |
182 | - ->setSubject('Test-Mail from ' . getenv('APP_NAME')) |
|
183 | - ->setTextBody(getenv('APP_TITLE') . ' | ' . getenv('HOSTNAME')); |
|
182 | + ->setSubject('Test-Mail from '.getenv('APP_NAME')) |
|
183 | + ->setTextBody(getenv('APP_TITLE').' | '.getenv('HOSTNAME')); |
|
184 | 184 | |
185 | 185 | if ($message->send()) { |
186 | 186 | $this->stdout('Mail sent'); |
@@ -18,22 +18,22 @@ discard block |
||
18 | 18 | 'db' => [ |
19 | 19 | 'class' => \dmstr\console\controllers\MysqlController::class, |
20 | 20 | 'excludeTables' => [ |
21 | - getenv('DATABASE_TABLE_PREFIX') . 'auth_assignment', |
|
22 | - getenv('DATABASE_TABLE_PREFIX') . 'migration', |
|
23 | - getenv('DATABASE_TABLE_PREFIX') . 'user', |
|
24 | - getenv('DATABASE_TABLE_PREFIX') . 'profile', |
|
25 | - getenv('DATABASE_TABLE_PREFIX') . 'token', |
|
26 | - getenv('DATABASE_TABLE_PREFIX') . 'social_account', |
|
27 | - getenv('DATABASE_TABLE_PREFIX') . 'log', |
|
28 | - getenv('DATABASE_TABLE_PREFIX') . 'session', |
|
29 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_data', |
|
30 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_entry', |
|
31 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_error', |
|
32 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_javascript', |
|
33 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_mail', |
|
34 | - getenv('DATABASE_TABLE_PREFIX') . 'audit_trail', |
|
35 | - getenv('DATABASE_TABLE_PREFIX') . 'dmstr_contact_log', |
|
36 | - getenv('DATABASE_TABLE_PREFIX') . 'queue_manager', |
|
21 | + getenv('DATABASE_TABLE_PREFIX').'auth_assignment', |
|
22 | + getenv('DATABASE_TABLE_PREFIX').'migration', |
|
23 | + getenv('DATABASE_TABLE_PREFIX').'user', |
|
24 | + getenv('DATABASE_TABLE_PREFIX').'profile', |
|
25 | + getenv('DATABASE_TABLE_PREFIX').'token', |
|
26 | + getenv('DATABASE_TABLE_PREFIX').'social_account', |
|
27 | + getenv('DATABASE_TABLE_PREFIX').'log', |
|
28 | + getenv('DATABASE_TABLE_PREFIX').'session', |
|
29 | + getenv('DATABASE_TABLE_PREFIX').'audit_data', |
|
30 | + getenv('DATABASE_TABLE_PREFIX').'audit_entry', |
|
31 | + getenv('DATABASE_TABLE_PREFIX').'audit_error', |
|
32 | + getenv('DATABASE_TABLE_PREFIX').'audit_javascript', |
|
33 | + getenv('DATABASE_TABLE_PREFIX').'audit_mail', |
|
34 | + getenv('DATABASE_TABLE_PREFIX').'audit_trail', |
|
35 | + getenv('DATABASE_TABLE_PREFIX').'dmstr_contact_log', |
|
36 | + getenv('DATABASE_TABLE_PREFIX').'queue_manager', |
|
37 | 37 | 'filefly_hashmap', # TODO: fix prefix in module |
38 | 38 | ], |
39 | 39 | ], |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | 'class' => \yii\log\FileTarget::class, |
80 | 80 | 'logFile' => '@runtime/logs/console.log', |
81 | 81 | //'levels' => ['info', 'trace'], |
82 | - 'logVars' => [], |
|
82 | + 'logVars' => [ ], |
|
83 | 83 | 'dirMode' => YII_ENV_DEV ? 0777 : 0775, |
84 | 84 | 'fileMode' => YII_ENV_DEV ? 0666 : null, |
85 | 85 | 'enabled' => YII_DEBUG && !YII_ENV_TEST, |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -echo json_encode(['status.webserver'=>'OK','status.appserver'=>'OK']); |
|
3 | +echo json_encode([ 'status.webserver'=>'OK', 'status.appserver'=>'OK' ]); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | 'converter' => [ |
92 | 92 | 'class' => 'yii\web\AssetConverter', |
93 | 93 | 'commands' => [ |
94 | - 'less' => ['css', 'nodepkg-linuxstatic lessc {from} {to} --no-color --source-map'], |
|
94 | + 'less' => [ 'css', 'nodepkg-linuxstatic lessc {from} {to} --no-color --source-map' ], |
|
95 | 95 | ], |
96 | 96 | ], |
97 | 97 | ], |
@@ -76,10 +76,10 @@ discard block |
||
76 | 76 | $languages = explode(',', getenv('APP_LANGUAGES')); |
77 | 77 | |
78 | 78 | // prepare asset bundle config |
79 | -$bundles = []; |
|
79 | +$bundles = [ ]; |
|
80 | 80 | if (getenv('APP_ASSET_USE_BUNDLED')) { |
81 | 81 | // include generated asset-bundle configuration |
82 | - $bundles = include Yii::getAlias('@web/bundles') . '/config.php'; |
|
82 | + $bundles = include Yii::getAlias('@web/bundles').'/config.php'; |
|
83 | 83 | // disable loading of bundles skin file, when using bundled assets |
84 | 84 | Yii::$container->set( |
85 | 85 | AdminLteAsset::class, |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | ]; |
97 | 97 | |
98 | 98 | if (getenv('MYSQL_ATTR_SSL_CA')) { |
99 | - $dbAttributes[PDO::MYSQL_ATTR_SSL_CA] = getenv('MYSQL_ATTR_SSL_CA'); |
|
99 | + $dbAttributes[ PDO::MYSQL_ATTR_SSL_CA ] = getenv('MYSQL_ATTR_SSL_CA'); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | $boxLayout = '@backend/views/layouts/box'; |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | return [ |
106 | 106 | 'id' => 'app', |
107 | 107 | 'name' => getenv('APP_TITLE'), |
108 | - 'language' => $languages[0], |
|
108 | + 'language' => $languages[ 0 ], |
|
109 | 109 | 'basePath' => '@app', |
110 | 110 | 'vendorPath' => '@root/vendor', |
111 | 111 | 'runtimePath' => '@root/runtime', |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | ], |
124 | 124 | 'params' => [ |
125 | 125 | 'adminEmail' => getenv('APP_ADMIN_EMAIL'), |
126 | - 'context.menuItems' => [], |
|
126 | + 'context.menuItems' => [ ], |
|
127 | 127 | 'backend.iframe.name' => getenv('APP_PARAMS_BACKEND_IFRAME_NAME') ?: '_self', |
128 | 128 | 'backend.browserSupport' => [ |
129 | 129 | 'Chrome' => 87, |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | 'container' => [ |
140 | 140 | 'definitions' => [ |
141 | 141 | AuthDbManagerComponent::class => [ |
142 | - 'defaultRoles' => ['Default'], |
|
142 | + 'defaultRoles' => [ 'Default' ], |
|
143 | 143 | 'cache' => 'cache' |
144 | 144 | ], |
145 | 145 | AdminController::class => [ |
@@ -163,12 +163,12 @@ discard block |
||
163 | 163 | 'rules' => [ |
164 | 164 | [ |
165 | 165 | 'allow' => true, |
166 | - 'actions' => ['index'], |
|
167 | - 'roles' => ['@'], |
|
166 | + 'actions' => [ 'index' ], |
|
167 | + 'roles' => [ '@' ], |
|
168 | 168 | ], |
169 | 169 | [ |
170 | 170 | 'allow' => true, |
171 | - 'actions' => ['show'], |
|
171 | + 'actions' => [ 'show' ], |
|
172 | 172 | // allow for all logged in users |
173 | 173 | #'roles' => ['@'], |
174 | 174 | // allow only if user has 'user' grant or requested his own profile (check by user->id) |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | if (\Yii::$app->user->can('user')) { |
180 | 180 | return true; |
181 | 181 | } |
182 | - if (\Yii::$app->user->id === (int)Yii::$app->request->getQueryParam('id')) { |
|
182 | + if (\Yii::$app->user->id === (int) Yii::$app->request->getQueryParam('id')) { |
|
183 | 183 | return true; |
184 | 184 | } |
185 | 185 | return false; |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | 'key' => getenv('AMAZON_S3_BUCKET_PUBLIC_KEY'), |
235 | 235 | 'secret' => getenv('AMAZON_S3_BUCKET_SECRET_KEY'), |
236 | 236 | 'bucket' => getenv('AMAZON_S3_BUCKET_NAME'), |
237 | - 'prefix' => getenv('APP_NAME') . '/public', |
|
237 | + 'prefix' => getenv('APP_NAME').'/public', |
|
238 | 238 | 'region' => getenv('AMAZON_S3_BUCKET_REGION') |
239 | 239 | ], |
240 | 240 | 'fsRuntime' => [ |
@@ -281,8 +281,8 @@ discard block |
||
281 | 281 | 'common' => [ |
282 | 282 | 'class' => Target::class, |
283 | 283 | 'url' => 'php://stderr', |
284 | - 'levels' => ['error', 'warning'], |
|
285 | - 'logVars' => [], |
|
284 | + 'levels' => [ 'error', 'warning' ], |
|
285 | + 'logVars' => [ ], |
|
286 | 286 | 'replaceNewline' => APP_TYPE === 'console' ? null : '' |
287 | 287 | ] |
288 | 288 | ] |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | 'transport' => [ |
295 | 295 | 'scheme' => getenv('APP_MAILER_SCHEME') ?: 'smtp', |
296 | 296 | 'host' => getenv('APP_MAILER_HOST'), |
297 | - 'port' => (int)getenv('APP_MAILER_PORT'), |
|
297 | + 'port' => (int) getenv('APP_MAILER_PORT'), |
|
298 | 298 | 'encryption' => getenv('APP_MAILER_ENCRYPTION'), |
299 | 299 | 'username' => getenv('APP_MAILER_USERNAME'), |
300 | 300 | 'password' => getenv('APP_MAILER_PASSWORD') |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | 'charset' => 'UTF-8', |
304 | 304 | 'replyTo' => getenv('APP_MAILER_REPLY_TO'), |
305 | 305 | 'returnPath' => getenv('APP_MAILER_RETURN_PATH'), |
306 | - 'from' => [getenv('APP_MAILER_FROM') => getenv('APP_TITLE')] |
|
306 | + 'from' => [ getenv('APP_MAILER_FROM') => getenv('APP_TITLE') ] |
|
307 | 307 | ] |
308 | 308 | ], |
309 | 309 | 'queue' => [ |
@@ -330,9 +330,9 @@ discard block |
||
330 | 330 | 'user' => [ |
331 | 331 | 'class' => User::class, |
332 | 332 | 'enableAutoLogin' => true, |
333 | - 'loginUrl' => ['/user/security/login'], |
|
333 | + 'loginUrl' => [ '/user/security/login' ], |
|
334 | 334 | 'identityClass' => UserModel::class, |
335 | - 'rootUsers' => ['admin'] |
|
335 | + 'rootUsers' => [ 'admin' ] |
|
336 | 336 | ], |
337 | 337 | 'urlManager' => [ |
338 | 338 | 'class' => UrlManager::class, |
@@ -367,18 +367,18 @@ discard block |
||
367 | 367 | 'auto_reload' => true |
368 | 368 | ], |
369 | 369 | 'globals' => [ |
370 | - 'Html' => ['class' => Html::class], |
|
371 | - 'Json' => ['class' => Json::class], |
|
372 | - 'Tree' => ['class' => Tree::class], |
|
373 | - 'FA' => ['class' => FA::class], |
|
374 | - 'Url' => ['class' => Url::class], |
|
375 | - 'Markdown' => ['class' => Markdown::class] |
|
370 | + 'Html' => [ 'class' => Html::class ], |
|
371 | + 'Json' => [ 'class' => Json::class ], |
|
372 | + 'Tree' => [ 'class' => Tree::class ], |
|
373 | + 'FA' => [ 'class' => FA::class ], |
|
374 | + 'Url' => [ 'class' => Url::class ], |
|
375 | + 'Markdown' => [ 'class' => Markdown::class ] |
|
376 | 376 | ], |
377 | 377 | 'functions' => [ |
378 | - 'image' => function ($imageSource, $preset = null) { |
|
378 | + 'image' => function($imageSource, $preset = null) { |
|
379 | 379 | return ImageUrlHelper::image($imageSource, $preset); |
380 | 380 | }, |
381 | - 't' => function ($category, $message, $params = [], $language = null) { |
|
381 | + 't' => function($category, $message, $params = [ ], $language = null) { |
|
382 | 382 | return Yii::t($category, $message, $params, $language); |
383 | 383 | } |
384 | 384 | ], |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | 'modules' => [ |
393 | 393 | 'audit' => [ |
394 | 394 | 'class' => AuditModule::class, |
395 | - 'accessRoles' => ['audit-module'], |
|
395 | + 'accessRoles' => [ 'audit-module' ], |
|
396 | 396 | 'layout' => $boxLayout, |
397 | 397 | 'panels' => [ |
398 | 398 | 'audit/trail' => [ |
@@ -494,12 +494,12 @@ discard block |
||
494 | 494 | [ |
495 | 495 | 'connection' => 'db', |
496 | 496 | 'table' => '{{%hrzg_widget_template}}', |
497 | - 'columns' => ['twig_template'] |
|
497 | + 'columns' => [ 'twig_template' ] |
|
498 | 498 | ], |
499 | 499 | [ |
500 | 500 | 'connection' => 'db', |
501 | 501 | 'table' => '{{%twig}}', |
502 | - 'columns' => ['value'] |
|
502 | + 'columns' => [ 'value' ] |
|
503 | 503 | ] |
504 | 504 | ], |
505 | 505 | 'scanners' => [ |
@@ -508,8 +508,8 @@ discard block |
||
508 | 508 | ScannerJavaScriptFunction::class, |
509 | 509 | ScannerDatabase::class |
510 | 510 | ], |
511 | - 'allowedIPs' => ['*'], |
|
512 | - 'roles' => ['translate-module'] |
|
511 | + 'allowedIPs' => [ '*' ], |
|
512 | + 'roles' => [ 'translate-module' ] |
|
513 | 513 | ], |
514 | 514 | 'user' => [ |
515 | 515 | 'class' => UserModule::class, |
@@ -517,12 +517,12 @@ discard block |
||
517 | 517 | 'enableGdprCompliance' => true, |
518 | 518 | 'defaultRoute' => 'admin', |
519 | 519 | 'administratorPermissionName' => 'user-module', |
520 | - 'administrators' => ['admin'], |
|
520 | + 'administrators' => [ 'admin' ], |
|
521 | 521 | 'enableFlashMessages' => false, |
522 | 522 | 'generatePasswords' => true, |
523 | 523 | 'enableRegistration' => getenv('APP_USER_ENABLE_REGISTRATION'), |
524 | 524 | 'mailParams' => [ |
525 | - 'fromEmail' => [getenv('APP_MAILER_FROM')=>getenv('APP_TITLE')] |
|
525 | + 'fromEmail' => [ getenv('APP_MAILER_FROM')=>getenv('APP_TITLE') ] |
|
526 | 526 | ], |
527 | 527 | ], |
528 | 528 | 'widgets' => [ |