Passed
Push — master ( 22651e...d2ef54 )
by Andrey
07:31
created
views/admin/home/update.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,21 +3,21 @@
 block discarded – undo
3 3
 /* @var $this Itstructure\AdminModule\components\AdminView */
4 4
 /* @var $model Itstructure\AdminModule\models\MultilanguageValidateModel */
5 5
 
6
-$this->title = Yii::t('home', 'Update home page').': ' . $model->mainModel->getDefaultTranslate('title');
7
-$this->params['breadcrumbs'][] = [
6
+$this->title = Yii::t('home', 'Update home page').': '.$model->mainModel->getDefaultTranslate('title');
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'][] = [
13
+$this->params[ 'breadcrumbs' ][ ] = [
14 14
     'label' => $model->mainModel->getDefaultTranslate('title'),
15 15
     'url' => [
16
-        $this->params['urlPrefix'].'view',
16
+        $this->params[ 'urlPrefix' ].'view',
17 17
         'id' => $model->id
18 18
     ]
19 19
 ];
20
-$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
20
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Update');
21 21
 ?>
22 22
 <div class="home-update">
23 23
 
Please login to merge, or discard this patch.
views/admin/home/index.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 /* @var $this Itstructure\AdminModule\components\AdminView */
10 10
 
11 11
 $this->title = Yii::t('home', 'Home page');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="home-index">
15 15
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     <p>
19 19
         <?php echo Html::a(Yii::t('home', 'Create home page'), [
20
-            $this->params['urlPrefix'].'create'
20
+            $this->params[ 'urlPrefix' ].'create'
21 21
         ], [
22 22
             'class' => 'btn btn-success'
23 23
         ]) ?>
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                     /* @var $searchModel HomeSearch */
36 36
                     return Html::a(
37 37
                         Html::encode($searchModel->getDefaultTranslate('title')),
38
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
38
+                        Url::to([ $this->params[ 'urlPrefix' ].'view', 'id' => $searchModel->id ])
39 39
                     );
40 40
                 },
41 41
                 'format' => 'raw',
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
             ],
51 51
             [
52 52
                 'attribute' => 'created_at',
53
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
53
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
54 54
                 'label' => Yii::t('app', 'Created date'),
55 55
             ],
56 56
             [
57 57
                 'attribute' => 'updated_at',
58
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
58
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
59 59
                 'label' => Yii::t('app', 'Updated date'),
60 60
             ],
61 61
             'default' => [
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                     }
70 70
 
71 71
                     return Html::a(Yii::t('app', 'Set as default'), Url::to([
72
-                        $this->params['urlPrefix'].'set-default',
72
+                        $this->params[ 'urlPrefix' ].'set-default',
73 73
                         'homeId' => $searchModel->id,
74 74
                     ]), [
75 75
                         'title' => Yii::t('app', 'Set as default'),
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
                 'class' => 'yii\grid\ActionColumn',
82 82
                 'header' => Yii::t('app', 'Actions'),
83 83
                 'template' => '{view} {update} {delete}',
84
-                'urlCreator'=>function($action, $model, $key, $index){
84
+                'urlCreator'=>function($action, $model, $key, $index) {
85 85
                     return Url::to([
86
-                        $this->params['urlPrefix'].$action,
86
+                        $this->params[ 'urlPrefix' ].$action,
87 87
                         'id' => $model->id
88 88
                     ]);
89 89
                 }
Please login to merge, or discard this patch.
views/admin/home/view.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         ],
Please login to merge, or discard this patch.
views/admin/home/create.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
views/site/reg.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
views/site/login.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
views/site/regBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
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">
Please login to merge, or discard this patch.
views/home/index.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.
requirements.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'),
Please login to merge, or discard this patch.