Passed
Push — master ( a8ef92...644c03 )
by Andrey
04:11
created
views/admin/products/MultiLevelMenu/form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
     'name' => Html::getInputName($model, 'pageId'),
10 10
     'label' => Html::encode($data->getDefaultTranslate('title')),
11 11
     'uncheck' => false,
12
-]);  ?>
12
+]); ?>
Please login to merge, or discard this patch.
views/admin/settings/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 /* @var $roles yii\rbac\Role[] */
10 10
 
11 11
 $this->title = Yii::t('settings', 'Settings');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="settings-index">
15 15
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     <div class="form-group">
43 43
         <?php echo Html::submitButton(Yii::t('app', 'Update'),
44
-            ['class' => 'btn btn-success']) ?>
44
+            [ 'class' => 'btn btn-success' ]) ?>
45 45
     </div>
46 46
 
47 47
     <?php ActiveForm::end(); ?>
Please login to merge, or discard this patch.
views/admin/about/_form.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
                             'filebrowserWindowWidth' => '1000',
38 38
                             'filebrowserWindowHeight' => '300',
39 39
                             'allowedContent' => true,
40
-                            'language' => $this->params['shortLanguage'],
40
+                            'language' => $this->params[ 'shortLanguage' ],
41 41
                         ]
42 42
                     ],
43 43
                     [
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                             'filebrowserWindowWidth' => '1000',
54 54
                             'filebrowserWindowHeight' => '700',
55 55
                             'allowedContent' => true,
56
-                            'language' => $this->params['shortLanguage'],
56
+                            'language' => $this->params[ 'shortLanguage' ],
57 57
                         ]
58 58
                     ],
59 59
                     [
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 'languageModel' => new Language()
73 73
             ]) ?>
74 74
 
75
-            <?php echo $form->field($model, 'default')->checkbox(['value' => 1, 'label' => Yii::t('app', 'Set as default')]) ?>
75
+            <?php echo $form->field($model, 'default')->checkbox([ 'value' => 1, 'label' => Yii::t('app', 'Set as default') ]) ?>
76 76
 
77 77
         </div>
78 78
     </div>
Please login to merge, or discard this patch.
views/admin/about/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 Itstructure\AdminModule\models\MultilanguageValidateModel */
5 5
 
6
-$this->title = Yii::t('about', 'Update about').': ' . $model->mainModel->getDefaultTranslate('title');
7
-$this->params['breadcrumbs'][] = [
6
+$this->title = Yii::t('about', 'Update about').': '.$model->mainModel->getDefaultTranslate('title');
7
+$this->params[ 'breadcrumbs' ][ ] = [
8 8
     'label' => Yii::t('about', 'About'),
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->mainModel->getDefaultTranslate('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="about-update">
23 23
 
Please login to merge, or discard this patch.
views/admin/about/index.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 /* @var $this Itstructure\AdminModule\components\AdminView */
10 10
 
11 11
 $this->title = Yii::t('about', 'About');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="about-index">
15 15
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     <p>
19 19
         <?php echo Html::a(Yii::t('about', 'Create about'), [
20
-            $this->params['urlPrefix'].'create'
20
+            $this->params[ 'urlPrefix' ].'create'
21 21
         ], [
22 22
             'class' => 'btn btn-success'
23 23
         ]) ?>
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                     /* @var $searchModel AboutSearch */
36 36
                     return Html::a(
37 37
                         Html::encode($searchModel->getDefaultTranslate('title')),
38
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
38
+                        Url::to([ $this->params[ 'urlPrefix' ].'view', 'id' => $searchModel->id ])
39 39
                     );
40 40
                 },
41 41
                 'format' => 'raw',
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
             ],
51 51
             [
52 52
                 'attribute' => 'created_at',
53
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
53
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
54 54
                 'label' => Yii::t('app', 'Created date'),
55 55
             ],
56 56
             [
57 57
                 'attribute' => 'updated_at',
58
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
58
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
59 59
                 'label' => Yii::t('app', 'Updated date'),
60 60
             ],
61 61
             'default' => [
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                     }
70 70
 
71 71
                     return Html::a(Yii::t('app', 'Set as default'), Url::to([
72
-                        $this->params['urlPrefix'].'set-default',
72
+                        $this->params[ 'urlPrefix' ].'set-default',
73 73
                         'aboutId' => $searchModel->id,
74 74
                     ]), [
75 75
                         'title' => Yii::t('app', 'Set as default'),
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
                 'class' => 'yii\grid\ActionColumn',
82 82
                 'header' => Yii::t('app', 'Actions'),
83 83
                 'template' => '{view} {update} {delete}',
84
-                'urlCreator'=>function($action, $model, $key, $index){
84
+                'urlCreator'=>function($action, $model, $key, $index) {
85 85
                     return Url::to([
86
-                        $this->params['urlPrefix'].$action,
86
+                        $this->params[ 'urlPrefix' ].$action,
87 87
                         'id' => $model->id
88 88
                     ]);
89 89
                 }
Please login to merge, or discard this patch.
views/admin/about/view.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@  discard block
 block discarded – undo
9 9
 /* @var $model app\models\About */
10 10
 
11 11
 $this->title = $model->getDefaultTranslate('title');
12
-$this->params['breadcrumbs'][] = [
12
+$this->params[ 'breadcrumbs' ][ ] = [
13 13
     'label' => Yii::t('about', 'About'),
14 14
     'url' => [
15
-        $this->params['urlPrefix'].'index'
15
+        $this->params[ 'urlPrefix' ].'index'
16 16
     ]
17 17
 ];
18
-$this->params['breadcrumbs'][] = $this->title;
18
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
19 19
 ?>
20 20
 
21 21
 <style>
@@ -29,13 +29,13 @@  discard block
 block discarded – undo
29 29
 
30 30
     <p>
31 31
         <?php echo Html::a(Yii::t('app', 'Update'), [
32
-            $this->params['urlPrefix'].'update', 'id' => $model->id
32
+            $this->params[ 'urlPrefix' ].'update', 'id' => $model->id
33 33
         ], [
34 34
             'class' => 'btn btn-primary'
35 35
         ]) ?>
36 36
 
37 37
         <?php echo Html::a(Yii::t('app', 'Delete'), [
38
-            $this->params['urlPrefix'].'delete',
38
+            $this->params[ 'urlPrefix' ].'delete',
39 39
             'id' => $model->id
40 40
         ], [
41 41
             'class' => 'btn btn-danger',
@@ -82,22 +82,22 @@  discard block
 block discarded – undo
82 82
                 'label' => Yii::t('app', 'Default status'),
83 83
                 'value' => function($model) {
84 84
                     /* @var $model app\models\About */
85
-                    if ($model->default == 1){
86
-                        return '<i class="fa fa-check-circle text-success"> ' . Yii::t('app', 'Default') . '</i>';
85
+                    if ($model->default == 1) {
86
+                        return '<i class="fa fa-check-circle text-success"> '.Yii::t('app', 'Default').'</i>';
87 87
                     } else {
88
-                        return '<i class="fa fa-times text-danger"> ' . Yii::t('app', 'No') . '</i>';
88
+                        return '<i class="fa fa-times text-danger"> '.Yii::t('app', 'No').'</i>';
89 89
                     }
90 90
                 },
91 91
                 'format' => 'raw',
92 92
             ],
93 93
             [
94 94
                 'attribute' => 'created_at',
95
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
95
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
96 96
                 'label' => Yii::t('app', 'Created date'),
97 97
             ],
98 98
             [
99 99
                 'attribute' => 'updated_at',
100
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
100
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
101 101
                 'label' => Yii::t('app', 'Updated date'),
102 102
             ],
103 103
         ],
Please login to merge, or discard this patch.
views/admin/about/create.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 /* @var $model Itstructure\AdminModule\models\MultilanguageValidateModel */
5 5
 
6 6
 $this->title = Yii::t('about', 'Create about');
7
-$this->params['breadcrumbs'][] = [
7
+$this->params[ 'breadcrumbs' ][ ] = [
8 8
     'label' => Yii::t('about', 'About'),
9 9
     'url' => [
10
-        $this->params['urlPrefix'].'index'
10
+        $this->params[ 'urlPrefix' ].'index'
11 11
     ]
12 12
 ];
13
-$this->params['breadcrumbs'][] = Yii::t('app', 'Create');
13
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Create');
14 14
 ?>
15 15
 <div class="about-create">
16 16
 
Please login to merge, or discard this patch.
views/admin/sitemap/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 /* @var string|null $sitemapContent */
9 9
 
10 10
 $this->title = Yii::t('app', 'Sitemap');
11
-$this->params['breadcrumbs'][] = $this->title;
11
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
12 12
 ?>
13 13
 <div class="sitemap-index">
14 14
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
     <div class="form-group">
18 18
         <?php echo Html::submitButton(Yii::t('app', 'Export'),
19
-            ['class' => 'btn btn-success']) ?>
19
+            [ 'class' => 'btn btn-success' ]) ?>
20 20
     </div>
21 21
 
22 22
     <?php if (!empty($sitemapContent)):?>
Please login to merge, or discard this patch.
views/admin/social/_form.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
             <?php echo $form->field($model, 'icon')->textInput()->label(Yii::t('app', 'Icon html class')); ?>
21 21
             <div class="row" style="margin-bottom: 15px;">
22 22
                 <div class="col-md-12">
23
-                    <?php if(!$model->isNewRecord): ?>
24
-                        <?php echo empty($model->icon) ? '' : Html::tag('i', '', ['class' => $model->icon]) ?>
23
+                    <?php if (!$model->isNewRecord): ?>
24
+                        <?php echo empty($model->icon) ? '' : Html::tag('i', '', [ 'class' => $model->icon ]) ?>
25 25
                     <?php endif; ?>
26 26
                     <?php echo Html::a('Fontawesome icons', Url::to('https://fontawesome.ru/all-icons/'), [
27 27
                         'target' => '_blank'
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                     <?php
30 30
                     Modal::begin([
31 31
                         'header' => '<h2>Fe icons</h2>',
32
-                        'toggleButton' => ['label' => 'Fe icons'],
32
+                        'toggleButton' => [ 'label' => 'Fe icons' ],
33 33
                     ]);
34 34
                     require __DIR__.'/fe-social-icons.php';
35 35
                     Modal::end();
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             <?php echo $form->field($model, 'url')->textInput()->label(Yii::t('social', 'Url')); ?>
41 41
 
42 42
             <?php echo $form->field($model, 'contacts')
43
-                ->checkboxList(ArrayHelper::map($contactList, 'id', function ($item) {
43
+                ->checkboxList(ArrayHelper::map($contactList, 'id', function($item) {
44 44
                     /* @var $item app\models\Contact */
45 45
                     return $item->getDefaultTranslate('title');
46 46
                 }), [
Please login to merge, or discard this patch.