Completed
Pull Request — master (#9)
by Elizaveta
05:06
created
modules/grid/ActionColumn.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     protected function initDefaultButtons()
14 14
     {
15 15
         if (!isset($this->buttons['view'])) {
16
-            $this->buttons['view'] = function ($url, $model, $key) {
16
+            $this->buttons['view'] = function($url, $model, $key) {
17 17
                 $options = array_merge([
18 18
                     'title' => Yii::t('yii', 'View'),
19 19
                     'aria-label' => Yii::t('yii', 'View'),
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
             };
25 25
         }
26 26
         if (!isset($this->buttons['update'])) {
27
-            $this->buttons['update'] = function ($url, $model, $key) {
27
+            $this->buttons['update'] = function($url, $model, $key) {
28 28
                 $options = array_merge([
29 29
                     'title' => Yii::t('yii', 'Update'),
30 30
                     'aria-label' => Yii::t('yii', 'Update'),
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             };
36 36
         }
37 37
         if (!isset($this->buttons['delete'])) {
38
-            $this->buttons['delete'] = function ($url, $model, $key) {
38
+            $this->buttons['delete'] = function($url, $model, $key) {
39 39
                 $options = array_merge([
40 40
                     'title' => Yii::t('yii', 'Delete'),
41 41
                     'aria-label' => Yii::t('yii', 'Delete'),
Please login to merge, or discard this patch.
modules/option/views/management/_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
 
20 20
     <div class="form-group">
21
-        <?= Html::submitButton(Yii::t('option', 'Update'), ['class' => 'btn btn-success' ]) ?>
21
+        <?= Html::submitButton(Yii::t('option', 'Update'), ['class' => 'btn btn-success']) ?>
22 22
         <?= Html::a(Yii::t('option', 'Cancel'), [Url::to('index')], ['class' => 'btn btn-default']); ?>
23 23
     </div>
24 24
 
Please login to merge, or discard this patch.
modules/feedback/views/management/index.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             'email:email',
28 28
             [
29 29
                 'attribute' => 'message',
30
-                'value' => function ($model) {
30
+                'value' => function($model) {
31 31
                     return StringHelper::truncate($model->message, 150);
32 32
                 },
33 33
             ],
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                     ],
44 44
                     ['prompt' => Yii::t('feedback', 'All'), 'class' => 'form-control']
45 45
                 ),
46
-                'content' => function ($model) {
46
+                'content' => function($model) {
47 47
                     $label = Feedback::STATUS_ANSWERED === $model->status ? 'success' : 'danger';
48 48
                     return "<span class='visible-md-block visible-xs-block
49 49
                         visible-sm-block visible-lg-block label label-{$label}'>{$model->status}</span>";
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                     'clientOptions' => ['format' => 'yyyy-mm-d']
68 68
                 ]),
69 69
                 'format' => 'html',
70
-                'content' => function ($model) {
70
+                'content' => function($model) {
71 71
                     return Yii::$app->formatter->asDatetime($model->updated_at);
72 72
                 },
73 73
             ],
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 'contentOptions' => ['style' => 'text-align: center'],
78 78
                 'template' => '{view} {answered} ',
79 79
                 'buttons' => [
80
-                    'answered' => function ($url, $model) {
80
+                    'answered' => function($url, $model) {
81 81
                         return Feedback::STATUS_NEW === $model->status ?
82 82
                             Html::beginForm(
83 83
                                 ['/feedback/management/update?id=' . $model->id],
@@ -94,8 +94,7 @@  discard block
 block discarded – undo
94 94
                                     'class' => 'btn btn-info',
95 95
                                 ]
96 96
                             )
97
-                            . Html::endForm() :
98
-                            Html::a(
97
+                            . Html::endForm() : Html::a(
99 98
                                 '<span class="glyphicon glyphicon-comment text-muted"></span>',
100 99
                                 '#',
101 100
                                 [
Please login to merge, or discard this patch.