Passed
Push — master ( 09d577...6e0adc )
by Andrey
04:55
created
models/HomeSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/AboutSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/SocialSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/TechnologySearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/PositionSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/ContactSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
views/admin/pages/_form.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
                             'filebrowserWindowHeight' => '700',
52 52
                             'extraPlugins' => 'pbckcode',
53 53
                             'toolbarGroups' => [
54
-                                ['name' => 'pbckcode']
54
+                                [ 'name' => 'pbckcode' ]
55 55
                             ],
56 56
                             'allowedContent' => true,
57
-                            'language' => $this->params['shortLanguage'],
57
+                            'language' => $this->params[ 'shortLanguage' ],
58 58
                         ]
59 59
                     ],
60 60
                     [
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
             ])->label(Yii::t('app', 'Icon html class')); ?>
80 80
             <div class="row" style="margin-bottom: 15px;">
81 81
                 <div class="col-md-4">
82
-                    <?php if(!$model->mainModel->isNewRecord): ?>
83
-                        <?php echo Html::tag('i', '', ['class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon]) ?>
82
+                    <?php if (!$model->mainModel->isNewRecord): ?>
83
+                        <?php echo Html::tag('i', '', [ 'class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon ]) ?>
84 84
                     <?php endif; ?>
85 85
                     <?php echo Html::a('Fontawesome icons', Url::to('https://fontawesome.ru/all-icons/'), [
86 86
                         'target' => '_blank'
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             <!-- Thumbnail end -->
101 101
 
102 102
             <?php echo $form->field($model, 'active')
103
-                ->radioList([1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive')])
103
+                ->radioList([ 1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive') ])
104 104
                 ->label(Yii::t('app', 'Active status')); ?>
105 105
 
106 106
             <?php echo Html::label(Yii::t('app', 'Parent object'), 'multi-level-menu', [
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
                 ],
116 116
                 'mainContainerOptions' => [
117 117
                     'levels' => [
118
-                        ['style' => 'margin-left: 0; padding-left: 0;'],
119
-                        ['style' => 'margin-left: 10px; padding-left: 10px;'],
118
+                        [ 'style' => 'margin-left: 0; padding-left: 0;' ],
119
+                        [ 'style' => 'margin-left: 10px; padding-left: 10px;' ],
120 120
                     ]
121 121
                 ],
122 122
                 'itemContainerOptions' => [
Please login to merge, or discard this patch.
views/admin/pages/update.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,21 +5,21 @@
 block discarded – undo
5 5
 /* @var $pages array|\yii\db\ActiveRecord[] */
6 6
 /* @var $albums Itstructure\MFUploader\models\album\Album[] */
7 7
 
8
-$this->title = Yii::t('pages', 'Update page').': ' . $model->mainModel->getDefaultTranslate('title');
9
-$this->params['breadcrumbs'][] = [
8
+$this->title = Yii::t('pages', 'Update page').': '.$model->mainModel->getDefaultTranslate('title');
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'][] = [
15
+$this->params[ 'breadcrumbs' ][ ] = [
16 16
     'label' => $model->mainModel->getDefaultTranslate('title'),
17 17
     'url' => [
18
-        $this->params['urlPrefix'].'view',
18
+        $this->params[ 'urlPrefix' ].'view',
19 19
         'id' => $model->id
20 20
     ]
21 21
 ];
22
-$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
22
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Update');
23 23
 ?>
24 24
 <div class="page-update">
25 25
 
Please login to merge, or discard this patch.
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.