Passed
Push — master ( dd4450...9a9614 )
by Andrey
05:55
created
views/admin/articles/create.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
 /* @var $albums Itstructure\MFUploader\models\album\Album[] */
7 7
 
8 8
 $this->title = Yii::t('articles', 'Create article');
9
-$this->params['breadcrumbs'][] = [
9
+$this->params[ 'breadcrumbs' ][ ] = [
10 10
     'label' => Yii::t('articles', 'Articles'),
11 11
     'url' => [
12
-        $this->params['urlPrefix'].'index'
12
+        $this->params[ 'urlPrefix' ].'index'
13 13
     ]
14 14
 ];
15
-$this->params['breadcrumbs'][] = Yii::t('app', 'Create');
15
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Create');
16 16
 ?>
17 17
 <div class="article-create">
18 18
 
Please login to merge, or discard this patch.
views/admin/products/_form.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
             ])->label(Yii::t('app', 'Icon html class')); ?>
46 46
             <div class="row" style="margin-bottom: 15px;">
47 47
                 <div class="col-md-12">
48
-                    <?php if(!$model->mainModel->isNewRecord): ?>
49
-                        <?php echo Html::tag('i', '', ['class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon]) ?>
48
+                    <?php if (!$model->mainModel->isNewRecord): ?>
49
+                        <?php echo Html::tag('i', '', [ 'class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon ]) ?>
50 50
                     <?php endif; ?>
51 51
                     <?php echo Html::a('Fontawesome icons', Url::to('https://fontawesome.ru/all-icons/'), [
52 52
                         'target' => '_blank'
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                     <?php
55 55
                     Modal::begin([
56 56
                         'header' => '<h2>Fe icons</h2>',
57
-                        'toggleButton' => ['label' => 'Fe icons']
57
+                        'toggleButton' => [ 'label' => 'Fe icons' ]
58 58
                     ]);
59 59
                     require __DIR__.'/../icons/fe-icons.php';
60 60
                     Modal::end();
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
                             'filebrowserWindowHeight' => '700',
89 89
                             'extraPlugins' => 'pbckcode',
90 90
                             'toolbarGroups' => [
91
-                                ['name' => 'pbckcode']
91
+                                [ 'name' => 'pbckcode' ]
92 92
                             ],
93 93
                             'allowedContent' => true,
94
-                            'language' => $this->params['shortLanguage'],
94
+                            'language' => $this->params[ 'shortLanguage' ],
95 95
                         ]
96 96
                     ],
97 97
                     [
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             ])->label(Yii::t('products', 'Price')); ?>
122 122
 
123 123
             <?php echo $form->field($model, 'active')
124
-                ->radioList([1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive')])
124
+                ->radioList([ 1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive') ])
125 125
                 ->label(Yii::t('app', 'Active status')); ?>
126 126
 
127 127
             <div class="form-group <?php if ($model->hasErrors('categoryId')):?>has-error<?php endif; ?>">
@@ -137,8 +137,8 @@  discard block
 block discarded – undo
137 137
                     ],
138 138
                     'mainContainerOptions' => [
139 139
                         'levels' => [
140
-                            ['style' => 'margin-left: 0; padding-left: 0;'],
141
-                            ['style' => 'margin-left: 10px; padding-left: 10px;'],
140
+                            [ 'style' => 'margin-left: 0; padding-left: 0;' ],
141
+                            [ 'style' => 'margin-left: 10px; padding-left: 10px;' ],
142 142
                         ]
143 143
                     ],
144 144
                     'itemContainerOptions' => [
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 <div class="panel-heading"><?php echo MFUModule::t('main', 'New files'); ?></div>
158 158
                 <div class="panel-body">
159 159
                     <div class="row">
160
-                        <?php for ($i=1; $i < 5; $i++): ?>
160
+                        <?php for ($i = 1; $i < 5; $i++): ?>
161 161
                             <div class="col-12 col-lg-6" style="margin-top: 5px; margin-bottom: 10px;">
162 162
                                 <?php echo $this->render('../mediafiles/_new-mediafiles', [
163 163
                                     'model' => $model,
@@ -173,14 +173,14 @@  discard block
 block discarded – undo
173 173
             <!-- New files end -->
174 174
 
175 175
             <!-- Existing files begin -->
176
-            <?php if (!$model->mainModel->isNewRecord && $images['pagination']->totalCount > 0): ?>
176
+            <?php if (!$model->mainModel->isNewRecord && $images[ 'pagination' ]->totalCount > 0): ?>
177 177
                 <div class="panel panel-default">
178 178
                     <div class="panel-heading"><?php echo MFUModule::t('main', 'Existing files'); ?></div>
179 179
                     <div class="panel-body">
180 180
                         <?php echo $this->render('../mediafiles/_existing-mediafiles', [
181 181
                             'model' => $model,
182
-                            'mediafiles' => $images['items'],
183
-                            'pages' => $images['pagination'],
182
+                            'mediafiles' => $images[ 'items' ],
183
+                            'pages' => $images[ 'pagination' ],
184 184
                             'fileType' => UploadModelInterface::FILE_TYPE_IMAGE,
185 185
                             'ownerParams' => isset($ownerParams) && is_array($ownerParams) ? $ownerParams : null,
186 186
                         ]) ?>
Please login to merge, or discard this patch.
views/admin/products/view.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@  discard block
 block discarded – undo
18 18
 /* @var $images_items Mediafile[] */
19 19
 /* @var $images_pagination Pagination */
20 20
 
21
-$images_items = $images['items'];
22
-$images_pagination = $images['pagination'];
21
+$images_items = $images[ 'items' ];
22
+$images_pagination = $images[ 'pagination' ];
23 23
 
24 24
 $this->title = $model->getDefaultTranslate('title');
25
-$this->params['breadcrumbs'][] = [
25
+$this->params[ 'breadcrumbs' ][ ] = [
26 26
     'label' => Yii::t('products', 'Products'),
27 27
     'url' => [
28
-        $this->params['urlPrefix'].'index'
28
+        $this->params[ 'urlPrefix' ].'index'
29 29
     ]
30 30
 ];
31
-$this->params['breadcrumbs'][] = $this->title;
31
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
32 32
 ?>
33 33
 
34 34
 <style>
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
 
43 43
     <p>
44 44
         <?php echo Html::a(Yii::t('app', 'Update'), [
45
-            $this->params['urlPrefix'].'update',
45
+            $this->params[ 'urlPrefix' ].'update',
46 46
             'id' => $model->id
47 47
         ], [
48 48
             'class' => 'btn btn-primary'
49 49
         ]) ?>
50 50
 
51 51
         <?php echo Html::a(Yii::t('app', 'Delete'), [
52
-            $this->params['urlPrefix'].'delete',
52
+            $this->params[ 'urlPrefix' ].'delete',
53 53
             'id' => $model->id
54 54
         ], [
55 55
             'class' => 'btn btn-danger',
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             'id',
95 95
             'thumbnail' => [
96 96
                 'label' => MFUModule::t('main', 'Thumbnail'),
97
-                'value' => function ($model) {
97
+                'value' => function($model) {
98 98
                     /* @var $model Product */
99 99
                     $thumbnailModel = $model->getThumbnailModel();
100 100
                     return $thumbnailModel == null ? '' : Html::a($model->getDefaultThumbImage(), Url::to($thumbnailModel->getThumbUrl(MFUModule::THUMB_ALIAS_LARGE)), [
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                 'label' => Yii::t('app', 'Icon'),
108 108
                 'value' => function($model) {
109 109
                     /* @var $model Product */
110
-                    return Html::tag('i', '', ['class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon]);
110
+                    return Html::tag('i', '', [ 'class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon ]);
111 111
                 },
112 112
                 'format' => 'raw',
113 113
             ],
@@ -123,21 +123,21 @@  discard block
 block discarded – undo
123 123
                 'label' => Yii::t('app', 'Active status'),
124 124
                 'value' => function($model) {
125 125
                     /* @var $model Product */
126
-                    if ($model->active == 1){
127
-                        return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Active') . '</i>';
126
+                    if ($model->active == 1) {
127
+                        return '<i class="fa fa-check-circle text-success"> '.Yii::t('app', 'Active').'</i>';
128 128
                     } else {
129
-                        return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'Inactive') . '</i>';
129
+                        return '<i class="fa fa-times text-danger"> '.Yii::t('app', 'Inactive').'</i>';
130 130
                     }
131 131
                 },
132 132
                 'format' => 'raw',
133 133
             ],
134 134
             [
135 135
                 'label' => Yii::t('products', 'Parent category'),
136
-                'value' => function ($model) {
136
+                'value' => function($model) {
137 137
                     /* @var $model Product */
138 138
                     return null === $model->category ? '' : Html::a(
139 139
                         $model->category->getDefaultTranslate('title'),
140
-                        Url::to(['/'.$this->params['shortLanguage'].'/admin/categories/view', 'id' => $model->category->id]),
140
+                        Url::to([ '/'.$this->params[ 'shortLanguage' ].'/admin/categories/view', 'id' => $model->category->id ]),
141 141
                         [
142 142
                             'target' => '_blank'
143 143
                         ]
@@ -147,12 +147,12 @@  discard block
 block discarded – undo
147 147
             ],
148 148
             [
149 149
                 'attribute' => 'created_at',
150
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
150
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
151 151
                 'label' => Yii::t('app', 'Created date'),
152 152
             ],
153 153
             [
154 154
                 'attribute' => 'updated_at',
155
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
155
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
156 156
                 'label' => Yii::t('app', 'Updated date'),
157 157
             ],
158 158
         ],
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                         return Html::a(
189 189
                             $item->getDefaultThumbImage(),
190 190
                             Url::to([
191
-                                '/'.$this->params['shortLanguage'].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
191
+                                '/'.$this->params[ 'shortLanguage' ].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
192 192
                             ])
193 193
                         );
194 194
                     },
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
                         return Html::a(
202 202
                             Html::encode($item->title),
203 203
                             Url::to([
204
-                                '/'.$this->params['shortLanguage'].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
204
+                                '/'.$this->params[ 'shortLanguage' ].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
205 205
                             ])
206 206
                         );
207 207
                     },
Please login to merge, or discard this patch.
views/admin/products/index.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -11,21 +11,21 @@  discard block
 block discarded – undo
11 11
 /* @var $this Itstructure\AdminModule\components\AdminView */
12 12
 
13 13
 $this->title = Yii::t('products', 'Products');
14
-$this->params['breadcrumbs'][] = $this->title;
14
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
15 15
 ?>
16 16
 <div class="product-index">
17 17
 
18
-    <?php  echo $this->render('_search', ['model' => $searchModel]); ?>
18
+    <?php  echo $this->render('_search', [ 'model' => $searchModel ]); ?>
19 19
 
20 20
     <p>
21 21
         <?php echo Html::a(Yii::t('products', 'Create product'), [
22
-            $this->params['urlPrefix'].'create'
22
+            $this->params[ 'urlPrefix' ].'create'
23 23
         ], [
24 24
             'class' => 'btn btn-success'
25 25
         ]) ?>
26 26
     </p>
27 27
 
28
-    <?php echo LinkPager::widget(['pagination' => $dataProvider->getPagination()]) ?>
28
+    <?php echo LinkPager::widget([ 'pagination' => $dataProvider->getPagination() ]) ?>
29 29
 
30 30
     <?php echo GridView::widget([
31 31
         'dataProvider' => $dataProvider,
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                     /* @var $data ProductSearch */
40 40
                     $defaultThumbImage = $data->getDefaultThumbImage();
41 41
                     return !empty($defaultThumbImage) ? Html::a($defaultThumbImage, Url::to([
42
-                        $this->params['urlPrefix'].'view',
42
+                        $this->params[ 'urlPrefix' ].'view',
43 43
                         'id' => $data->id
44 44
                     ])) : '';
45 45
                 },
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
                 'value' => function($searchModel) {
51 51
                     /* @var $searchModel ProductSearch */
52 52
                     return Html::a(
53
-                        Html::tag('i', '', ['class' => empty($searchModel->icon) ? 'fa fa-file fa-2x' : $searchModel->icon]),
54
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
53
+                        Html::tag('i', '', [ 'class' => empty($searchModel->icon) ? 'fa fa-file fa-2x' : $searchModel->icon ]),
54
+                        Url::to([ $this->params[ 'urlPrefix' ].'view', 'id' => $searchModel->id ])
55 55
                     );
56 56
                 },
57 57
                 'format' => 'raw',
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                     /* @var $searchModel ProductSearch */
63 63
                     return Html::a(
64 64
                         Html::encode($searchModel->getDefaultTranslate('title')),
65
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
65
+                        Url::to([ $this->params[ 'urlPrefix' ].'view', 'id' => $searchModel->id ])
66 66
                     );
67 67
                 },
68 68
                 'format' => 'raw',
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
             ],
85 85
             'category' => [
86 86
                 'label' => Yii::t('products', 'Parent category'),
87
-                'value' => function ($searchModel) {
87
+                'value' => function($searchModel) {
88 88
                     /* @var $searchModel app\models\ProductSearch */
89 89
                     return null === $searchModel->category ? '' : Html::a(
90 90
                         $searchModel->category->getDefaultTranslate('title'),
91
-                        Url::to(['/'.$this->params['shortLanguage'].'/admin/categories/view', 'id' => $searchModel->category->id]),
91
+                        Url::to([ '/'.$this->params[ 'shortLanguage' ].'/admin/categories/view', 'id' => $searchModel->category->id ]),
92 92
                         [
93 93
                             'target' => '_blank'
94 94
                         ]
@@ -98,22 +98,22 @@  discard block
 block discarded – undo
98 98
             ],
99 99
             [
100 100
                 'attribute' => 'created_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', 'Created date'),
103 103
             ],
104 104
             [
105 105
                 'attribute' => 'updated_at',
106
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
106
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
107 107
                 'label' => Yii::t('app', 'Updated date'),
108 108
             ],
109 109
             'active' => [
110 110
                 'label' => Yii::t('app', 'Active status'),
111 111
                 'value' => function($searchModel) {
112 112
                     /* @var $searchModel app\models\Product */
113
-                    if ($searchModel->active == 1){
114
-                        return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Active') . '</i>';
113
+                    if ($searchModel->active == 1) {
114
+                        return '<i class="fa fa-check-circle text-success"> '.Yii::t('app', 'Active').'</i>';
115 115
                     } else {
116
-                        return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'Inactive') . '</i>';
116
+                        return '<i class="fa fa-times text-danger"> '.Yii::t('app', 'Inactive').'</i>';
117 117
                     }
118 118
                 },
119 119
                 'format' => 'raw',
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
                 'class' => 'yii\grid\ActionColumn',
123 123
                 'header' => Yii::t('app', 'Actions'),
124 124
                 'template' => '{view} {update} {delete}',
125
-                'urlCreator'=>function($action, $model, $key, $index){
125
+                'urlCreator'=>function($action, $model, $key, $index) {
126 126
                     return Url::to([
127
-                        $this->params['urlPrefix'].$action,
127
+                        $this->params[ 'urlPrefix' ].$action,
128 128
                         'id' => $model->id
129 129
                     ]);
130 130
                 }
Please login to merge, or discard this patch.
views/admin/products/_search.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     <?php $form = ActiveForm::begin([
30 30
         'action' => [
31
-            $this->params['urlPrefix'].'index'
31
+            $this->params[ 'urlPrefix' ].'index'
32 32
         ],
33 33
         'method' => 'get',
34 34
     ]); ?>
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         <div class="col-md-4">
38 38
 
39 39
             <?php echo $form->field($model, 'active')
40
-                ->radioList([1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive')])
40
+                ->radioList([ 1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive') ])
41 41
                 ->label(Yii::t('app', 'Active status')); ?>
42 42
 
43 43
             <?php echo Html::label(Yii::t('products', 'Parent category'), 'search-by-category', [
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
                 ],
53 53
                 'mainContainerOptions' => [
54 54
                     'levels' => [
55
-                        ['style' => 'margin-left: 0; padding-left: 0;'],
56
-                        ['style' => 'margin-left: 10px; padding-left: 10px;'],
55
+                        [ 'style' => 'margin-left: 0; padding-left: 0;' ],
56
+                        [ 'style' => 'margin-left: 10px; padding-left: 10px;' ],
57 57
                     ]
58 58
                 ],
59 59
                 'itemContainerOptions' => [
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
             <?php echo $form->field($model, 'title')->label(Yii::t('app', 'Title')) ?>
65 65
 
66 66
             <div class="form-group">
67
-                <?php echo Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>
68
-                <?php echo Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default', 'role' => 'clear-button']) ?>
67
+                <?php echo Html::submitButton(Yii::t('app', 'Search'), [ 'class' => 'btn btn-primary' ]) ?>
68
+                <?php echo Html::resetButton(Yii::t('app', 'Reset'), [ 'class' => 'btn btn-default', 'role' => 'clear-button' ]) ?>
69 69
             </div>
70 70
 
71 71
         </div>
Please login to merge, or discard this patch.
views/admin/products/update.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,21 +6,21 @@
 block discarded – undo
6 6
 /* @var $albums Itstructure\MFUploader\models\album\Album[] */
7 7
 /* @var $images array */
8 8
 
9
-$this->title = Yii::t('products', 'Update product').': ' . $model->mainModel->getDefaultTranslate('title');
10
-$this->params['breadcrumbs'][] = [
9
+$this->title = Yii::t('products', 'Update product').': '.$model->mainModel->getDefaultTranslate('title');
10
+$this->params[ 'breadcrumbs' ][ ] = [
11 11
     'label' => Yii::t('products', 'Products'),
12 12
     'url' => [
13
-        $this->params['urlPrefix'].'index'
13
+        $this->params[ 'urlPrefix' ].'index'
14 14
     ]
15 15
 ];
16
-$this->params['breadcrumbs'][] = [
16
+$this->params[ 'breadcrumbs' ][ ] = [
17 17
     'label' => $model->mainModel->getDefaultTranslate('title'),
18 18
     'url' => [
19
-        $this->params['urlPrefix'].'view',
19
+        $this->params[ 'urlPrefix' ].'view',
20 20
         'id' => $model->id
21 21
     ]
22 22
 ];
23
-$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
23
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Update');
24 24
 ?>
25 25
 <div class="product-update">
26 26
 
Please login to merge, or discard this patch.
views/admin/products/MultiLevelMenu/form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
     'name' => Html::getInputName($model, 'categoryId'),
10 10
     'label' => Html::encode($data->getDefaultTranslate('title')),
11 11
     'uncheck' => false,
12
-]);  ?>
12
+]); ?>
Please login to merge, or discard this patch.
views/admin/mediafiles/_existing-mediafiles.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
 </style>
30 30
 
31 31
 <div class="row">
32
-    <?php $i=0; ?>
32
+    <?php $i = 0; ?>
33 33
     <?php foreach ($mediafiles as $mediafile): ?>
34 34
         <div class="col-12 col-lg-6 file-item">
35
-            <?php $i+=1; ?>
35
+            <?php $i += 1; ?>
36 36
             <div class="media">
37 37
                 <div class="media-left" id="mediafile-container-<?php echo $i; ?>">
38 38
                     <?php echo $mediafile->getPreview($baseUrl, 'existing', $mediafile->isImage() ? [
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                                 'target' => '_blank'
44 44
                             ]
45 45
                         ]
46
-                    ] : []); ?>
46
+                    ] : [ ]); ?>
47 47
                 </div>
48 48
                 <div class="media-body">
49 49
                     <h4 id="title-container-<?php echo $i; ?>" class="media-heading">
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                     'buttonName' => Module::t('main', 'Set '.$fileType),
63 63
                     'resetButtonName' => Module::t('main', 'Clear'),
64 64
                     'options' => [
65
-                        'id' => Html::getInputId($model, $fileType) . '-' . $i,
65
+                        'id' => Html::getInputId($model, $fileType).'-'.$i,
66 66
                         'value' => $mediafile->{FileSetter::INSERTED_DATA_ID},
67 67
                     ],
68 68
                     'deleteBoxDisplay' => true,
@@ -70,17 +70,17 @@  discard block
 block discarded – undo
70 70
                     'deleteBoxOptions' => [
71 71
                         'value' => $mediafile->id
72 72
                     ],
73
-                    'mediafileContainer' => '#mediafile-container-' . $i,
74
-                    'titleContainer' => '#title-container-' . $i,
75
-                    'descriptionContainer' => '#description-container-' . $i,
73
+                    'mediafileContainer' => '#mediafile-container-'.$i,
74
+                    'titleContainer' => '#title-container-'.$i,
75
+                    'descriptionContainer' => '#description-container-'.$i,
76 76
                     'subDir' => $model->mainModel->tableName()
77 77
                 ], isset($ownerParams) && is_array($ownerParams) ? ArrayHelper::merge([
78 78
                     'ownerAttribute' => $fileType
79
-                ], $ownerParams) : [])
79
+                ], $ownerParams) : [ ])
80 80
                 ); ?>
81 81
             <?php endif; ?>
82 82
         </div>
83 83
     <?php endforeach; ?>
84 84
 </div>
85 85
 
86
-<?php echo LinkPager::widget(['pagination' => $pages]) ?>
86
+<?php echo LinkPager::widget([ 'pagination' => $pages ]) ?>
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 !empty(Yii::$app->params['captcha']) ? Yii::$app->params['captcha']['site_key'] : 'test';?>"
182
+                             data-sitekey="<?php echo !empty(Yii::$app->params[ 'captcha' ]) ? Yii::$app->params[ 'captcha' ][ 'site_key' ] : 'test'; ?>"
183 183
                              data-callback="validateRecaptchaFeedback"
184 184
                              data-expired-callback="grecaptcha_reset"
185 185
                         ></div>
Please login to merge, or discard this patch.