Passed
Push — master ( f0ba0c...172a4a )
by Andrey
05:30 queued 50s
created
views/admin/pages/view.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@  discard block
 block discarded – undo
15 15
 /* @var $albumsDataProvider yii\data\ArrayDataProvider */
16 16
 
17 17
 $this->title = $model->getDefaultTranslate('title');
18
-$this->params['breadcrumbs'][] = [
18
+$this->params[ 'breadcrumbs' ][ ] = [
19 19
     'label' => Yii::t('pages', 'Pages'),
20 20
     'url' => [
21
-        $this->params['urlPrefix'].'index'
21
+        $this->params[ 'urlPrefix' ].'index'
22 22
     ]
23 23
 ];
24
-$this->params['breadcrumbs'][] = $this->title;
24
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
25 25
 ?>
26 26
 
27 27
 <style>
@@ -35,14 +35,14 @@  discard block
 block discarded – undo
35 35
 
36 36
     <p>
37 37
         <?php echo Html::a(Yii::t('app', 'Update'), [
38
-            $this->params['urlPrefix'].'update',
38
+            $this->params[ 'urlPrefix' ].'update',
39 39
             'id' => $model->id
40 40
         ], [
41 41
             'class' => 'btn btn-primary'
42 42
         ]) ?>
43 43
 
44 44
         <?php echo Html::a(Yii::t('app', 'Delete'), [
45
-            $this->params['urlPrefix'].'delete',
45
+            $this->params[ 'urlPrefix' ].'delete',
46 46
             'id' => $model->id
47 47
         ], [
48 48
             'class' => 'btn btn-danger',
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
                 'label' => Yii::t('app', 'Icon'),
90 90
                 'value' => function($model) {
91 91
                     /* @var $model Page */
92
-                    return Html::tag('i', '', ['class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon]);
92
+                    return Html::tag('i', '', [ 'class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon ]);
93 93
                 },
94 94
                 'format' => 'raw',
95 95
             ],
96 96
             'thumbnail' => [
97 97
                 'label' => MFUModule::t('main', 'Thumbnail'),
98
-                'value' => function ($model) {
98
+                'value' => function($model) {
99 99
                     /* @var $model Page */
100 100
                     $thumbnailModel = $model->getThumbnailModel();
101 101
                     return $thumbnailModel == null ? '' : Html::a($model->getDefaultThumbImage(), Url::to($thumbnailModel->getThumbUrl(MFUModule::THUMB_ALIAS_LARGE)), [
@@ -108,22 +108,22 @@  discard block
 block discarded – undo
108 108
                 'label' => Yii::t('app', 'Active status'),
109 109
                 'value' => function($model) {
110 110
                     /* @var $model Page */
111
-                    if ($model->active == 1){
112
-                        return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Active') . '</i>';
111
+                    if ($model->active == 1) {
112
+                        return '<i class="fa fa-check-circle text-success"> '.Yii::t('app', 'Active').'</i>';
113 113
                     } else {
114
-                        return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'Inactive') . '</i>';
114
+                        return '<i class="fa fa-times text-danger"> '.Yii::t('app', 'Inactive').'</i>';
115 115
                     }
116 116
                 },
117 117
                 'format' => 'raw',
118 118
             ],
119 119
             [
120 120
                 'attribute' => 'created_at',
121
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
121
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
122 122
                 'label' => Yii::t('app', 'Created date'),
123 123
             ],
124 124
             [
125 125
                 'attribute' => 'updated_at',
126
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
126
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
127 127
                 'label' => Yii::t('app', 'Updated date'),
128 128
             ],
129 129
         ],
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                     return Html::a(
143 143
                         $item->getDefaultThumbImage(),
144 144
                         Url::to([
145
-                            '/'.$this->params['shortLanguage'].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
145
+                            '/'.$this->params[ 'shortLanguage' ].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
146 146
                         ])
147 147
                     );
148 148
                 },
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                     return Html::a(
156 156
                         Html::encode($item->title),
157 157
                         Url::to([
158
-                            '/'.$this->params['shortLanguage'].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
158
+                            '/'.$this->params[ 'shortLanguage' ].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
159 159
                         ])
160 160
                     );
161 161
                 },
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     ]); ?>
166 166
 
167 167
     <?php echo Html::a(Yii::t('pages', 'View products'), [
168
-        '/'.$this->params['shortLanguage'].'/admin/products/index', 'ProductSearch[pageId]' => $model->id
168
+        '/'.$this->params[ 'shortLanguage' ].'/admin/products/index', 'ProductSearch[pageId]' => $model->id
169 169
     ], [
170 170
         'class' => 'btn btn-primary'
171 171
     ]) ?>
Please login to merge, or discard this patch.
views/admin/pages/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('pages', 'Create page');
9
-$this->params['breadcrumbs'][] = [
9
+$this->params[ 'breadcrumbs' ][ ] = [
10 10
     'label' => Yii::t('pages', 'Pages'),
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="page-create">
18 18
 
Please login to merge, or discard this patch.
views/admin/products/_form.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
                             'filebrowserWindowHeight' => '700',
58 58
                             'extraPlugins' => 'pbckcode',
59 59
                             'toolbarGroups' => [
60
-                                ['name' => 'pbckcode']
60
+                                [ 'name' => 'pbckcode' ]
61 61
                             ],
62 62
                             'allowedContent' => true,
63
-                            'language' => $this->params['shortLanguage'],
63
+                            'language' => $this->params[ 'shortLanguage' ],
64 64
                         ]
65 65
                     ],
66 66
                     [
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
             ])->label(Yii::t('app', 'Icon html class')); ?>
86 86
             <div class="row" style="margin-bottom: 15px;">
87 87
                 <div class="col-md-12">
88
-                    <?php if(!$model->mainModel->isNewRecord): ?>
89
-                        <?php echo Html::tag('i', '', ['class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon]) ?>
88
+                    <?php if (!$model->mainModel->isNewRecord): ?>
89
+                        <?php echo Html::tag('i', '', [ 'class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon ]) ?>
90 90
                     <?php endif; ?>
91 91
                     <?php echo Html::a('Fontawesome icons', Url::to('https://fontawesome.ru/all-icons/'), [
92 92
                         'target' => '_blank'
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                     <?php
95 95
                     Modal::begin([
96 96
                         'header' => '<h2>Fe icons</h2>',
97
-                        'toggleButton' => ['label' => 'Fe icons']
97
+                        'toggleButton' => [ 'label' => 'Fe icons' ]
98 98
                     ]);
99 99
                     require __DIR__.'/../icons/fe-icons.php';
100 100
                     Modal::end();
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             <!-- Thumbnail end -->
115 115
 
116 116
             <?php echo $form->field($model, 'active')
117
-                ->radioList([1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive')])
117
+                ->radioList([ 1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive') ])
118 118
                 ->label(Yii::t('app', 'Active status')); ?>
119 119
 
120 120
             <div class="form-group <?php if ($model->hasErrors('pageId')):?>has-error<?php endif; ?>">
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
                     ],
131 131
                     'mainContainerOptions' => [
132 132
                         'levels' => [
133
-                            ['style' => 'margin-left: 0; padding-left: 0;'],
134
-                            ['style' => 'margin-left: 10px; padding-left: 10px;'],
133
+                            [ 'style' => 'margin-left: 0; padding-left: 0;' ],
134
+                            [ 'style' => 'margin-left: 10px; padding-left: 10px;' ],
135 135
                         ]
136 136
                     ],
137 137
                     'itemContainerOptions' => [
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             <div class="row">
163 163
                 <div class="col-md-12">
164 164
                     <h5><?php echo MFUModule::t('main', 'New files'); ?></h5>
165
-                    <?php for ($i=1; $i < 5; $i++): ?>
165
+                    <?php for ($i = 1; $i < 5; $i++): ?>
166 166
                         <?php echo $this->render('../mediafiles/_new-mediafiles', [
167 167
                             'model' => $model,
168 168
                             'fileType' => UploadModelInterface::FILE_TYPE_IMAGE,
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
@@ -9,21 +9,21 @@
 block discarded – undo
9 9
 /* @var $images Mediafile[] */
10 10
 /* @var $media_pages Pagination */
11 11
 
12
-$this->title = Yii::t('products', 'Update product').': ' . $model->mainModel->getDefaultTranslate('title');
13
-$this->params['breadcrumbs'][] = [
12
+$this->title = Yii::t('products', 'Update product').': '.$model->mainModel->getDefaultTranslate('title');
13
+$this->params[ 'breadcrumbs' ][ ] = [
14 14
     'label' => Yii::t('products', 'Products'),
15 15
     'url' => [
16
-        $this->params['urlPrefix'].'index'
16
+        $this->params[ 'urlPrefix' ].'index'
17 17
     ]
18 18
 ];
19
-$this->params['breadcrumbs'][] = [
19
+$this->params[ 'breadcrumbs' ][ ] = [
20 20
     'label' => $model->mainModel->getDefaultTranslate('title'),
21 21
     'url' => [
22
-        $this->params['urlPrefix'].'view',
22
+        $this->params[ 'urlPrefix' ].'view',
23 23
         'id' => $model->id
24 24
     ]
25 25
 ];
26
-$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
26
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Update');
27 27
 ?>
28 28
 <div class="product-update">
29 29
 
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,
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
                 'value' => function($searchModel) {
39 39
                     /* @var $searchModel ProductSearch */
40 40
                     return Html::a(
41
-                        Html::tag('i', '', ['class' => empty($searchModel->icon) ? 'fa fa-file fa-2x' : $searchModel->icon]),
42
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
41
+                        Html::tag('i', '', [ 'class' => empty($searchModel->icon) ? 'fa fa-file fa-2x' : $searchModel->icon ]),
42
+                        Url::to([ $this->params[ 'urlPrefix' ].'view', 'id' => $searchModel->id ])
43 43
                     );
44 44
                 },
45 45
                 'format' => 'raw',
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                     /* @var $data ProductSearch */
51 51
                     $defaultThumbImage = $data->getDefaultThumbImage();
52 52
                     return !empty($defaultThumbImage) ? Html::a($defaultThumbImage, Url::to([
53
-                        $this->params['urlPrefix'].'view',
53
+                        $this->params[ 'urlPrefix' ].'view',
54 54
                         'id' => $data->id
55 55
                     ])) : '';
56 56
                 },
@@ -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',
@@ -77,11 +77,11 @@  discard block
 block discarded – undo
77 77
             ],
78 78
             'page' => [
79 79
                 'label' => Yii::t('products', 'Parent page'),
80
-                'value' => function ($searchModel) {
80
+                'value' => function($searchModel) {
81 81
                     /* @var $searchModel app\models\ProductSearch */
82 82
                     return null === $searchModel->page ? '' : Html::a(
83 83
                         $searchModel->page->getDefaultTranslate('title'),
84
-                        Url::to(['/'.$this->params['shortLanguage'].'/admin/pages/view', 'id' => $searchModel->page->id]),
84
+                        Url::to([ '/'.$this->params[ 'shortLanguage' ].'/admin/pages/view', 'id' => $searchModel->page->id ]),
85 85
                         [
86 86
                             'target' => '_blank'
87 87
                         ]
@@ -91,22 +91,22 @@  discard block
 block discarded – undo
91 91
             ],
92 92
             [
93 93
                 'attribute' => 'created_at',
94
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
94
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
95 95
                 'label' => Yii::t('app', 'Created date'),
96 96
             ],
97 97
             [
98 98
                 'attribute' => 'updated_at',
99
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
99
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
100 100
                 'label' => Yii::t('app', 'Updated date'),
101 101
             ],
102 102
             'active' => [
103 103
                 'label' => Yii::t('app', 'Active status'),
104 104
                 'value' => function($searchModel) {
105 105
                     /* @var $searchModel app\models\Product */
106
-                    if ($searchModel->active == 1){
107
-                        return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Active') . '</i>';
106
+                    if ($searchModel->active == 1) {
107
+                        return '<i class="fa fa-check-circle text-success"> '.Yii::t('app', 'Active').'</i>';
108 108
                     } else {
109
-                        return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'Inactive') . '</i>';
109
+                        return '<i class="fa fa-times text-danger"> '.Yii::t('app', 'Inactive').'</i>';
110 110
                     }
111 111
                 },
112 112
                 'format' => 'raw',
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
                 'class' => 'yii\grid\ActionColumn',
116 116
                 'header' => Yii::t('app', 'Actions'),
117 117
                 'template' => '{view} {update} {delete}',
118
-                'urlCreator'=>function($action, $model, $key, $index){
118
+                'urlCreator'=>function($action, $model, $key, $index) {
119 119
                     return Url::to([
120
-                        $this->params['urlPrefix'].$action,
120
+                        $this->params[ 'urlPrefix' ].$action,
121 121
                         'id' => $model->id
122 122
                     ]);
123 123
                 }
Please login to merge, or discard this patch.
views/admin/products/view.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@  discard block
 block discarded – undo
14 14
 /* @var $model Product */
15 15
 
16 16
 $this->title = $model->getDefaultTranslate('title');
17
-$this->params['breadcrumbs'][] = [
17
+$this->params[ 'breadcrumbs' ][ ] = [
18 18
     'label' => Yii::t('products', 'Products'),
19 19
     'url' => [
20
-        $this->params['urlPrefix'].'index'
20
+        $this->params[ 'urlPrefix' ].'index'
21 21
     ]
22 22
 ];
23
-$this->params['breadcrumbs'][] = $this->title;
23
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
24 24
 ?>
25 25
 
26 26
 <style>
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
 
35 35
     <p>
36 36
         <?php echo Html::a(Yii::t('app', 'Update'), [
37
-            $this->params['urlPrefix'].'update',
37
+            $this->params[ 'urlPrefix' ].'update',
38 38
             'id' => $model->id
39 39
         ], [
40 40
             'class' => 'btn btn-primary'
41 41
         ]) ?>
42 42
 
43 43
         <?php echo Html::a(Yii::t('app', 'Delete'), [
44
-            $this->params['urlPrefix'].'delete',
44
+            $this->params[ 'urlPrefix' ].'delete',
45 45
             'id' => $model->id
46 46
         ], [
47 47
             'class' => 'btn btn-danger',
@@ -88,13 +88,13 @@  discard block
 block discarded – undo
88 88
                 'label' => Yii::t('app', 'Icon'),
89 89
                 'value' => function($model) {
90 90
                     /* @var $model Product */
91
-                    return Html::tag('i', '', ['class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon]);
91
+                    return Html::tag('i', '', [ 'class' => empty($model->icon) ? 'fa fa-file fa-2x' : $model->icon ]);
92 92
                 },
93 93
                 'format' => 'raw',
94 94
             ],
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,21 +107,21 @@  discard block
 block discarded – undo
107 107
                 'label' => Yii::t('app', 'Active status'),
108 108
                 'value' => function($model) {
109 109
                     /* @var $model Product */
110
-                    if ($model->active == 1){
111
-                        return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Active') . '</i>';
110
+                    if ($model->active == 1) {
111
+                        return '<i class="fa fa-check-circle text-success"> '.Yii::t('app', 'Active').'</i>';
112 112
                     } else {
113
-                        return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'Inactive') . '</i>';
113
+                        return '<i class="fa fa-times text-danger"> '.Yii::t('app', 'Inactive').'</i>';
114 114
                     }
115 115
                 },
116 116
                 'format' => 'raw',
117 117
             ],
118 118
             [
119 119
                 'label' => Yii::t('products', 'Parent page'),
120
-                'value' => function ($model) {
120
+                'value' => function($model) {
121 121
                     /* @var $model Product */
122 122
                     return null === $model->page ? '' : Html::a(
123 123
                         $model->page->getDefaultTranslate('title'),
124
-                        Url::to(['/'.$this->params['shortLanguage'].'/admin/pages/view', 'id' => $model->page->id]),
124
+                        Url::to([ '/'.$this->params[ 'shortLanguage' ].'/admin/pages/view', 'id' => $model->page->id ]),
125 125
                         [
126 126
                             'target' => '_blank'
127 127
                         ]
@@ -131,12 +131,12 @@  discard block
 block discarded – undo
131 131
             ],
132 132
             [
133 133
                 'attribute' => 'created_at',
134
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
134
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
135 135
                 'label' => Yii::t('app', 'Created date'),
136 136
             ],
137 137
             [
138 138
                 'attribute' => 'updated_at',
139
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
139
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
140 140
                 'label' => Yii::t('app', 'Updated date'),
141 141
             ],
142 142
         ],
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                     return Html::a(
156 156
                         $item->getDefaultThumbImage(),
157 157
                         Url::to([
158
-                            '/'.$this->params['shortLanguage'].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
158
+                            '/'.$this->params[ 'shortLanguage' ].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
159 159
                         ])
160 160
                     );
161 161
                 },
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
                     return Html::a(
169 169
                         Html::encode($item->title),
170 170
                         Url::to([
171
-                            '/'.$this->params['shortLanguage'].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
171
+                            '/'.$this->params[ 'shortLanguage' ].'/mfuploader/'.$item->getFileType($item->type).'-album/view', 'id' => $item->id
172 172
                         ])
173 173
                     );
174 174
                 },
Please login to merge, or discard this patch.
views/admin/products/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('products', 'Create product');
9
-$this->params['breadcrumbs'][] = [
9
+$this->params[ 'breadcrumbs' ][ ] = [
10 10
     'label' => Yii::t('products', 'Products'),
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="product-create">
18 18
 
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
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
 </style>
29 29
 
30 30
 <div class="row">
31
-    <?php $i=0; ?>
31
+    <?php $i = 0; ?>
32 32
     <?php foreach ($mediafiles as $mediafile): ?>
33 33
         <div class="col-md-6 file-item">
34
-            <?php $i+=1; ?>
34
+            <?php $i += 1; ?>
35 35
             <div class="media">
36 36
                 <div class="media-left" id="mediafile-container-<?php echo $i; ?>">
37 37
                     <?php echo $mediafile->getPreview($baseUrl, 'existing', $mediafile->isImage() ? [
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                                 'target' => '_blank'
43 43
                             ]
44 44
                         ]
45
-                    ] : []); ?>
45
+                    ] : [ ]); ?>
46 46
                 </div>
47 47
                 <div class="media-body">
48 48
                     <h4 id="title-container-<?php echo $i; ?>" class="media-heading">
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                     'buttonName' => Module::t('main', 'Set '.$fileType),
61 61
                     'resetButtonName' => Module::t('main', 'Clear'),
62 62
                     'options' => [
63
-                        'id' => Html::getInputId($model, $fileType) . '-' . $i,
63
+                        'id' => Html::getInputId($model, $fileType).'-'.$i,
64 64
                         'value' => $mediafile->{FileSetter::INSERTED_DATA_ID},
65 65
                     ],
66 66
                     'deleteBoxDisplay' => true,
@@ -68,16 +68,16 @@  discard block
 block discarded – undo
68 68
                     'deleteBoxOptions' => [
69 69
                         'value' => $mediafile->id
70 70
                     ],
71
-                    'mediafileContainer' => '#mediafile-container-' . $i,
72
-                    'titleContainer' => '#title-container-' . $i,
73
-                    'descriptionContainer' => '#description-container-' . $i,
71
+                    'mediafileContainer' => '#mediafile-container-'.$i,
72
+                    'titleContainer' => '#title-container-'.$i,
73
+                    'descriptionContainer' => '#description-container-'.$i,
74 74
                     'subDir' => $model->mainModel->tableName()
75 75
                 ], isset($ownerParams) && is_array($ownerParams) ? ArrayHelper::merge([
76 76
                     'ownerAttribute' => $fileType
77
-                ], $ownerParams) : [])
77
+                ], $ownerParams) : [ ])
78 78
             ); ?>
79 79
         </div>
80 80
     <?php endforeach; ?>
81 81
 </div>
82 82
 
83
-<?php echo LinkPager::widget(['pagination' => $pages]) ?>
83
+<?php echo LinkPager::widget([ 'pagination' => $pages ]) ?>
Please login to merge, or discard this patch.
views/admin/mediafiles/_thumbnail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,5 +28,5 @@
 block discarded – undo
28 28
         'subDir' => $model->mainModel->tableName()
29 29
     ], isset($ownerParams) && is_array($ownerParams) ? ArrayHelper::merge([
30 30
         'ownerAttribute' => UploadModelInterface::FILE_TYPE_THUMB
31
-    ], $ownerParams) : [])
31
+    ], $ownerParams) : [ ])
32 32
 ); ?>
Please login to merge, or discard this patch.