Passed
Push — master ( 96b324...4e12fe )
by Andrey
05:35
created
models/UserValidate.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 'unique',
126 126
                 'skipOnError'     => true,
127 127
                 'targetClass'     => \Yii::$app->user->identityClass,
128
-                'targetAttribute' => ['login' => 'login'],
128
+                'targetAttribute' => [ 'login' => 'login' ],
129 129
                 'filter' => $this->getScenario() == self::SCENARIO_UPDATE ? 'id != '.$this->id : ''
130 130
             ],
131 131
             [
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 'unique',
134 134
                 'skipOnError'     => true,
135 135
                 'targetClass'     => \Yii::$app->user->identityClass,
136
-                'targetAttribute' => ['email' => 'email'],
136
+                'targetAttribute' => [ 'email' => 'email' ],
137 137
                 'filter' => $this->getScenario() == self::SCENARIO_UPDATE ? 'id != '.$this->id : ''
138 138
             ],
139 139
             [
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                 'exist',
167 167
                 'skipOnError' => true,
168 168
                 'targetClass' => Position::class,
169
-                'targetAttribute' => ['position_id' => 'id']
169
+                'targetAttribute' => [ 'position_id' => 'id' ]
170 170
             ],
171 171
         ];
172 172
     }
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      */
245 245
     public function __get($name)
246 246
     {
247
-        $getter = 'get' . $name;
247
+        $getter = 'get'.$name;
248 248
 
249 249
         if (method_exists($this, $getter)) {
250 250
             return $this->$getter();
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      */
268 268
     public function __set($name, $value)
269 269
     {
270
-        $setter = 'set' . $name;
270
+        $setter = 'set'.$name;
271 271
 
272 272
         if (method_exists($this, $setter)) {
273 273
             $this->$setter($value);
Please login to merge, or discard this patch.
views/layouts/base.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,14 +111,17 @@
 block discarded – undo
111 111
                     </li>
112 112
                 </ul>
113 113
             </li>
114
-        <?php else: ?>
114
+        <?php else {
115
+    : ?>
115 116
             <li class="nav-item dropdown">
116 117
                 <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
117 118
                     <?php echo Yii::t('site', 'Account') ?>
118 119
                 </a>
119 120
                 <ul class="dropdown-menu">
120 121
                     <li class="dropdown-item">
121
-                        <a href="/<?php echo $this->params['shortLanguage']; ?>/admin" ><?php echo Yii::t('site', 'Dashboard') ?></a>
122
+                        <a href="/<?php echo $this->params['shortLanguage'];
123
+}
124
+?>/admin" ><?php echo Yii::t('site', 'Dashboard') ?></a>
122 125
                     </li>
123 126
                     <li class="dropdown-item">
124 127
                         <a href="/<?php echo $this->params['shortLanguage']; ?>/logout" ><?php echo Yii::t('site', 'Sign out') ?></a>
Please login to merge, or discard this patch.
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
 use app\models\Contact;
7 7
 use Itstructure\MultiLevelMenu\MenuWidget;
8 8
 
9
-$contacts = $this->params['contacts'];
10
-$controllerId = $this->params['controllerId'];
9
+$contacts = $this->params[ 'contacts' ];
10
+$controllerId = $this->params[ 'controllerId' ];
11 11
 
12 12
 /* @var \yii\web\View $this */
13 13
 /* @var string $content */
@@ -46,77 +46,77 @@  discard block
 block discarded – undo
46 46
     ]); ?>
47 47
 
48 48
     <ul class="nav navbar-nav navbar-right">
49
-        <li class="nav-item <?php if($controllerId=='home'): ?>active<?php endif; ?>">
50
-            <a class="nav-link" href="/<?php echo $this->params['shortLanguage']; ?>"><?php echo Yii::t('app', 'Home') ?></a>
49
+        <li class="nav-item <?php if ($controllerId == 'home'): ?>active<?php endif; ?>">
50
+            <a class="nav-link" href="/<?php echo $this->params[ 'shortLanguage' ]; ?>"><?php echo Yii::t('app', 'Home') ?></a>
51 51
         </li>
52
-        <li class="nav-item <?php if($controllerId=='about'): ?>active<?php endif; ?>">
53
-            <a class="nav-link" href="/<?php echo $this->params['shortLanguage']; ?>/about"><?php echo Yii::t('about', 'About') ?></a>
52
+        <li class="nav-item <?php if ($controllerId == 'about'): ?>active<?php endif; ?>">
53
+            <a class="nav-link" href="/<?php echo $this->params[ 'shortLanguage' ]; ?>/about"><?php echo Yii::t('about', 'About') ?></a>
54 54
         </li>
55
-        <li class="nav-item dropdown <?php if($controllerId=='page'): ?>active<?php endif; ?>">
55
+        <li class="nav-item dropdown <?php if ($controllerId == 'page'): ?>active<?php endif; ?>">
56 56
             <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
57 57
                 <?php echo Yii::t('pages', 'Pages') ?>
58 58
             </a>
59 59
             <?php echo MenuWidget::widget([
60
-                'data' => $this->params['pages'],
60
+                'data' => $this->params[ 'pages' ],
61 61
                 'itemTemplate' => '@app/views/menu/pageItem.php',
62
-                'itemTemplateParams' => function ($level, $item) {
62
+                'itemTemplateParams' => function($level, $item) {
63 63
                     return [
64
-                        'shortLanguage' => $this->params['shortLanguage'],
65
-                        'linkOptions' => isset($item['items']) && count($item['items']) > 0 ? [
64
+                        'shortLanguage' => $this->params[ 'shortLanguage' ],
65
+                        'linkOptions' => isset($item[ 'items' ]) && count($item[ 'items' ]) > 0 ? [
66 66
                             'class' => 'dropdown-toggle',
67 67
                             'data-toggle' => 'dropdown',
68 68
                             'aria-haspopup' => 'true',
69 69
                             'aria-expanded' => 'false',
70
-                        ] : [],
70
+                        ] : [ ],
71 71
                     ];
72 72
                 },
73 73
                 'mainContainerOptions' => [
74 74
                     'class' => 'dropdown-menu'
75 75
                 ],
76
-                'itemContainerOptions' => function ($level, $item) {
76
+                'itemContainerOptions' => function($level, $item) {
77 77
                     return [
78
-                        'class' => isset($item['items']) && count($item['items']) > 0 ? 'dropdown-item dropdown' : 'dropdown-item'
78
+                        'class' => isset($item[ 'items' ]) && count($item[ 'items' ]) > 0 ? 'dropdown-item dropdown' : 'dropdown-item'
79 79
                     ];
80 80
                 }
81 81
             ]) ?>
82 82
         </li>
83
-        <li class="nav-item dropdown <?php if($controllerId=='category'): ?>active<?php endif; ?>">
83
+        <li class="nav-item dropdown <?php if ($controllerId == 'category'): ?>active<?php endif; ?>">
84 84
             <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
85 85
                 <?php echo Yii::t('categories', 'Categories') ?>
86 86
             </a>
87 87
             <?php echo MenuWidget::widget([
88
-                'data' => $this->params['categories'],
88
+                'data' => $this->params[ 'categories' ],
89 89
                 'itemTemplate' => '@app/views/menu/categoryItem.php',
90
-                'itemTemplateParams' => function ($level, $item) {
90
+                'itemTemplateParams' => function($level, $item) {
91 91
                     return [
92
-                        'shortLanguage' => $this->params['shortLanguage'],
93
-                        'linkOptions' => isset($item['items']) && count($item['items']) > 0 ? [
92
+                        'shortLanguage' => $this->params[ 'shortLanguage' ],
93
+                        'linkOptions' => isset($item[ 'items' ]) && count($item[ 'items' ]) > 0 ? [
94 94
                             'class' => 'dropdown-toggle',
95 95
                             'data-toggle' => 'dropdown',
96 96
                             'aria-haspopup' => 'true',
97 97
                             'aria-expanded' => 'false',
98
-                        ] : [],
98
+                        ] : [ ],
99 99
                     ];
100 100
                 },
101 101
                 'mainContainerOptions' => [
102 102
                     'class' => 'dropdown-menu'
103 103
                 ],
104
-                'itemContainerOptions' => function ($level, $item) {
104
+                'itemContainerOptions' => function($level, $item) {
105 105
                     return [
106
-                        'class' => isset($item['items']) && count($item['items']) > 0 ? 'dropdown-item dropdown' : 'dropdown-item'
106
+                        'class' => isset($item[ 'items' ]) && count($item[ 'items' ]) > 0 ? 'dropdown-item dropdown' : 'dropdown-item'
107 107
                     ];
108 108
                 }
109 109
             ]) ?>
110 110
         </li>
111
-        <li class="nav-item <?php if($controllerId=='contact'): ?>active<?php endif; ?>">
112
-            <a class="nav-link" href="/<?php echo $this->params['shortLanguage']; ?>/contact" ><?php echo Yii::t('contacts', 'Contacts') ?></a>
111
+        <li class="nav-item <?php if ($controllerId == 'contact'): ?>active<?php endif; ?>">
112
+            <a class="nav-link" href="/<?php echo $this->params[ 'shortLanguage' ]; ?>/contact" ><?php echo Yii::t('contacts', 'Contacts') ?></a>
113 113
         </li>
114 114
         <li class="nav-item dropdown">
115 115
             <a href="#" class="nav-link dropdown-toggle" id="dropdown_languages" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
116 116
                 <?php echo Yii::t('site', 'Languages') ?>
117 117
             </a>
118 118
             <?php echo MenuWidget::widget([
119
-                'data' => $this->params['languages'],
119
+                'data' => $this->params[ 'languages' ],
120 120
                 'itemTemplate' => '@app/views/menu/languageItem.php',
121 121
                 'mainContainerOptions' => [
122 122
                     'class' => 'dropdown-menu',
@@ -134,10 +134,10 @@  discard block
 block discarded – undo
134 134
                 </a>
135 135
                 <ul class="dropdown-menu">
136 136
                     <li class="dropdown-item">
137
-                        <a href="/<?php echo $this->params['shortLanguage']; ?>/reg" ><?php echo Yii::t('site', 'Register') ?></a>
137
+                        <a href="/<?php echo $this->params[ 'shortLanguage' ]; ?>/reg" ><?php echo Yii::t('site', 'Register') ?></a>
138 138
                     </li>
139 139
                     <li class="dropdown-item">
140
-                        <a href="/<?php echo $this->params['shortLanguage']; ?>/login" ><?php echo Yii::t('site', 'Login') ?></a>
140
+                        <a href="/<?php echo $this->params[ 'shortLanguage' ]; ?>/login" ><?php echo Yii::t('site', 'Login') ?></a>
141 141
                     </li>
142 142
                 </ul>
143 143
             </li>
@@ -148,10 +148,10 @@  discard block
 block discarded – undo
148 148
                 </a>
149 149
                 <ul class="dropdown-menu">
150 150
                     <li class="dropdown-item">
151
-                        <a href="/<?php echo $this->params['shortLanguage']; ?>/admin" ><?php echo Yii::t('site', 'Dashboard') ?></a>
151
+                        <a href="/<?php echo $this->params[ 'shortLanguage' ]; ?>/admin" ><?php echo Yii::t('site', 'Dashboard') ?></a>
152 152
                     </li>
153 153
                     <li class="dropdown-item">
154
-                        <a href="/<?php echo $this->params['shortLanguage']; ?>/logout" ><?php echo Yii::t('site', 'Sign out') ?></a>
154
+                        <a href="/<?php echo $this->params[ 'shortLanguage' ]; ?>/logout" ><?php echo Yii::t('site', 'Sign out') ?></a>
155 155
                     </li>
156 156
                 </ul>
157 157
             </li>
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     <?php NavBar::end(); ?>
162 162
 
163 163
     <div class="container">
164
-        <?php if (isset($this->params['breadcrumbs'])): ?>
164
+        <?php if (isset($this->params[ 'breadcrumbs' ])): ?>
165 165
             <section class="full_width breadcrumbs_block clearfix">
166 166
                 <div class="container">
167 167
                     <div class="breadcrumbs_content">
@@ -171,10 +171,10 @@  discard block
 block discarded – undo
171 171
                             'options' => [
172 172
                                 'class' => 'pull-right breadcrumb'
173 173
                             ],
174
-                            'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
174
+                            'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [ ],
175 175
                             'homeLink' => [
176 176
                                 'label' => Yii::t('yii', 'Home'),
177
-                                'url' => rtrim(Yii::$app->homeUrl, '/') . '/' . $this->params['shortLanguage'],
177
+                                'url' => rtrim(Yii::$app->homeUrl, '/').'/'.$this->params[ 'shortLanguage' ],
178 178
                             ]
179 179
                         ]) ?>
180 180
                     </div>
@@ -193,27 +193,27 @@  discard block
 block discarded – undo
193 193
         <div class="row" data-animated="fadeInUp">
194 194
             <div class="col-lg-7 col-md-8 col-sm-8 padbot30">
195 195
                 <ul class="foot_menu">
196
-                    <li <?php if($controllerId=='home'): ?>class="active"<?php endif; ?> >
197
-                        <a href="/<?php echo $this->params['shortLanguage']; ?>" alt=""><?php echo Yii::t('app', 'Home') ?></a>
196
+                    <li <?php if ($controllerId == 'home'): ?>class="active"<?php endif; ?> >
197
+                        <a href="/<?php echo $this->params[ 'shortLanguage' ]; ?>" alt=""><?php echo Yii::t('app', 'Home') ?></a>
198 198
                     </li>
199
-                    <li <?php if($controllerId=='about'): ?>class="active"<?php endif; ?> >
200
-                        <a href="/<?php echo $this->params['shortLanguage']; ?>/about" ><?php echo Yii::t('about', 'About me') ?></a>
199
+                    <li <?php if ($controllerId == 'about'): ?>class="active"<?php endif; ?> >
200
+                        <a href="/<?php echo $this->params[ 'shortLanguage' ]; ?>/about" ><?php echo Yii::t('about', 'About me') ?></a>
201 201
                     </li>
202
-                    <li <?php if($controllerId=='contact'): ?>class="active"<?php endif; ?> >
203
-                        <a href="/<?php echo $this->params['shortLanguage']; ?>/contact" ><?php echo Yii::t('contacts', 'Contacts') ?></a>
202
+                    <li <?php if ($controllerId == 'contact'): ?>class="active"<?php endif; ?> >
203
+                        <a href="/<?php echo $this->params[ 'shortLanguage' ]; ?>/contact" ><?php echo Yii::t('contacts', 'Contacts') ?></a>
204 204
                     </li>
205 205
                 </ul>
206 206
                 <hr>
207 207
                 <?php if (null !== $contacts): ?>
208 208
                     <ul class="foot_info">
209
-                        <?php if (!empty($contacts->{'address_'.$this->params['shortLanguage']})): ?>
210
-                            <li><i class="fa fa-home"></i><?php echo $contacts->{'address_'.$this->params['shortLanguage']} ?></li>
209
+                        <?php if (!empty($contacts->{'address_'.$this->params[ 'shortLanguage' ]})): ?>
210
+                            <li><i class="fa fa-home"></i><?php echo $contacts->{'address_'.$this->params[ 'shortLanguage' ]} ?></li>
211 211
                         <?php endif; ?>
212
-                        <?php if (!empty($contacts->{'phone_'.$this->params['shortLanguage']})): ?>
213
-                            <li><i class="fa fa-phone"></i><?php echo $contacts->{'phone_'.$this->params['shortLanguage']} ?></li>
212
+                        <?php if (!empty($contacts->{'phone_'.$this->params[ 'shortLanguage' ]})): ?>
213
+                            <li><i class="fa fa-phone"></i><?php echo $contacts->{'phone_'.$this->params[ 'shortLanguage' ]} ?></li>
214 214
                         <?php endif; ?>
215
-                        <?php if (!empty($contacts->{'email_'.$this->params['shortLanguage']})): ?>
216
-                            <li><i class="fa fa-envelope-o"></i><a href="mailto:<?php echo $contacts->{'email_'.$this->params['shortLanguage']} ?>"><?php echo $contacts->{'email_'.$this->params['shortLanguage']} ?></a></li>
215
+                        <?php if (!empty($contacts->{'email_'.$this->params[ 'shortLanguage' ]})): ?>
216
+                            <li><i class="fa fa-envelope-o"></i><a href="mailto:<?php echo $contacts->{'email_'.$this->params[ 'shortLanguage' ]} ?>"><?php echo $contacts->{'email_'.$this->params[ 'shortLanguage' ]} ?></a></li>
217 217
                         <?php endif; ?>
218 218
                     </ul>
219 219
                 <?php endif; ?>
Please login to merge, or discard this patch.
views/product/view.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,17 +3,17 @@
 block discarded – undo
3 3
 
4 4
 /* @var Product $model */
5 5
 
6
-$this->params['breadcrumbs'][] = $model->{'title_'.$this->params['shortLanguage']};
6
+$this->params[ 'breadcrumbs' ][ ] = $model->{'title_'.$this->params[ 'shortLanguage' ]};
7 7
 ?>
8 8
 
9
-<?php if (!empty($model->{'content_'.$this->params['shortLanguage']})): ?>
9
+<?php if (!empty($model->{'content_'.$this->params[ 'shortLanguage' ]})): ?>
10 10
     <section class="inform_block">
11 11
 
12 12
         <div class="container">
13 13
 
14 14
             <div class="row" data-animated="fadeIn">
15 15
                 <div class="col-lg-12 col-md-12 col-sm-10">
16
-                    <?php echo $model->{'content_'.$this->params['shortLanguage']} ?>
16
+                    <?php echo $model->{'content_'.$this->params[ 'shortLanguage' ]} ?>
17 17
                 </div>
18 18
             </div>
19 19
         </div>
Please login to merge, or discard this patch.
views/about/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,14 +3,14 @@
 block discarded – undo
3 3
 
4 4
 /* @var $model About */
5 5
 
6
-$this->params['breadcrumbs'][] = $model->{'title_'.$this->params['shortLanguage']};
6
+$this->params[ 'breadcrumbs' ][ ] = $model->{'title_'.$this->params[ 'shortLanguage' ]};
7 7
 ?>
8 8
 
9 9
 <section class="inform_block">
10 10
     <div class="container">
11 11
         <div class="row" data-animated="fadeIn">
12 12
             <div class="col-lg-12 col-md-12 col-sm-10">
13
-                <?php echo $model->{'content_'.$this->params['shortLanguage']} ?>
13
+                <?php echo $model->{'content_'.$this->params[ 'shortLanguage' ]} ?>
14 14
             </div>
15 15
         </div>
16 16
     </div>
Please login to merge, or discard this patch.
views/contact/index.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 /* @var Contact $model */
8 8
 /* @var Feedback $feedback */
9 9
 
10
-$this->params['breadcrumbs'][] = $model->{'title_'.$this->params['shortLanguage']};
10
+$this->params[ 'breadcrumbs' ][ ] = $model->{'title_'.$this->params[ 'shortLanguage' ]};
11 11
 ?>
12 12
 
13 13
 <section class="contacts_block">
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     <!-- MAP -->
16 16
     <div id="map" class="full_width">
17 17
         <iframe width="100%" height="240" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
18
-                src="https://maps.google.com/maps?f=q&give a hand=s_q&hl=<?php echo $this->params['shortLanguage']; ?>&q=<?php echo $model->mapQ; ?>&ie=UTF8&z=<?php echo $model->mapZoom; ?>&output=embed"></iframe>
18
+                src="https://maps.google.com/maps?f=q&give a hand=s_q&hl=<?php echo $this->params[ 'shortLanguage' ]; ?>&q=<?php echo $model->mapQ; ?>&ie=UTF8&z=<?php echo $model->mapZoom; ?>&output=embed"></iframe>
19 19
     </div><!-- //MAP -->
20 20
 
21 21
     <div class="container">
@@ -37,18 +37,18 @@  discard block
 block discarded – undo
37 37
 
38 38
                 <?php else: ?>
39 39
 
40
-                    <?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>
40
+                    <?php $form = ActiveForm::begin([ 'id' => 'contact-form' ]); ?>
41 41
 
42
-                    <?php echo $form->field($feedback, 'name')->textInput(['autofocus' => true])->label(Yii::t('feedback', 'Name')) ?>
42
+                    <?php echo $form->field($feedback, 'name')->textInput([ 'autofocus' => true ])->label(Yii::t('feedback', 'Name')) ?>
43 43
 
44
-                    <?php echo $form->field($feedback, 'email')->textInput(['autofocus' => true])->label(Yii::t('feedback', 'Email')) ?>
44
+                    <?php echo $form->field($feedback, 'email')->textInput([ 'autofocus' => true ])->label(Yii::t('feedback', 'Email')) ?>
45 45
 
46
-                    <?php echo $form->field($feedback, 'subject')->textInput(['autofocus' => true])->label(Yii::t('feedback', 'Subject')) ?>
46
+                    <?php echo $form->field($feedback, 'subject')->textInput([ 'autofocus' => true ])->label(Yii::t('feedback', 'Subject')) ?>
47 47
 
48
-                    <?php echo $form->field($feedback, 'message')->textarea(['rows' => 6])->label(Yii::t('feedback', 'Message')) ?>
48
+                    <?php echo $form->field($feedback, 'message')->textarea([ 'rows' => 6 ])->label(Yii::t('feedback', 'Message')) ?>
49 49
 
50 50
                     <?php echo $form->field($feedback, 'verifyCode')->widget(Captcha::class, [
51
-                        'captchaAction' => '/'.$this->params['shortLanguage'].'/contact/captcha',
51
+                        'captchaAction' => '/'.$this->params[ 'shortLanguage' ].'/contact/captcha',
52 52
                         'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
53 53
                     ])->label(Yii::t('feedback', 'Verify code')) ?>
54 54
 
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
                 <h2><?php echo Yii::t('contacts', 'Communication') ?></h2>
69 69
 
70 70
                 <ul>
71
-                    <?php if (!empty($model->{'address_'.$this->params['shortLanguage']})): ?>
72
-                        <li><b class="fa fa-home"></b> <span> <?php echo $model->{'address_'.$this->params['shortLanguage']} ?></span></li>
71
+                    <?php if (!empty($model->{'address_'.$this->params[ 'shortLanguage' ]})): ?>
72
+                        <li><b class="fa fa-home"></b> <span> <?php echo $model->{'address_'.$this->params[ 'shortLanguage' ]} ?></span></li>
73 73
                     <?php endif; ?>
74
-                    <?php if (!empty($model->{'phone_'.$this->params['shortLanguage']})): ?>
75
-                        <li><b class="fa fa-phone"></b> <span> <?php echo $model->{'phone_'.$this->params['shortLanguage']} ?></span></li>
74
+                    <?php if (!empty($model->{'phone_'.$this->params[ 'shortLanguage' ]})): ?>
75
+                        <li><b class="fa fa-phone"></b> <span> <?php echo $model->{'phone_'.$this->params[ 'shortLanguage' ]} ?></span></li>
76 76
                     <?php endif; ?>
77
-                    <?php if (!empty($model->{'email_'.$this->params['shortLanguage']})): ?>
78
-                        <li><b class="fa fa-envelope-o"></b> <span><a href="mailto:<?php echo $model->{'email_'.$this->params['shortLanguage']} ?>"> <?php echo $model->{'email_'.$this->params['shortLanguage']} ?></a></span></li>
77
+                    <?php if (!empty($model->{'email_'.$this->params[ 'shortLanguage' ]})): ?>
78
+                        <li><b class="fa fa-envelope-o"></b> <span><a href="mailto:<?php echo $model->{'email_'.$this->params[ 'shortLanguage' ]} ?>"> <?php echo $model->{'email_'.$this->params[ 'shortLanguage' ]} ?></a></span></li>
79 79
                     <?php endif; ?>
80 80
 
81 81
                     <?php if (is_array($model->social)): ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,9 +35,12 @@
 block discarded – undo
35 35
                     <p>Because the application is in development mode, the email is not sent but saved as a file under <code><?php echo Yii::getAlias(Yii::$app->mailer->fileTransportPath) ?></code>. Please configure the <code>useFileTransport</code> property of the <code>mail</code> application component to be false to enable email sending.</p>
36 36
                     <?php endif; ?>
37 37
 
38
-                <?php else: ?>
38
+                <?php else {
39
+    : ?>
39 40
 
40
-                    <?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>
41
+                    <?php $form = ActiveForm::begin(['id' => 'contact-form']);
42
+}
43
+?>
41 44
 
42 45
                     <?php echo $form->field($feedback, 'name')->textInput(['autofocus' => true])->label(Yii::t('feedback', 'Name')) ?>
43 46
 
Please login to merge, or discard this patch.
views/menu/pageItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 /* @var array $linkOptions */
6 6
 
7 7
 if (!isset($linkOptions)) {
8
-    $linkOptions = [];
8
+    $linkOptions = [ ];
9 9
 }
10 10
 
11 11
 echo Html::a($data->{'title_'.$shortLanguage},
Please login to merge, or discard this patch.
views/admin/technologies/_form.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
             ])->label(Yii::t('app', 'Icon html class')); ?>
29 29
             <div class="row" style="margin-bottom: 15px;">
30 30
                 <div class="col-md-4">
31
-                    <?php if(!$model->isNewRecord): ?>
32
-                        <?php echo Html::tag('i', '', ['class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon]) ?>
31
+                    <?php if (!$model->isNewRecord): ?>
32
+                        <?php echo Html::tag('i', '', [ 'class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon ]) ?>
33 33
                     <?php endif; ?>
34 34
                     <?php echo Html::a('Fontawesome icons', Url::to('https://fontawesome.ru/all-icons/'), [
35 35
                         'target' => '_blank'
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             </div>
39 39
 
40 40
             <?php echo $form->field($model, 'about')
41
-                ->checkboxList(ArrayHelper::map($aboutList, 'id', function ($item) {
41
+                ->checkboxList(ArrayHelper::map($aboutList, 'id', function($item) {
42 42
                     /* @var $item app\models\About */
43 43
                     return $item->getDefaultTranslate('title');
44 44
                 }), [
Please login to merge, or discard this patch.
views/admin/technologies/update.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,21 +4,21 @@
 block discarded – undo
4 4
 /* @var $model app\models\Technology */
5 5
 /* @var $aboutList app\models\About[] */
6 6
 
7
-$this->title = Yii::t('technologies', 'Update technology').': ' . $model->name;
8
-$this->params['breadcrumbs'][] = [
7
+$this->title = Yii::t('technologies', 'Update technology').': '.$model->name;
8
+$this->params[ 'breadcrumbs' ][ ] = [
9 9
     'label' => Yii::t('technologies', 'Technologies'),
10 10
     'url' => [
11
-        $this->params['urlPrefix'].'index'
11
+        $this->params[ 'urlPrefix' ].'index'
12 12
     ]
13 13
 ];
14
-$this->params['breadcrumbs'][] = [
14
+$this->params[ 'breadcrumbs' ][ ] = [
15 15
     'label' => $model->name,
16 16
     'url' => [
17
-        $this->params['urlPrefix'].'view',
17
+        $this->params[ 'urlPrefix' ].'view',
18 18
         'id' => $model->id
19 19
     ]
20 20
 ];
21
-$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
21
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Update');
22 22
 ?>
23 23
 <div class="technologies-update">
24 24
 
Please login to merge, or discard this patch.
views/admin/technologies/index.php 1 patch
Spacing   +11 added lines, -11 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('technologies', 'Technologies');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="technologies-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('technologies', 'Create technology'), [
20
-            $this->params['urlPrefix'].'create'
20
+            $this->params[ 'urlPrefix' ].'create'
21 21
         ], [
22 22
             'class' => 'btn btn-success'
23 23
         ]) ?>
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
                 'value' => function($searchModel) {
35 35
                     /* @var $searchModel TechnologySearch */
36 36
                     return Html::a(
37
-                        Html::tag('i', '', ['class' => empty($searchModel->icon) ? 'fa fa-file fa-2x' : $searchModel->icon]),
38
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
37
+                        Html::tag('i', '', [ 'class' => empty($searchModel->icon) ? 'fa fa-file fa-2x' : $searchModel->icon ]),
38
+                        Url::to([ $this->params[ 'urlPrefix' ].'view', 'id' => $searchModel->id ])
39 39
                     );
40 40
                 },
41 41
                 'format' => 'raw',
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                     /* @var $searchModel TechnologySearch */
47 47
                     return Html::a(
48 48
                         Html::encode($searchModel->name),
49
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
49
+                        Url::to([ $this->params[ 'urlPrefix' ].'view', 'id' => $searchModel->id ])
50 50
                     );
51 51
                 },
52 52
                 'format' => 'raw',
@@ -57,13 +57,13 @@  discard block
 block discarded – undo
57 57
             ],
58 58
             'about' => [
59 59
                 'label' => Yii::t('technologies', 'Parent about records'),
60
-                'value' => function ($searchModel) {
60
+                'value' => function($searchModel) {
61 61
                     /* @var $searchModel TechnologySearch */
62 62
                     $aboutRecords = '';
63 63
                     foreach ($searchModel->about as $aboutRecord) {
64 64
                         $aboutRecords .= Html::tag('li',
65 65
                             Html::a($aboutRecord->getDefaultTranslate('title'),
66
-                                Url::to(['/'.$this->params['shortLanguage'].'/admin/about/view', 'id' => $aboutRecord->id]),
66
+                                Url::to([ '/'.$this->params[ 'shortLanguage' ].'/admin/about/view', 'id' => $aboutRecord->id ]),
67 67
                                 [
68 68
                                     'target' => '_blank'
69 69
                                 ]
@@ -79,21 +79,21 @@  discard block
 block discarded – undo
79 79
             ],
80 80
             [
81 81
                 'attribute' => 'created_at',
82
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
82
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
83 83
                 'label' => Yii::t('app', 'Created date'),
84 84
             ],
85 85
             [
86 86
                 'attribute' => 'updated_at',
87
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
87
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
88 88
                 'label' => Yii::t('app', 'Updated date'),
89 89
             ],
90 90
             [
91 91
                 'class' => 'yii\grid\ActionColumn',
92 92
                 'header' => Yii::t('app', 'Actions'),
93 93
                 'template' => '{view} {update} {delete}',
94
-                'urlCreator'=>function($action, $model, $key, $index){
94
+                'urlCreator'=>function($action, $model, $key, $index) {
95 95
                     return Url::to([
96
-                        $this->params['urlPrefix'].$action,
96
+                        $this->params[ 'urlPrefix' ].$action,
97 97
                         'id' => $model->id
98 98
                     ]);
99 99
                 }
Please login to merge, or discard this patch.