Passed
Push — master ( 09d577...6e0adc )
by Andrey
04:55
created
views/admin/feedback/view.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 /* @var $model app\models\Feedback */
8 8
 
9 9
 $this->title = $model->subject;
10
-$this->params['breadcrumbs'][] = [
10
+$this->params[ 'breadcrumbs' ][ ] = [
11 11
     'label' => Yii::t('feedback', 'Feedback'),
12 12
     'url' => [
13
-        $this->params['urlPrefix'].'index'
13
+        $this->params[ 'urlPrefix' ].'index'
14 14
     ]
15 15
 ];
16
-$this->params['breadcrumbs'][] = $this->title;
16
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
17 17
 ?>
18 18
 
19 19
 <style>
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     <p>
29 29
         <?php echo Html::a(Yii::t('app', 'Delete'), [
30
-            $this->params['urlPrefix'].'delete', 'id' => $model->id
30
+            $this->params[ 'urlPrefix' ].'delete', 'id' => $model->id
31 31
         ], [
32 32
             'class' => 'btn btn-danger',
33 33
             'data'=>[
@@ -75,12 +75,12 @@  discard block
 block discarded – undo
75 75
             ],
76 76
             [
77 77
                 'attribute' => 'created_at',
78
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
78
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
79 79
                 'label' => Yii::t('app', 'Created date'),
80 80
             ],
81 81
             [
82 82
                 'attribute' => 'updated_at',
83
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
83
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
84 84
                 'label' => Yii::t('app', 'Updated date'),
85 85
             ],
86 86
         ],
Please login to merge, or discard this patch.
views/admin/errors/access_error.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 $this->title = '';
3
-$this->params['breadcrumbs'][] = '';
3
+$this->params[ 'breadcrumbs' ][ ] = '';
4 4
 ?>
5 5
 <div class="errors-index">
6 6
 
Please login to merge, or discard this patch.
views/admin/users/_form.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
             <?php
26 26
             /* @var $userModel app\models\User */
27 27
             $userModel = $model->getUserModel();
28
-            echo Html::tag('div', Html::img($userModel->getAvatar()), ['id' => 'thumbnail-container']).
28
+            echo Html::tag('div', Html::img($userModel->getAvatar()), [ 'id' => 'thumbnail-container' ]).
29 29
             FileSetter::widget(ArrayHelper::merge([
30 30
                         'model' => $model,
31 31
                         'attribute' => UploadModelInterface::FILE_TYPE_THUMB,
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
                         ],
38 38
                         'mediafileContainer' => '#thumbnail-container',
39 39
                         'subDir' => $userModel->tableName(),
40
-                    ], $userModel->getIsNewRecord() ? ['ownerAttribute' => UploadModelInterface::FILE_TYPE_THUMB] : [
40
+                    ], $userModel->getIsNewRecord() ? [ 'ownerAttribute' => UploadModelInterface::FILE_TYPE_THUMB ] : [
41 41
                         'owner' => $userModel->tableName(),
42 42
                         'ownerId' => $model->getId(),
43 43
                         'ownerAttribute' => UploadModelInterface::FILE_TYPE_THUMB
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                     <?php foreach ($model->roles as $role): ?>
51 51
                         <p style="margin: 2px 5px; color: blue;">
52 52
                             <?php echo Html::a($role, Url::to([
53
-                                '/'.$this->params['shortLanguage'].'/rbac/roles/view',
53
+                                '/'.$this->params[ 'shortLanguage' ].'/rbac/roles/view',
54 54
                                 'id' => $role
55 55
                             ]), [
56 56
                                     'target' => '_blank'
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                             'type' => FieldType::FIELD_TYPE_CHECKBOX,
68 68
                             'data' => ArrayHelper::map($roles, 'name', 'name'),
69 69
                             'label' => Yii::t('users', 'Roles'),
70
-                        ] : [],
70
+                        ] : [ ],
71 71
                         [
72 72
                             'name' => 'first_name',
73 73
                             'type' => FieldType::FIELD_TYPE_TEXT,
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
                         [
87 87
                             'name' => 'position_id',
88 88
                             'type' => FieldType::FIELD_TYPE_DROPDOWN,
89
-                            'data' => ArrayHelper::map($positions, 'id', function ($item) {
90
-                                return $item->{'name_'.$this->params['shortLanguage']};
89
+                            'data' => ArrayHelper::map($positions, 'id', function($item) {
90
+                                return $item->{'name_'.$this->params[ 'shortLanguage' ]};
91 91
                             }),
92 92
                             'label' => Yii::t('users', 'Position')
93 93
                         ],
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
                             'filebrowserWindowHeight' => '700',
162 162
                             'extraPlugins' => 'pbckcode',
163 163
                             'toolbarGroups' => [
164
-                                ['name' => 'pbckcode']
164
+                                [ 'name' => 'pbckcode' ]
165 165
                             ],
166 166
                             'allowedContent' => true,
167
-                            'language' => $this->params['shortLanguage'],
167
+                            'language' => $this->params[ 'shortLanguage' ],
168 168
                         ]
169 169
                     ],
170 170
                 ],
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
 
178 178
     <div class="form-group">
179
-        <?php echo Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success']) ?>
179
+        <?php echo Html::submitButton(Yii::t('app', 'Save'), [ 'class' => 'btn btn-success' ]) ?>
180 180
     </div>
181 181
 
182 182
     <?php ActiveForm::end(); ?>
Please login to merge, or discard this patch.
views/admin/users/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 $positions array|\yii\db\ActiveRecord[] */
7 7
 /* @var $changeRoles bool */
8 8
 
9
-$this->title = Yii::t('users', 'Update user') . ': ' . $model->first_name;
10
-$this->params['breadcrumbs'][] = [
9
+$this->title = Yii::t('users', 'Update user').': '.$model->first_name;
10
+$this->params[ 'breadcrumbs' ][ ] = [
11 11
     'label' => Yii::t('users', 'Users'),
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->first_name,
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="users-update">
26 26
 
Please login to merge, or discard this patch.
views/admin/users/_search.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
     <?php $form = ActiveForm::begin([
14 14
         'action' => [
15
-            $this->params['urlPrefix'].'index'
15
+            $this->params[ 'urlPrefix' ].'index'
16 16
         ],
17 17
         'method' => 'get',
18 18
     ]); ?>
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
     <?php // echo $form->field($model, 'updated_at') ?>
33 33
 
34 34
     <div class="form-group">
35
-        <?php echo Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
36
-        <?php echo Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
35
+        <?php echo Html::submitButton('Search', [ 'class' => 'btn btn-primary' ]) ?>
36
+        <?php echo Html::resetButton('Reset', [ 'class' => 'btn btn-default' ]) ?>
37 37
     </div>
38 38
 
39 39
     <?php ActiveForm::end(); ?>
Please login to merge, or discard this patch.
views/admin/users/index.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 /* @var $administrateAccess bool */
11 11
 
12 12
 $this->title = Yii::t('users', 'Users');
13
-$this->params['breadcrumbs'][] = $this->title;
13
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
14 14
 ?>
15 15
 <div class="users-index">
16 16
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     <p>
20 20
         <?php echo Html::a(Yii::t('users', 'Create user'), [
21
-            $this->params['urlPrefix'].'create'
21
+            $this->params[ 'urlPrefix' ].'create'
22 22
         ], [
23 23
             'class' => 'btn btn-success'
24 24
         ]) ?>
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                     return Html::a(
35 35
                         Html::encode($searchModel->id),
36 36
                         Url::to([
37
-                            $this->params['urlPrefix'].'view',
37
+                            $this->params[ 'urlPrefix' ].'view',
38 38
                             'id' => $searchModel->id
39 39
                         ])
40 40
                     );
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
             ],
44 44
             'avatar' => [
45 45
                 'label' => Yii::t('users', 'Avatar'),
46
-                'value' => function ($searchModel) {
46
+                'value' => function($searchModel) {
47 47
                     /* @var $searchModel \app\models\UserSearch */
48 48
                     $thumbnailModel = $searchModel->getThumbnailModel();
49 49
                     return $thumbnailModel == null ? '' : Html::a(Html::img($searchModel->getAvatar(), [
50 50
                             'width' => 75,
51 51
                             'height' => 75,
52 52
                         ]), Url::to([
53
-                            $this->params['urlPrefix'].'view',
53
+                            $this->params[ 'urlPrefix' ].'view',
54 54
                             'id' => $searchModel->id
55 55
                         ])
56 56
                     );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                     return Html::a(
64 64
                         Html::encode($searchModel->first_name),
65 65
                         Url::to([
66
-                            $this->params['urlPrefix'].'view',
66
+                            $this->params[ 'urlPrefix' ].'view',
67 67
                             'id' => $searchModel->id
68 68
                         ])
69 69
                     );
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                     return Html::a(
77 77
                         Html::encode($searchModel->last_name),
78 78
                         Url::to([
79
-                            $this->params['urlPrefix'].'view',
79
+                            $this->params[ 'urlPrefix' ].'view',
80 80
                             'id' => $searchModel->id
81 81
                         ])
82 82
                     );
@@ -87,12 +87,12 @@  discard block
 block discarded – undo
87 87
                 'label' => Yii::t('users', 'Status'),
88 88
                 'value' => function($searchModel) {
89 89
                     if (!isset($searchModel->status) || empty($searchModel->status)) {
90
-                        return '<i class="fa fa-minus-circle text-warning"> ' . Yii::t('users', 'No status');
90
+                        return '<i class="fa fa-minus-circle text-warning"> '.Yii::t('users', 'No status');
91 91
                     }
92
-                    if ($searchModel->status == 1){
93
-                        return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Active') . '</i>';
92
+                    if ($searchModel->status == 1) {
93
+                        return '<i class="fa fa-check-circle text-success"> '.Yii::t('app', 'Active').'</i>';
94 94
                     } else {
95
-                        return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'Blocked') . '</i>';
95
+                        return '<i class="fa fa-times text-danger"> '.Yii::t('app', 'Blocked').'</i>';
96 96
                     }
97 97
                 },
98 98
                 'format' => 'raw',
@@ -101,19 +101,19 @@  discard block
 block discarded – undo
101 101
                 'label' => Yii::t('users', 'Publicity'),
102 102
                 'value' => function($searchModel) {
103 103
                     if (!isset($searchModel->public) || empty($searchModel->public)) {
104
-                        return '<i class="fa fa-minus-circle text-warning"> ' . Yii::t('app', 'Private');
104
+                        return '<i class="fa fa-minus-circle text-warning"> '.Yii::t('app', 'Private');
105 105
                     }
106
-                    if ($searchModel->public == 1){
107
-                        return '<i class="fa fa-folder-open-o text-primary"> ' . Yii::t('app', 'Public') . '</i>';
106
+                    if ($searchModel->public == 1) {
107
+                        return '<i class="fa fa-folder-open-o text-primary"> '.Yii::t('app', 'Public').'</i>';
108 108
                     } else {
109
-                        return '<i class="fa fa-minus-circle text-warning"> ' . Yii::t('app', 'Private') . '</i>';
109
+                        return '<i class="fa fa-minus-circle text-warning"> '.Yii::t('app', 'Private').'</i>';
110 110
                     }
111 111
                 },
112 112
                 'format' => 'raw',
113 113
             ],
114 114
             'email' => [
115 115
                 'label' =>  Yii::t('users', 'Email'),
116
-                'value' => function ($model) {
116
+                'value' => function($model) {
117 117
                     return '<a href="mailto:'.$model->email.'">'.$model->email.'</a>';
118 118
                 },
119 119
                 'format' => 'raw',
@@ -124,12 +124,12 @@  discard block
 block discarded – undo
124 124
                     /* @var $searchModel RbacIdentityInterface */
125 125
                     $roles = $searchModel->getRoles();
126 126
 
127
-                    if (empty($roles)) {return Yii::t('users', 'No roles');}
127
+                    if (empty($roles)) {return Yii::t('users', 'No roles'); }
128 128
 
129
-                    return implode('<br>', array_map(function ($data) {
129
+                    return implode('<br>', array_map(function($data) {
130 130
 
131 131
                         return Html::a($data, Url::to([
132
-                            '/'.$this->params['shortLanguage'].'/rbac/roles/view',
132
+                            '/'.$this->params[ 'shortLanguage' ].'/rbac/roles/view',
133 133
                             'id' => $data
134 134
                         ]),
135 135
                             [
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
             'position' => [
144 144
                 'attribute' => 'position',
145 145
                 'label' =>  Yii::t('users', 'Position'),
146
-                'value' => function ($searchModel) {
146
+                'value' => function($searchModel) {
147 147
                     /* @var $searchModel \app\models\UserSearch */
148
-                    return empty($searchModel->position) ? '' : $searchModel->position->{'name_'.$this->params['shortLanguage']};
148
+                    return empty($searchModel->position) ? '' : $searchModel->position->{'name_'.$this->params[ 'shortLanguage' ]};
149 149
                 }
150 150
             ],
151 151
             'sort' => [
@@ -154,8 +154,8 @@  discard block
 block discarded – undo
154 154
                     return
155 155
                         Html::tag('div',
156 156
                             $searchModel->order > $searchModel->minOrder ?
157
-                                Html::a(Html::tag('i', '', ['class' => 'fa fa-sort-asc fa-lg', 'aria-hidden' => true]),
158
-                                    Url::to(['/'.$this->params['shortLanguage'].'/admin/users', 'id' => $searchModel->id, 'order' => $searchModel->order - 1])
157
+                                Html::a(Html::tag('i', '', [ 'class' => 'fa fa-sort-asc fa-lg', 'aria-hidden' => true ]),
158
+                                    Url::to([ '/'.$this->params[ 'shortLanguage' ].'/admin/users', 'id' => $searchModel->id, 'order' => $searchModel->order - 1 ])
159 159
                                 ) : ''
160 160
                             ,
161 161
                             [
@@ -165,8 +165,8 @@  discard block
 block discarded – undo
165 165
                         .
166 166
                         Html::tag('div',
167 167
                             $searchModel->order < $searchModel->maxOrder ?
168
-                                Html::a(Html::tag('i', '', ['class' => 'fa fa-sort-desc fa-lg', 'aria-hidden' => true]),
169
-                                    Url::to(['/'.$this->params['shortLanguage'].'/admin/users', 'id' => $searchModel->id, 'order' => $searchModel->order + 1])
168
+                                Html::a(Html::tag('i', '', [ 'class' => 'fa fa-sort-desc fa-lg', 'aria-hidden' => true ]),
169
+                                    Url::to([ '/'.$this->params[ 'shortLanguage' ].'/admin/users', 'id' => $searchModel->id, 'order' => $searchModel->order + 1 ])
170 170
                                 ) : ''
171 171
                             ,
172 172
                             [
@@ -184,20 +184,20 @@  discard block
 block discarded – undo
184 184
             'created_at' => [
185 185
                 'attribute' => 'created_at',
186 186
                 'label' => Yii::t('app', 'Created date'),
187
-                'format' =>  ['date', 'dd.MM.YY HH:mm:ss'],
187
+                'format' =>  [ 'date', 'dd.MM.YY HH:mm:ss' ],
188 188
             ],
189 189
             'updated_at' => [
190 190
                 'attribute' => 'updated_at',
191 191
                 'label' => Yii::t('app', 'Updated date'),
192
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
192
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
193 193
             ],
194 194
             'ActionColumn' => [
195 195
                 'class' => 'yii\grid\ActionColumn',
196 196
                 'header' => Yii::t('app', 'Actions'),
197 197
                 'template' => '{view} {update} {delete}',
198
-                'urlCreator'=>function($action, $model, $key, $index){
198
+                'urlCreator'=>function($action, $model, $key, $index) {
199 199
                     return Url::to([
200
-                        $this->params['urlPrefix'].$action,
200
+                        $this->params[ 'urlPrefix' ].$action,
201 201
                         'id' => $model->id
202 202
                     ]);
203 203
                 }
Please login to merge, or discard this patch.
views/admin/users/view.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -10,27 +10,27 @@  discard block
 block discarded – undo
10 10
 /* @var $this View */
11 11
 /* @var $model User|RbacIdentityInterface */
12 12
 
13
-$this->title = Yii::t('users', 'User') . ': ' . $model->first_name;
14
-$this->params['breadcrumbs'][] = [
13
+$this->title = Yii::t('users', 'User').': '.$model->first_name;
14
+$this->params[ 'breadcrumbs' ][ ] = [
15 15
     'label' => Yii::t('users', 'Users'),
16 16
     'url' => [
17
-        $this->params['urlPrefix'].'index'
17
+        $this->params[ 'urlPrefix' ].'index'
18 18
     ]
19 19
 ];
20
-$this->params['breadcrumbs'][] = $this->title;
20
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
21 21
 ?>
22 22
 <div class="users-view">
23 23
 
24 24
     <p>
25 25
         <?php echo Html::a(Yii::t('app', 'Update'), [
26
-            $this->params['urlPrefix'].'update',
26
+            $this->params[ 'urlPrefix' ].'update',
27 27
             'id' => $model->id
28 28
         ], [
29 29
             'class' => 'btn btn-primary'
30 30
         ]) ?>
31 31
 
32 32
         <?php echo Html::a(Yii::t('app', 'Delete'), [
33
-            $this->params['urlPrefix'].'delete',
33
+            $this->params[ 'urlPrefix' ].'delete',
34 34
             'id' => $model->id
35 35
         ], [
36 36
             'class' => 'btn btn-danger',
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         'attributes' => [
47 47
             'avatar' => [
48 48
                 'label' => Yii::t('users', 'Avatar'),
49
-                'value' => function ($model) {
49
+                'value' => function($model) {
50 50
                     /* @var $model User */
51 51
                     $thumbnailModel = $model->getThumbnailModel();
52 52
                     return $thumbnailModel == null ? '' : Html::a(Html::img($model->getAvatar()), Url::to($thumbnailModel->getThumbUrl(MFUModule::THUMB_ALIAS_LARGE)), [
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             ],
78 78
             'email' => [
79 79
                 'label' => Yii::t('users', 'Email'),
80
-                'value' => function ($model) {
80
+                'value' => function($model) {
81 81
                     return '<a href="mailto:'.$model->email.'">'.$model->email.'</a>';
82 82
                 },
83 83
                 'format' => 'raw',
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
             'status' => [
90 90
                 'label' => Yii::t('users', 'Status'),
91 91
                 'value' => isset($model->status) && !empty($model->status) ? function($data) {
92
-                    if ($data->status == 1){
93
-                        return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Active') . '</i>';
92
+                    if ($data->status == 1) {
93
+                        return '<i class="fa fa-check-circle text-success"> '.Yii::t('app', 'Active').'</i>';
94 94
                     } else {
95
-                        return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'Blocked') . '</i>';
95
+                        return '<i class="fa fa-times text-danger"> '.Yii::t('app', 'Blocked').'</i>';
96 96
                     }
97 97
                 } : Yii::t('users', 'No status'),
98 98
                 'format' => 'raw',
@@ -100,12 +100,12 @@  discard block
 block discarded – undo
100 100
             'public' => [
101 101
                 'label' => Yii::t('users', 'Publicity'),
102 102
                 'value' => isset($model->public) && !empty($model->public) ? function($data) {
103
-                    if ($data->public == 1){
104
-                        return '<i class="fa fa-folder-open-o text-primary"> ' . Yii::t('app', 'Public') . '</i>';
103
+                    if ($data->public == 1) {
104
+                        return '<i class="fa fa-folder-open-o text-primary"> '.Yii::t('app', 'Public').'</i>';
105 105
                     } else {
106
-                        return '<i class="fa fa-minus-circle text-warning"> ' . Yii::t('app', 'Private') . '</i>';
106
+                        return '<i class="fa fa-minus-circle text-warning"> '.Yii::t('app', 'Private').'</i>';
107 107
                     }
108
-                } : '<i class="fa fa-minus-circle text-warning"> ' . Yii::t('app', 'Private'),
108
+                } : '<i class="fa fa-minus-circle text-warning"> '.Yii::t('app', 'Private'),
109 109
                 'format' => 'raw',
110 110
             ],
111 111
             'roles' => [
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
                     /* @var $model RbacIdentityInterface */
116 116
                     $roles = $model->getRoles();
117 117
 
118
-                    if (empty($roles)) {return Yii::t('users', 'No roles');}
118
+                    if (empty($roles)) {return Yii::t('users', 'No roles'); }
119 119
 
120
-                    return implode('<br>', array_map(function ($data) {
120
+                    return implode('<br>', array_map(function($data) {
121 121
 
122 122
                         return Html::a($data, Url::to([
123
-                            '/'.$this->params['shortLanguage'].'/rbac/roles/view',
123
+                            '/'.$this->params[ 'shortLanguage' ].'/rbac/roles/view',
124 124
                             'id' => $data
125 125
                         ]),
126 126
                             [
@@ -133,26 +133,26 @@  discard block
 block discarded – undo
133 133
             ],
134 134
             'position' => [
135 135
                 'label' => Yii::t('users', 'Position'),
136
-                'value' => function ($model) {
136
+                'value' => function($model) {
137 137
                     /* @var $model \app\models\User */
138
-                    return empty($model->position) ? '' : $model->position->{'name_'.$this->params['shortLanguage']};
138
+                    return empty($model->position) ? '' : $model->position->{'name_'.$this->params[ 'shortLanguage' ]};
139 139
                 }
140 140
             ],
141 141
             'about' => [
142 142
                 'label' => Yii::t('users', 'About'),
143
-                'value' => function ($model) {
143
+                'value' => function($model) {
144 144
                     return $model->about;
145 145
                 },
146 146
                 'format' => 'raw',
147 147
             ],
148 148
             'created_at' => [
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
             'updated_at' => [
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
         ]
Please login to merge, or discard this patch.
views/admin/users/create.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
 /* @var $changeRoles bool */
8 8
 
9 9
 $this->title = Yii::t('users', 'Create user');
10
-$this->params['breadcrumbs'][] = [
10
+$this->params[ 'breadcrumbs' ][ ] = [
11 11
     'label' => Yii::t('users', 'Users'),
12 12
     'url' => [
13
-        $this->params['urlPrefix'].'index'
13
+        $this->params[ 'urlPrefix' ].'index'
14 14
     ]
15 15
 ];
16
-$this->params['breadcrumbs'][] = $this->title;
16
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
17 17
 ?>
18 18
 <div class="users-create">
19 19
 
Please login to merge, or discard this patch.
views/admin/qualities/_form.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
                             'filebrowserWindowHeight' => '700',
42 42
                             'extraPlugins' => 'pbckcode',
43 43
                             'toolbarGroups' => [
44
-                                ['name' => 'pbckcode']
44
+                                [ 'name' => 'pbckcode' ]
45 45
                             ],
46 46
                             'allowedContent' => true,
47
-                            'language' => $this->params['shortLanguage'],
47
+                            'language' => $this->params[ 'shortLanguage' ],
48 48
                         ]
49 49
                     ]
50 50
                 ],
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
             ])->label(Yii::t('app', 'Icon html class')); ?>
60 60
             <div class="row" style="margin-bottom: 15px;">
61 61
                 <div class="col-md-4">
62
-                    <?php if(!$model->mainModel->isNewRecord): ?>
63
-                        <?php echo Html::tag('i', '', ['class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon]) ?>
62
+                    <?php if (!$model->mainModel->isNewRecord): ?>
63
+                        <?php echo Html::tag('i', '', [ 'class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon ]) ?>
64 64
                     <?php endif; ?>
65 65
                     <?php echo Html::a('Fontawesome icons', Url::to('https://fontawesome.ru/all-icons/'), [
66 66
                         'target' => '_blank'
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             </div>
70 70
 
71 71
             <?php echo $form->field($model, 'about')
72
-                ->checkboxList(ArrayHelper::map($aboutList, 'id', function ($item) {
72
+                ->checkboxList(ArrayHelper::map($aboutList, 'id', function($item) {
73 73
                     /* @var $item app\models\About */
74 74
                     return $item->getDefaultTranslate('title');
75 75
                 }), [
Please login to merge, or discard this patch.