Test Setup Failed
Branch master (193986)
by Andrey
07:40
created
views/admin/users/view.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -11,26 +11,26 @@  discard block
 block discarded – undo
11 11
 /* @var $model User|RbacIdentityInterface */
12 12
 
13 13
 $this->title = Yii::t('users', 'User') . ': ' . $model->first_name;
14
-$this->params['breadcrumbs'][] = [
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,8 +77,8 @@  discard block
 block discarded – undo
77 77
             ],
78 78
             'email' => [
79 79
                 'label' => Yii::t('users', 'Email'),
80
-                'value' => function ($model) {
81
-                    return '<a href="mailto:'.$model->email.'">'.$model->email.'</a>';
80
+                'value' => function($model) {
81
+                    return '<a href="mailto:' . $model->email . '">' . $model->email . '</a>';
82 82
                 },
83 83
                 'format' => 'raw',
84 84
             ],
@@ -89,7 +89,7 @@  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){
92
+                    if ($data->status == 1) {
93 93
                         return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Active') . '</i>';
94 94
                     } else {
95 95
                         return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'Blocked') . '</i>';
@@ -100,7 +100,7 @@  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){
103
+                    if ($data->public == 1) {
104 104
                         return '<i class="fa fa-folder-open-o text-primary"> ' . Yii::t('app', 'Public') . '</i>';
105 105
                     } else {
106 106
                         return '<i class="fa fa-minus-circle text-warning"> ' . Yii::t('app', 'Private') . '</i>';
@@ -115,9 +115,9 @@  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 123
                             '/rbac/roles/view',
@@ -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 138
                     return empty($model->position) ? '' : $model->position->name;
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/_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/update.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,20 +7,20 @@
 block discarded – undo
7 7
 /* @var $changeRoles bool */
8 8
 
9 9
 $this->title = Yii::t('users', 'Update user') . ': ' . $model->first_name;
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'][] = [
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/_form.php 1 patch
Spacing   +6 added lines, -6 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
@@ -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,7 +86,7 @@  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) {
89
+                            'data' => ArrayHelper::map($positions, 'id', function($item) {
90 90
                                 return $item->name;
91 91
                             }),
92 92
                             'label' => Yii::t('users', 'Position')
@@ -161,7 +161,7 @@  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 167
                             'language' => Yii::$app->language,
@@ -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/index.php 1 patch
Spacing   +22 added lines, -22 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
                     );
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                     if (!isset($searchModel->status) || empty($searchModel->status)) {
90 90
                         return '<i class="fa fa-minus-circle text-warning"> ' . Yii::t('users', 'No status');
91 91
                     }
92
-                    if ($searchModel->status == 1){
92
+                    if ($searchModel->status == 1) {
93 93
                         return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Active') . '</i>';
94 94
                     } else {
95 95
                         return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'Blocked') . '</i>';
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                     if (!isset($searchModel->public) || empty($searchModel->public)) {
104 104
                         return '<i class="fa fa-minus-circle text-warning"> ' . Yii::t('app', 'Private');
105 105
                     }
106
-                    if ($searchModel->public == 1){
106
+                    if ($searchModel->public == 1) {
107 107
                         return '<i class="fa fa-folder-open-o text-primary"> ' . Yii::t('app', 'Public') . '</i>';
108 108
                     } else {
109 109
                         return '<i class="fa fa-minus-circle text-warning"> ' . Yii::t('app', 'Private') . '</i>';
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
             ],
114 114
             'email' => [
115 115
                 'label' =>  Yii::t('users', 'Email'),
116
-                'value' => function ($model) {
117
-                    return '<a href="mailto:'.$model->email.'">'.$model->email.'</a>';
116
+                'value' => function($model) {
117
+                    return '<a href="mailto:' . $model->email . '">' . $model->email . '</a>';
118 118
                 },
119 119
                 'format' => 'raw',
120 120
             ],
@@ -124,9 +124,9 @@  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 132
                             '/rbac/roles/view',
@@ -143,7 +143,7 @@  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 148
                     return empty($searchModel->position) ? '' : $searchModel->position->name;
149 149
                 }
@@ -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(['/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([ '/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(['/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([ '/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/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/home/view.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 /* @var $model app\models\Home */
8 8
 
9 9
 $this->title = $model->title;
10
-$this->params['breadcrumbs'][] = [
10
+$this->params[ 'breadcrumbs' ][ ] = [
11 11
     'label' => Yii::t('home', 'Home page'),
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,14 +27,14 @@  discard block
 block discarded – undo
27 27
 
28 28
     <p>
29 29
         <?php echo Html::a(Yii::t('app', 'Update'), [
30
-            $this->params['urlPrefix'].'update',
30
+            $this->params[ 'urlPrefix' ] . 'update',
31 31
             'id' => $model->id
32 32
         ], [
33 33
             'class' => 'btn btn-primary'
34 34
         ]) ?>
35 35
 
36 36
         <?php echo Html::a(Yii::t('app', 'Delete'), [
37
-            $this->params['urlPrefix'].'delete',
37
+            $this->params[ 'urlPrefix' ] . 'delete',
38 38
             'id' => $model->id
39 39
         ], [
40 40
             'class' => 'btn btn-danger',
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                 'label' => Yii::t('app', 'Default status'),
74 74
                 'value' => function($model) {
75 75
                     /* @var $model app\models\Home */
76
-                    if ($model->default == 1){
76
+                    if ($model->default == 1) {
77 77
                         return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Default') . '</i>';
78 78
                     } else {
79 79
                         return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'No') . '</i>';
@@ -83,12 +83,12 @@  discard block
 block discarded – undo
83 83
             ],
84 84
             [
85 85
                 'attribute' => 'created_at',
86
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
86
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
87 87
                 'label' => Yii::t('app', 'Created date'),
88 88
             ],
89 89
             [
90 90
                 'attribute' => 'updated_at',
91
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
91
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
92 92
                 'label' => Yii::t('app', 'Updated date'),
93 93
             ],
94 94
         ],
Please login to merge, or discard this patch.
views/admin/home/update.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,21 +3,21 @@
 block discarded – undo
3 3
 /* @var $this Itstructure\AdminModule\components\AdminView */
4 4
 /* @var $model app\models\Home */
5 5
 
6
-$this->title = Yii::t('home', 'Update home page').': ' . $model->title;
7
-$this->params['breadcrumbs'][] = [
6
+$this->title = Yii::t('home', 'Update home page') . ': ' . $model->title;
7
+$this->params[ 'breadcrumbs' ][ ] = [
8 8
     'label' => Yii::t('home', 'Home page'),
9 9
     'url' => [
10
-        $this->params['urlPrefix'].'index'
10
+        $this->params[ 'urlPrefix' ] . 'index'
11 11
     ]
12 12
 ];
13
-$this->params['breadcrumbs'][] = [
13
+$this->params[ 'breadcrumbs' ][ ] = [
14 14
     'label' => $model->title,
15 15
     'url' => [
16
-        $this->params['urlPrefix'].'view',
16
+        $this->params[ 'urlPrefix' ] . 'view',
17 17
         'id' => $model->id
18 18
     ]
19 19
 ];
20
-$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
20
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Update');
21 21
 ?>
22 22
 <div class="home-update">
23 23
 
Please login to merge, or discard this patch.
views/admin/home/_form.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                             'filebrowserWindowHeight' => '700',
45 45
                             'extraPlugins' => 'pbckcode',
46 46
                             'toolbarGroups' => [
47
-                                ['name' => 'pbckcode']
47
+                                [ 'name' => 'pbckcode' ]
48 48
                             ],
49 49
                             'allowedContent' => true,
50 50
                             'language' => Yii::$app->language,
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 'form'          => $form,
66 66
             ]) ?>
67 67
 
68
-            <?php echo $form->field($model, 'default')->checkbox(['value' => 1, 'label' => Yii::t('app', 'Set as default')]) ?>
68
+            <?php echo $form->field($model, 'default')->checkbox([ 'value' => 1, 'label' => Yii::t('app', 'Set as default') ]) ?>
69 69
 
70 70
         </div>
71 71
     </div>
Please login to merge, or discard this patch.