@@ -9,13 +9,13 @@ discard block |
||
9 | 9 | /* @var $model app\models\Home */ |
10 | 10 | |
11 | 11 | $this->title = $model->getDefaultTranslate('title'); |
12 | -$this->params['breadcrumbs'][] = [ |
|
12 | +$this->params[ 'breadcrumbs' ][ ] = [ |
|
13 | 13 | 'label' => Yii::t('home', 'Home page'), |
14 | 14 | 'url' => [ |
15 | - $this->params['urlPrefix'].'index' |
|
15 | + $this->params[ 'urlPrefix' ].'index' |
|
16 | 16 | ] |
17 | 17 | ]; |
18 | -$this->params['breadcrumbs'][] = $this->title; |
|
18 | +$this->params[ 'breadcrumbs' ][ ] = $this->title; |
|
19 | 19 | ?> |
20 | 20 | |
21 | 21 | <style> |
@@ -29,14 +29,14 @@ discard block |
||
29 | 29 | |
30 | 30 | <p> |
31 | 31 | <?php echo Html::a(Yii::t('app', 'Update'), [ |
32 | - $this->params['urlPrefix'].'update', |
|
32 | + $this->params[ 'urlPrefix' ].'update', |
|
33 | 33 | 'id' => $model->id |
34 | 34 | ], [ |
35 | 35 | 'class' => 'btn btn-primary' |
36 | 36 | ]) ?> |
37 | 37 | |
38 | 38 | <?php echo Html::a(Yii::t('app', 'Delete'), [ |
39 | - $this->params['urlPrefix'].'delete', |
|
39 | + $this->params[ 'urlPrefix' ].'delete', |
|
40 | 40 | 'id' => $model->id |
41 | 41 | ], [ |
42 | 42 | 'class' => 'btn btn-danger', |
@@ -83,22 +83,22 @@ discard block |
||
83 | 83 | 'label' => Yii::t('app', 'Default status'), |
84 | 84 | 'value' => function($model) { |
85 | 85 | /* @var $model app\models\Home */ |
86 | - if ($model->default == 1){ |
|
87 | - return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Default') . '</i>'; |
|
86 | + if ($model->default == 1) { |
|
87 | + return '<i class="fa fa-check-circle text-success"> '.Yii::t('app', 'Default').'</i>'; |
|
88 | 88 | } else { |
89 | - return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'No') . '</i>'; |
|
89 | + return '<i class="fa fa-times text-danger"> '.Yii::t('app', 'No').'</i>'; |
|
90 | 90 | } |
91 | 91 | }, |
92 | 92 | 'format' => 'raw', |
93 | 93 | ], |
94 | 94 | [ |
95 | 95 | 'attribute' => 'created_at', |
96 | - 'format' => ['date', 'dd.MM.Y HH:mm:ss'], |
|
96 | + 'format' => [ 'date', 'dd.MM.Y HH:mm:ss' ], |
|
97 | 97 | 'label' => Yii::t('app', 'Created date'), |
98 | 98 | ], |
99 | 99 | [ |
100 | 100 | 'attribute' => 'updated_at', |
101 | - 'format' => ['date', 'dd.MM.Y HH:mm:ss'], |
|
101 | + 'format' => [ 'date', 'dd.MM.Y HH:mm:ss' ], |
|
102 | 102 | 'label' => Yii::t('app', 'Updated date'), |
103 | 103 | ], |
104 | 104 | ], |
@@ -4,13 +4,13 @@ |
||
4 | 4 | /* @var $model Itstructure\AdminModule\models\MultilanguageValidateModel */ |
5 | 5 | |
6 | 6 | $this->title = Yii::t('home', 'Create home page'); |
7 | -$this->params['breadcrumbs'][] = [ |
|
7 | +$this->params[ 'breadcrumbs' ][ ] = [ |
|
8 | 8 | 'label' => Yii::t('home', 'Home page'), |
9 | 9 | 'url' => [ |
10 | - $this->params['urlPrefix'].'index' |
|
10 | + $this->params[ 'urlPrefix' ].'index' |
|
11 | 11 | ] |
12 | 12 | ]; |
13 | -$this->params['breadcrumbs'][] = Yii::t('app', 'Create'); |
|
13 | +$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Create'); |
|
14 | 14 | ?> |
15 | 15 | <div class="home-create"> |
16 | 16 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | /* @var $model app\models\RegForm */ |
10 | 10 | |
11 | 11 | $this->title = Yii::t('site', 'Register'); |
12 | -$this->params['breadcrumbs'][] = $this->title; |
|
12 | +$this->params[ 'breadcrumbs' ][ ] = $this->title; |
|
13 | 13 | ?> |
14 | 14 | <section id="registration"> |
15 | 15 | <div class="container"> |
@@ -21,11 +21,11 @@ discard block |
||
21 | 21 | 'layout' => 'horizontal', |
22 | 22 | 'fieldConfig' => [ |
23 | 23 | 'template' => "{label}\n<div class=\"col-lg-4\">{input}</div>\n<div class=\"col-lg-6\">{error}</div>", |
24 | - 'labelOptions' => ['class' => 'col-lg-2 control-label'], |
|
24 | + 'labelOptions' => [ 'class' => 'col-lg-2 control-label' ], |
|
25 | 25 | ], |
26 | 26 | ]); ?> |
27 | 27 | |
28 | - <?php echo $form->field($model, 'first_name')->textInput(['autofocus' => true])->label(Yii::t('site', 'Name')) ?> |
|
28 | + <?php echo $form->field($model, 'first_name')->textInput([ 'autofocus' => true ])->label(Yii::t('site', 'Name')) ?> |
|
29 | 29 | |
30 | 30 | <?php echo $form->field($model, 'email')->textInput()->label(Yii::t('site', 'Email')) ?> |
31 | 31 | |
@@ -36,14 +36,14 @@ discard block |
||
36 | 36 | <?php echo $form->field($model, 'passwordRepeat')->passwordInput()->label(Yii::t('site', 'Password repeat')) ?> |
37 | 37 | |
38 | 38 | <?php echo $form->field($model, 'verifyCode')->widget(Captcha::class, [ |
39 | - 'captchaAction' => '/'.$this->params['shortLanguage'].'/site/captcha', |
|
39 | + 'captchaAction' => '/'.$this->params[ 'shortLanguage' ].'/site/captcha', |
|
40 | 40 | 'template' => '<div class="row"><div class="col-lg-7">{image}</div></div> |
41 | 41 | <div class="row"><div class="col-lg-12">{input}</div></div>', |
42 | 42 | ])->label(Yii::t('feedback', 'Verify code')) ?> |
43 | 43 | |
44 | 44 | <div class="form-group"> |
45 | 45 | <div class="col-lg-offset-1 col-lg-5"> |
46 | - <?php echo Html::submitButton(Yii::t('app', 'Send'), ['class' => 'btn btn-primary', 'name' => 'register-button']) ?> |
|
46 | + <?php echo Html::submitButton(Yii::t('app', 'Send'), [ 'class' => 'btn btn-primary', 'name' => 'register-button' ]) ?> |
|
47 | 47 | </div> |
48 | 48 | <div class="col-lg-6"> |
49 | 49 |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | use yii\bootstrap\ActiveForm; |
9 | 9 | |
10 | 10 | $this->title = Yii::t('site', 'Sign in'); |
11 | -$this->params['breadcrumbs'][] = $this->title; |
|
11 | +$this->params[ 'breadcrumbs' ][ ] = $this->title; |
|
12 | 12 | ?> |
13 | 13 | <section id="login"> |
14 | 14 | <div class="container"> |
@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | 'layout' => 'horizontal', |
21 | 21 | 'fieldConfig' => [ |
22 | 22 | 'template' => "{label}\n<div class=\"col-lg-4\">{input}</div>\n<div class=\"col-lg-6\">{error}</div>", |
23 | - 'labelOptions' => ['class' => 'col-lg-2 control-label'], |
|
23 | + 'labelOptions' => [ 'class' => 'col-lg-2 control-label' ], |
|
24 | 24 | ], |
25 | 25 | ]); ?> |
26 | 26 | |
27 | - <?php echo $form->field($model, 'login')->textInput(['autofocus' => true])->label(Yii::t('site', 'Login')) ?> |
|
27 | + <?php echo $form->field($model, 'login')->textInput([ 'autofocus' => true ])->label(Yii::t('site', 'Login')) ?> |
|
28 | 28 | |
29 | 29 | <?php echo $form->field($model, 'password')->passwordInput()->label(Yii::t('site', 'Password')) ?> |
30 | 30 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | <div class="form-group"> |
36 | 36 | <div class="col-lg-offset-1 col-lg-5"> |
37 | - <?php echo Html::submitButton(Yii::t('app', 'Send'), ['class' => 'btn btn-primary', 'name' => 'login-button']) ?> |
|
37 | + <?php echo Html::submitButton(Yii::t('app', 'Send'), [ 'class' => 'btn btn-primary', 'name' => 'login-button' ]) ?> |
|
38 | 38 | </div> |
39 | 39 | <div class="col-lg-6"> |
40 | 40 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /* @var $this yii\web\View */ |
4 | 4 | |
5 | 5 | $this->title = Yii::t('site', 'Register'); |
6 | -$this->params['breadcrumbs'][] = $this->title; |
|
6 | +$this->params[ 'breadcrumbs' ][ ] = $this->title; |
|
7 | 7 | ?> |
8 | 8 | <div class="container"> |
9 | 9 | <div class="row"> |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | use app\models\{About, Technology, Quality, User, Home}; |
3 | 3 | use Itstructure\MFUploader\Module as MFUModule; |
4 | 4 | |
5 | -$contacts = $this->params['contacts']; |
|
5 | +$contacts = $this->params[ 'contacts' ]; |
|
6 | 6 | |
7 | 7 | /* @var $about About */ |
8 | 8 | /* @var $team User[] */ |
@@ -13,18 +13,18 @@ discard block |
||
13 | 13 | window.sent_message = '<?php echo Yii::t('feedback', 'You have successfully sent your message.'); ?>'; |
14 | 14 | window.need_captcha = '<?php echo Yii::t('feedback', 'Let us know that you are not a robot. Click on pictures above.'); ?>'; |
15 | 15 | window.error_captcha = '<?php echo Yii::t('feedback', 'Error verify captcha.'); ?>'; |
16 | - window.short_language = '<?php echo $this->params['shortLanguage']; ?>'; |
|
16 | + window.short_language = '<?php echo $this->params[ 'shortLanguage' ]; ?>'; |
|
17 | 17 | </script> |
18 | 18 | |
19 | -<?php if (!empty($model->{'content_'.$this->params['shortLanguage']})): ?> |
|
19 | +<?php if (!empty($model->{'content_'.$this->params[ 'shortLanguage' ]})): ?> |
|
20 | 20 | <section class="inform_block"> |
21 | 21 | |
22 | 22 | <div class="container"> |
23 | 23 | |
24 | 24 | <div class="row" data-animated="fadeIn"> |
25 | 25 | <div class="col-lg-12 col-md-12 col-sm-10"> |
26 | - <h1 class="text-center"><?php echo $model->{'title_'.$this->params['shortLanguage']}; ?></h1> |
|
27 | - <?php echo $model->{'content_'.$this->params['shortLanguage']} ?> |
|
26 | + <h1 class="text-center"><?php echo $model->{'title_'.$this->params[ 'shortLanguage' ]}; ?></h1> |
|
27 | + <?php echo $model->{'content_'.$this->params[ 'shortLanguage' ]} ?> |
|
28 | 28 | </div> |
29 | 29 | </div> |
30 | 30 | </div> |
@@ -41,14 +41,14 @@ discard block |
||
41 | 41 | <?php $timeStart = 0.1; ?> |
42 | 42 | <?php $timeEnd = 0.5; ?> |
43 | 43 | <?php $count = count($about->qualities); ?> |
44 | - <?php $timeStep = $count > 1 ? ($timeEnd-$timeStart)/($count-1) : 0; ?> |
|
44 | + <?php $timeStep = $count > 1 ? ($timeEnd - $timeStart)/($count - 1) : 0; ?> |
|
45 | 45 | <?php $time = $timeStart; ?> |
46 | 46 | <?php foreach ($about->qualities as $quality): ?> |
47 | 47 | <?php /* @var Quality $quality */ ?> |
48 | 48 | <div class="col-lg-4 col-md-4 col-sm-4 wow fadeInUp" data-wow-delay="<?php echo $time; ?>s"> |
49 | 49 | <i class="<?php echo $quality->icon ?>"></i> |
50 | - <h3><?php echo $quality->{'title_'.$this->params['shortLanguage']}; ?></h3> |
|
51 | - <?php echo $quality->{'description_'.$this->params['shortLanguage']}; ?> |
|
50 | + <h3><?php echo $quality->{'title_'.$this->params[ 'shortLanguage' ]}; ?></h3> |
|
51 | + <?php echo $quality->{'description_'.$this->params[ 'shortLanguage' ]}; ?> |
|
52 | 52 | </div> |
53 | 53 | <?php $time += $timeStep; ?> |
54 | 54 | <?php endforeach; ?> |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | |
58 | 58 | <hr> |
59 | 59 | <div class="col-md-6 col-sm-6 wow fadeInUp" data-wow-delay="0.3s"> |
60 | - <h2 class="text-center"><?php echo $about->{'title_'.$this->params['shortLanguage']}; ?></h2> |
|
61 | - <?php echo $about->{'description_'.$this->params['shortLanguage']}; ?> |
|
60 | + <h2 class="text-center"><?php echo $about->{'title_'.$this->params[ 'shortLanguage' ]}; ?></h2> |
|
61 | + <?php echo $about->{'description_'.$this->params[ 'shortLanguage' ]}; ?> |
|
62 | 62 | </div> |
63 | 63 | <?php if (is_array($about->technologies)): ?> |
64 | 64 | <div class="col-md-6 col-sm-6 wow fadeInUp" data-wow-delay="0.5s"> |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | <?php $timeStart = 0.1; ?> |
98 | 98 | <?php $timeEnd = 0.5; ?> |
99 | 99 | <?php $count = count($team); ?> |
100 | - <?php $timeStep = $count > 1 ? ($timeEnd-$timeStart)/($count-1) : 0; ?> |
|
100 | + <?php $timeStep = $count > 1 ? ($timeEnd - $timeStart)/($count - 1) : 0; ?> |
|
101 | 101 | <?php $time = $timeStart; ?> |
102 | 102 | <?php foreach ($team as $user): ?> |
103 | 103 | <?php /* @var User $user */ ?> |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | <div class="team-des"> |
114 | 114 | <div class="team-name"><?php echo $user->getFullName() ?></div> |
115 | 115 | <?php if (!empty($user->position)): ?> |
116 | - <div class="team-position"><?php echo $user->position->{'name_'.$this->params['shortLanguage']}; ?></div> |
|
116 | + <div class="team-position"><?php echo $user->position->{'name_'.$this->params[ 'shortLanguage' ]}; ?></div> |
|
117 | 117 | <?php endif; ?> |
118 | 118 | </div> |
119 | 119 | </div> |
@@ -131,26 +131,26 @@ discard block |
||
131 | 131 | <div class="container"> |
132 | 132 | <div class="row"> |
133 | 133 | <div class="col-md-12 col-sm-12 text-center"> |
134 | - <h2><?php echo $contacts->{'title_'.$this->params['shortLanguage']} ?></h2> |
|
134 | + <h2><?php echo $contacts->{'title_'.$this->params[ 'shortLanguage' ]} ?></h2> |
|
135 | 135 | </div> |
136 | 136 | </div> |
137 | 137 | <div class="row"> |
138 | - <?php if (!empty($contacts->{'phone_'.$this->params['shortLanguage']})): ?> |
|
138 | + <?php if (!empty($contacts->{'phone_'.$this->params[ 'shortLanguage' ]})): ?> |
|
139 | 139 | <div class="contact-info-box col-md-4 col-sm-4 col-xs-6 wow fadeInUp" data-wow-delay="0.1s"> |
140 | 140 | <i class="fa fa-phone"></i> |
141 | - <h3><?php echo $contacts->{'phone_'.$this->params['shortLanguage']} ?></h3> |
|
141 | + <h3><?php echo $contacts->{'phone_'.$this->params[ 'shortLanguage' ]} ?></h3> |
|
142 | 142 | </div> |
143 | 143 | <?php endif; ?> |
144 | - <?php if (!empty($contacts->{'email_'.$this->params['shortLanguage']})): ?> |
|
144 | + <?php if (!empty($contacts->{'email_'.$this->params[ 'shortLanguage' ]})): ?> |
|
145 | 145 | <div class="contact-info-box col-md-4 col-sm-4 col-xs-6 wow fadeInUp" data-wow-delay="0.3s"> |
146 | 146 | <i class="fa fa-envelope-o"></i> |
147 | - <h3><a href="mailto:<?php echo $contacts->{'email_'.$this->params['shortLanguage']} ?>"><?php echo $contacts->{'email_'.$this->params['shortLanguage']} ?></a></h3> |
|
147 | + <h3><a href="mailto:<?php echo $contacts->{'email_'.$this->params[ 'shortLanguage' ]} ?>"><?php echo $contacts->{'email_'.$this->params[ 'shortLanguage' ]} ?></a></h3> |
|
148 | 148 | </div> |
149 | 149 | <?php endif; ?> |
150 | - <?php if (!empty($contacts->{'address_'.$this->params['shortLanguage']})): ?> |
|
150 | + <?php if (!empty($contacts->{'address_'.$this->params[ 'shortLanguage' ]})): ?> |
|
151 | 151 | <div class="contact-info-box col-md-4 col-sm-4 col-xs-6 wow fadeInUp" data-wow-delay="0.5s"> |
152 | 152 | <i class="fa fa-map-marker"></i> |
153 | - <h3><?php echo $contacts->{'address_'.$this->params['shortLanguage']} ?></h3> |
|
153 | + <h3><?php echo $contacts->{'address_'.$this->params[ 'shortLanguage' ]} ?></h3> |
|
154 | 154 | </div> |
155 | 155 | <?php endif; ?> |
156 | 156 | </div> |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | </div> |
180 | 180 | <div class="col-md-12 col-sm-12 fl-block j-cn a-c"> |
181 | 181 | <div class="g-recaptcha" id="google-recaptcha-feedback" |
182 | - data-sitekey="<?php echo Yii::$app->params['captcha']['site_key'];?>" |
|
182 | + data-sitekey="<?php echo Yii::$app->params[ 'captcha' ][ 'site_key' ]; ?>" |
|
183 | 183 | data-callback="validateRecaptchaFeedback" |
184 | 184 | data-expired-callback="grecaptcha_reset" |
185 | 185 | ></div> |
@@ -17,10 +17,10 @@ discard block |
||
17 | 17 | |
18 | 18 | if (!isset($frameworkPath)) { |
19 | 19 | $searchPaths = [ |
20 | - dirname(__FILE__) . '/vendor/yiisoft/yii2', |
|
21 | - dirname(__FILE__) . '/../vendor/yiisoft/yii2', |
|
20 | + dirname(__FILE__).'/vendor/yiisoft/yii2', |
|
21 | + dirname(__FILE__).'/../vendor/yiisoft/yii2', |
|
22 | 22 | ]; |
23 | - foreach($searchPaths as $path) { |
|
23 | + foreach ($searchPaths as $path) { |
|
24 | 24 | if (is_dir($path)) { |
25 | 25 | $frameworkPath = $path; |
26 | 26 | break; |
@@ -31,10 +31,10 @@ discard block |
||
31 | 31 | if (!isset($frameworkPath) || !is_dir($frameworkPath)) { |
32 | 32 | $message = "<h1>Error</h1>\n\n" |
33 | 33 | . "<p><strong>The path to yii framework seems to be incorrect.</strong></p>\n" |
34 | - . '<p>You need to install Yii framework via composer or adjust the framework path in file <abbr title="' . __FILE__ . '">' . basename(__FILE__) . "</abbr>.</p>\n" |
|
35 | - . '<p>Please refer to the <abbr title="' . dirname(__FILE__) . "/README.md\">README</abbr> on how to install Yii.</p>\n"; |
|
34 | + . '<p>You need to install Yii framework via composer or adjust the framework path in file <abbr title="'.__FILE__.'">'.basename(__FILE__)."</abbr>.</p>\n" |
|
35 | + . '<p>Please refer to the <abbr title="'.dirname(__FILE__)."/README.md\">README</abbr> on how to install Yii.</p>\n"; |
|
36 | 36 | |
37 | - if (!empty($_SERVER['argv'])) { |
|
37 | + if (!empty($_SERVER[ 'argv' ])) { |
|
38 | 38 | // do not print HTML when used in console mode |
39 | 39 | echo strip_tags($message); |
40 | 40 | } else { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | exit(1); |
44 | 44 | } |
45 | 45 | |
46 | -require_once($frameworkPath . '/requirements/YiiRequirementChecker.php'); |
|
46 | +require_once($frameworkPath.'/requirements/YiiRequirementChecker.php'); |
|
47 | 47 | $requirementsChecker = new YiiRequirementChecker(); |
48 | 48 | |
49 | 49 | $gdMemo = $imagickMemo = 'Either GD PHP extension with FreeType support or ImageMagick PHP extension with PNG support is required for image CAPTCHA.'; |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | if (extension_loaded('gd')) { |
63 | 63 | $gdInfo = gd_info(); |
64 | - if (!empty($gdInfo['FreeType Support'])) { |
|
64 | + if (!empty($gdInfo[ 'FreeType Support' ])) { |
|
65 | 65 | $gdOK = true; |
66 | 66 | } else { |
67 | 67 | $gdMemo = 'GD extension should be installed with FreeType support in order to be used for image CAPTCHA.'; |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | // OPcache check |
151 | 151 | if (!version_compare(phpversion(), '5.5', '>=')) { |
152 | - $requirements[] = array( |
|
152 | + $requirements[ ] = array( |
|
153 | 153 | 'name' => 'APC extension', |
154 | 154 | 'mandatory' => false, |
155 | 155 | 'condition' => extension_loaded('apc'), |
@@ -4,5 +4,5 @@ |
||
4 | 4 | 'defaultPageSize' => 10, |
5 | 5 | 'adminEmail' => '[email protected]', |
6 | 6 | 'googleApiKey' => 'AIzaSyCoC4gFaWQxlv5MG_OHTJOUmJLA-ib8c78', |
7 | - 'captcha' => require __DIR__ . '/captcha.php' |
|
7 | + 'captcha' => require __DIR__.'/captcha.php' |
|
8 | 8 | ]; |
@@ -3,13 +3,13 @@ discard block |
||
3 | 3 | use Itstructure\AdminModule\Module as AdminModule; |
4 | 4 | use Itstructure\MFUploader\Module as MFUModule; |
5 | 5 | |
6 | -$params = require __DIR__ . '/params.php'; |
|
7 | -$db = require __DIR__ . '/db.php'; |
|
6 | +$params = require __DIR__.'/params.php'; |
|
7 | +$db = require __DIR__.'/db.php'; |
|
8 | 8 | |
9 | 9 | $config = [ |
10 | 10 | 'id' => 'yii2-template-multilanguage-console', |
11 | 11 | 'basePath' => dirname(__DIR__), |
12 | - 'bootstrap' => ['log'], |
|
12 | + 'bootstrap' => [ 'log' ], |
|
13 | 13 | 'controllerNamespace' => 'app\commands', |
14 | 14 | 'aliases' => [ |
15 | 15 | '@bower' => '@vendor/bower-asset', |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | 'targets' => [ |
32 | 32 | [ |
33 | 33 | 'class' => 'yii\log\FileTarget', |
34 | - 'levels' => ['error', 'warning'], |
|
34 | + 'levels' => [ 'error', 'warning' ], |
|
35 | 35 | ], |
36 | 36 | ], |
37 | 37 | ], |
@@ -63,8 +63,8 @@ discard block |
||
63 | 63 | |
64 | 64 | if (YII_ENV_DEV) { |
65 | 65 | // configuration adjustments for 'dev' environment |
66 | - $config['bootstrap'][] = 'gii'; |
|
67 | - $config['modules']['gii'] = [ |
|
66 | + $config[ 'bootstrap' ][ ] = 'gii'; |
|
67 | + $config[ 'modules' ][ 'gii' ] = [ |
|
68 | 68 | 'class' => 'yii\gii\Module', |
69 | 69 | ]; |
70 | 70 | } |