Passed
Push — master ( dd4450...9a9614 )
by Andrey
05:55
created
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.
views/admin/feedback/_search.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     <?php $form = ActiveForm::begin([
28 28
         'action' => [
29
-            $this->params['urlPrefix'].'index'
29
+            $this->params[ 'urlPrefix' ].'index'
30 30
         ],
31 31
         'method' => 'get',
32 32
     ]); ?>
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         <div class="col-md-4">
36 36
 
37 37
             <?php echo $form->field($model, 'read')
38
-                ->radioList([0 => Yii::t('feedback', 'New'), 1 => Yii::t('feedback', 'Read')])
38
+                ->radioList([ 0 => Yii::t('feedback', 'New'), 1 => Yii::t('feedback', 'Read') ])
39 39
                 ->label(Yii::t('feedback', 'Read status')); ?>
40 40
 
41 41
             <?php echo $form->field($model, 'name')->label(Yii::t('feedback', 'Name')) ?>
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
             <?php echo $form->field($model, 'subject')->label(Yii::t('feedback', 'Subject')) ?>
48 48
 
49 49
             <div class="form-group">
50
-                <?php echo Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>
51
-                <?php echo Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default', 'role' => 'clear-button']) ?>
50
+                <?php echo Html::submitButton(Yii::t('app', 'Search'), [ 'class' => 'btn btn-primary' ]) ?>
51
+                <?php echo Html::resetButton(Yii::t('app', 'Reset'), [ 'class' => 'btn btn-default', 'role' => 'clear-button' ]) ?>
52 52
             </div>
53 53
 
54 54
         </div>
Please login to merge, or discard this patch.
views/admin/feedback/view.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 /* @var $model app\models\Feedback */
8 8
 
9 9
 $this->title = $model->subject;
10
-$this->params['breadcrumbs'][] = [
10
+$this->params[ 'breadcrumbs' ][ ] = [
11 11
     'label' => Yii::t('feedback', 'Feedback'),
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,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     <p>
29 29
         <?php echo Html::a(Yii::t('app', 'Delete'), [
30
-            $this->params['urlPrefix'].'delete', 'id' => $model->id
30
+            $this->params[ 'urlPrefix' ].'delete', 'id' => $model->id
31 31
         ], [
32 32
             'class' => 'btn btn-danger',
33 33
             'data'=>[
@@ -75,12 +75,12 @@  discard block
 block discarded – undo
75 75
             ],
76 76
             [
77 77
                 'attribute' => 'created_at',
78
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
78
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
79 79
                 'label' => Yii::t('app', 'Created date'),
80 80
             ],
81 81
             [
82 82
                 'attribute' => 'updated_at',
83
-                'format' =>  ['date', 'dd.MM.Y HH:mm:ss'],
83
+                'format' =>  [ 'date', 'dd.MM.Y HH:mm:ss' ],
84 84
                 'label' => Yii::t('app', 'Updated date'),
85 85
             ],
86 86
         ],
Please login to merge, or discard this patch.