Passed
Push — master ( 2de20e...5ce583 )
by Andrey
04:00
created
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.
views/admin/social/update.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,21 +4,21 @@
 block discarded – undo
4 4
 /* @var $model app\models\Social */
5 5
 /* @var $contactList app\models\Contact[] */
6 6
 
7
-$this->title = Yii::t('social', 'Update social').': ' . $model->url;
8
-$this->params['breadcrumbs'][] = [
7
+$this->title = Yii::t('social', 'Update social').': '.$model->url;
8
+$this->params[ 'breadcrumbs' ][ ] = [
9 9
     'label' => Yii::t('social', 'Social'),
10 10
     'url' => [
11
-        $this->params['urlPrefix'].'index'
11
+        $this->params[ 'urlPrefix' ].'index'
12 12
     ]
13 13
 ];
14
-$this->params['breadcrumbs'][] = [
14
+$this->params[ 'breadcrumbs' ][ ] = [
15 15
     'label' => $model->url,
16 16
     'url' => [
17
-        $this->params['urlPrefix'].'view',
17
+        $this->params[ 'urlPrefix' ].'view',
18 18
         'id' => $model->id
19 19
     ]
20 20
 ];
21
-$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
21
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Update');
22 22
 ?>
23 23
 <div class="social-update">
24 24
 
Please login to merge, or discard this patch.
views/admin/social/index.php 1 patch
Spacing   +10 added lines, -10 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('social', 'Social');
12
-$this->params['breadcrumbs'][] = $this->title;
12
+$this->params[ 'breadcrumbs' ][ ] = $this->title;
13 13
 ?>
14 14
 <div class="social-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('social', 'Create social'), [
20
-            $this->params['urlPrefix'].'create'
20
+            $this->params[ 'urlPrefix' ].'create'
21 21
         ], [
22 22
             'class' => 'btn btn-success'
23 23
         ]) ?>
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
                 'value' => function($searchModel) {
35 35
                     /* @var $searchModel SocialSearch */
36 36
                     return Html::a(
37
-                        Html::tag('i', '', ['class' => $searchModel->icon]),
38
-                        Url::to([$this->params['urlPrefix'].'view', 'id' => $searchModel->id])
37
+                        Html::tag('i', '', [ 'class' => $searchModel->icon ]),
38
+                        Url::to([ $this->params[ 'urlPrefix' ].'view', 'id' => $searchModel->id ])
39 39
                     );
40 40
                 },
41 41
                 'format' => 'raw',
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
             ],
57 57
             'contacts' => [
58 58
                 'label' => Yii::t('social', 'Parent contact records'),
59
-                'value' => function ($searchModel) {
59
+                'value' => function($searchModel) {
60 60
                     /* @var $searchModel SocialSearch */
61 61
                     $contactRecords = '';
62 62
                     foreach ($searchModel->contacts as $contactRecord) {
63 63
                         $contactRecords .= Html::tag('li',
64 64
                             Html::a($contactRecord->getDefaultTranslate('title'),
65
-                                Url::to(['/'.$this->params['shortLanguage'].'/admin/contacts/view', 'id' => $contactRecord->id]),
65
+                                Url::to([ '/'.$this->params[ 'shortLanguage' ].'/admin/contacts/view', 'id' => $contactRecord->id ]),
66 66
                                 [
67 67
                                     'target' => '_blank'
68 68
                                 ]
@@ -78,21 +78,21 @@  discard block
 block discarded – undo
78 78
             ],
79 79
             [
80 80
                 'attribute' => 'created_at',
81
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
81
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
82 82
                 'label' => Yii::t('app', 'Created date'),
83 83
             ],
84 84
             [
85 85
                 'attribute' => 'updated_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', 'Updated date'),
88 88
             ],
89 89
             [
90 90
                 'class' => 'yii\grid\ActionColumn',
91 91
                 'header' => Yii::t('app', 'Actions'),
92 92
                 'template' => '{view} {update} {delete}',
93
-                'urlCreator'=>function($action, $model, $key, $index){
93
+                'urlCreator'=>function($action, $model, $key, $index) {
94 94
                     return Url::to([
95
-                        $this->params['urlPrefix'].$action,
95
+                        $this->params[ 'urlPrefix' ].$action,
96 96
                         'id' => $model->id
97 97
                     ]);
98 98
                 }
Please login to merge, or discard this patch.
views/admin/social/view.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 /* @var $model app\models\Social */
8 8
 
9 9
 $this->title = $model->url;
10
-$this->params['breadcrumbs'][] = [
10
+$this->params[ 'breadcrumbs' ][ ] = [
11 11
     'label' => Yii::t('social', 'Social'),
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',
@@ -51,15 +51,15 @@  discard block
 block discarded – undo
51 51
             'id',
52 52
             [
53 53
                 'label' => Yii::t('app', 'Icon'),
54
-                'value' => function ($model) {
54
+                'value' => function($model) {
55 55
                     /* @var $model app\models\Social */
56
-                    return Html::tag('i', '', ['class' => $model->icon]);
56
+                    return Html::tag('i', '', [ 'class' => $model->icon ]);
57 57
                 },
58 58
                 'format' => 'raw',
59 59
             ],
60 60
             [
61 61
                 'label' => Yii::t('social', 'Url'),
62
-                'value' => function ($model) {
62
+                'value' => function($model) {
63 63
                     /* @var $model app\models\Social */
64 64
                     return Html::a(
65 65
                         Html::encode($model->url),
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
             ],
74 74
             [
75 75
                 'label' => Yii::t('social', 'Parent contact records'),
76
-                'value' => function ($model) {
76
+                'value' => function($model) {
77 77
                     /* @var $model app\models\Social */
78 78
                     $contactRecords = '';
79 79
                     foreach ($model->contacts as $contactRecord) {
80 80
                         $contactRecords .= Html::tag('li',
81 81
                             Html::a($contactRecord->getDefaultTranslate('title'),
82
-                                Url::to(['/'.$this->params['shortLanguage'].'/admin/contacts/view', 'id' => $contactRecord->id]),
82
+                                Url::to([ '/'.$this->params[ 'shortLanguage' ].'/admin/contacts/view', 'id' => $contactRecord->id ]),
83 83
                                 [
84 84
                                     'target' => '_blank'
85 85
                                 ]
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
             ],
96 96
             [
97 97
                 'attribute' => 'created_at',
98
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
98
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
99 99
                 'label' => Yii::t('app', 'Created date'),
100 100
             ],
101 101
             [
102 102
                 'attribute' => 'updated_at',
103
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
103
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
104 104
                 'label' => Yii::t('app', 'Updated date'),
105 105
             ],
106 106
         ],
Please login to merge, or discard this patch.
views/admin/social/create.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 /* @var $contactList app\models\Contact[] */
6 6
 
7 7
 $this->title = Yii::t('social', 'Create social');
8
-$this->params['breadcrumbs'][] = [
8
+$this->params[ 'breadcrumbs' ][ ] = [
9 9
     'label' => Yii::t('social', 'Social'),
10 10
     'url' => [
11
-        $this->params['urlPrefix'].'index'
11
+        $this->params[ 'urlPrefix' ].'index'
12 12
     ]
13 13
 ];
14
-$this->params['breadcrumbs'][] = Yii::t('app', 'Create');
14
+$this->params[ 'breadcrumbs' ][ ] = Yii::t('app', 'Create');
15 15
 ?>
16 16
 <div class="social-create">
17 17
 
Please login to merge, or discard this patch.