Completed
Push — master ( 3b924e...fb7a26 )
by Agiel Kurniawan
07:58
created
backend/views/module/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,11 +83,11 @@
 block discarded – undo
83 83
 </div>
84 84
 <?php $this->registerJs('jQuery(document).on("click", ".bulk-button", function(e){
85 85
     e.preventDefault();
86
-    if(confirm("' . Yii::t('writesdown', 'Are you sure?') . '")){
86
+    if(confirm("' . Yii::t('writesdown', 'Are you sure?').'")){
87 87
         var ids     = $("#module-grid-view").yiiGridView("getSelectedRows");
88 88
         var action  = $(this).closest(".form-group").find(".bulk-action").val();
89 89
         $.ajax({
90
-            url: "' . Url::to(["bulk-action"]) . '",
90
+            url: "' . Url::to(["bulk-action"]).'",
91 91
             data: { ids: ids, action: action, _csrf: yii.getCsrfToken() },
92 92
             type: "POST",
93 93
             success: function(data){
Please login to merge, or discard this patch.
backend/views/module/create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         <?= Nav::widget([
24 24
             'items' => [
25 25
                 [
26
-                    'label' => '<i class="fa fa-upload"></i> ' . Yii::t('writesdown', 'Upload New Module'),
26
+                    'label' => '<i class="fa fa-upload"></i> '.Yii::t('writesdown', 'Upload New Module'),
27 27
                     'options' => ['class' => 'active'],
28 28
                 ],
29 29
             ],
Please login to merge, or discard this patch.
backend/views/layouts/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             <?= Breadcrumbs::widget([
25 25
                 'homeLink' => [
26 26
                     'label' => Html::a(
27
-                        '<i class="fa fa-dashboard"></i> ' . Yii::t('writesdown', 'Home'),
27
+                        '<i class="fa fa-dashboard"></i> '.Yii::t('writesdown', 'Home'),
28 28
                         Yii::$app->homeUrl
29 29
                     ),
30 30
                 ],
Please login to merge, or discard this patch.
backend/views/layouts/main-sidebar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
                 <div class="pull-left info">
32 32
                     <p><?= Yii::$app->user->identity->username ?></p>
33 33
                     <?= Html::a(
34
-                        '<i class="fa fa-circle text-success"></i>' . Yii::t('writesdown', 'Online'),
34
+                        '<i class="fa fa-circle text-success"></i>'.Yii::t('writesdown', 'Online'),
35 35
                         ['/user/profile']
36 36
                     ) ?>
37 37
                 </div>
Please login to merge, or discard this patch.
backend/views/post-comment/_form-reply.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             'compressorRoute' => 'editor/compressor',
22 22
             'settings' => [
23 23
                 'menubar' => false,
24
-                'skin_url' => Url::base(true) . '/editor/skins/writesdown',
24
+                'skin_url' => Url::base(true).'/editor/skins/writesdown',
25 25
                 'toolbar_items_size' => 'medium',
26 26
                 'toolbar' => "bold | italic | strikethrough | underline | link | image | bullist | numlist",
27 27
             ],
Please login to merge, or discard this patch.
backend/views/post-comment/_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             'compressorRoute' => 'editor/compressor',
36 36
             'settings' => [
37 37
                 'menubar' => false,
38
-                'skin_url' => Url::base(true) . '/editor/skins/writesdown',
38
+                'skin_url' => Url::base(true).'/editor/skins/writesdown',
39 39
                 'toolbar_items_size' => 'medium',
40 40
                 'toolbar' => "bold | italic | strikethrough | underline | link | image | bullist | numlist",
41 41
             ],
Please login to merge, or discard this patch.
backend/views/post-comment/reply.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
                     'attribute' => 'ip',
69 69
                     'value' => Html::a(
70 70
                         $commentParent->ip,
71
-                        'http://whois.arin.net/rest/ip/' . $commentParent->ip,
71
+                        'http://whois.arin.net/rest/ip/'.$commentParent->ip,
72 72
                         ['target' => '_blank']
73 73
                     ),
74 74
                     'format' => 'raw',
Please login to merge, or discard this patch.
backend/views/post-comment/update.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                     'attribute' => 'ip',
61 61
                     'value' => Html::a(
62 62
                         $model->ip,
63
-                        'http://whois.arin.net/rest/ip/' . $model->ip,
63
+                        'http://whois.arin.net/rest/ip/'.$model->ip,
64 64
                         ['target' => '_blank']
65 65
                     ),
66 66
                     'format' => 'raw',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 [
69 69
                     'attribute' => 'date',
70 70
                     'value' => Html::a(
71
-                        date('M d, Y H:i:s', strtotime($model->date)) . ' <i class="fa fa-pencil"></i>',
71
+                        date('M d, Y H:i:s', strtotime($model->date)).' <i class="fa fa-pencil"></i>',
72 72
                         '#', [
73 73
                             'data-toggle' => 'modal',
74 74
                             'id' => 'date-link',
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
         ]) ?>
91 91
 
92 92
         <?= Html::a(
93
-            '<span class="glyphicon glyphicon-share-alt"></span> ' . Yii::t('writesdown', 'Reply'),
93
+            '<span class="glyphicon glyphicon-share-alt"></span> '.Yii::t('writesdown', 'Reply'),
94 94
             ['reply', 'id' => $model->id],
95 95
             ['class' => 'btn btn-sm btn-flat btn-success']
96 96
         ) ?>
97 97
 
98 98
         <?= Html::a(
99
-            '<span class="glyphicon glyphicon-trash"></span> ' . Yii::t('writesdown', 'Delete'),
99
+            '<span class="glyphicon glyphicon-trash"></span> '.Yii::t('writesdown', 'Delete'),
100 100
             ['delete', 'id' => $model->id],
101 101
             [
102 102
                 'class' => 'btn btn-wd-post btn-sm btn-flat btn-danger pull-right',
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     </div>
108 108
 </div>
109 109
 <?php Modal::begin([
110
-    'header' => '<i class="glyphicon glyphicon-time"></i> ' . Yii::t('writesdown', 'Change Comment Date') . '',
110
+    'header' => '<i class="glyphicon glyphicon-time"></i> '.Yii::t('writesdown', 'Change Comment Date').'',
111 111
     'id' => 'modal-for-date',
112 112
 ]) ?>
113 113
 
Please login to merge, or discard this patch.
backend/views/post-comment/index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
             [
66 66
                 'attribute' => 'content',
67 67
                 'format' => 'html',
68
-                'value' => function ($model) {
69
-                    return substr(strip_tags($model->content), 0, 150) . '...';
68
+                'value' => function($model) {
69
+                    return substr(strip_tags($model->content), 0, 150).'...';
70 70
                 },
71 71
             ],
72 72
             'date',
@@ -79,14 +79,14 @@  discard block
 block discarded – undo
79 79
                 'class' => 'yii\grid\ActionColumn',
80 80
                 'template' => Yii::$app->user->can('editor') ? '{view} {update} {delete} {reply}' : '{view}',
81 81
                 'buttons' => [
82
-                    'view' => function ($url, $model) {
82
+                    'view' => function($url, $model) {
83 83
                         return Html::a('<span class="glyphicon glyphicon-eye-open"></span>',
84
-                            $model->commentPost->url . '#comment-' . $model->id, [
84
+                            $model->commentPost->url.'#comment-'.$model->id, [
85 85
                                 'title' => Yii::t('yii', 'View'),
86 86
                                 'data-pjax' => '0',
87 87
                             ]);
88 88
                     },
89
-                    'reply' => function ($url, $model) {
89
+                    'reply' => function($url, $model) {
90 90
                         return Html::a('<span class="glyphicon glyphicon-share-alt"></span>', [
91 91
                             'reply',
92 92
                             'id' => $model->id,
@@ -105,11 +105,11 @@  discard block
 block discarded – undo
105 105
 </div>
106 106
 <?php $this->registerJs('jQuery(".bulk-button").click(function(e){
107 107
     e.preventDefault();
108
-    if(confirm("' . Yii::t("writesdown", "Are you sure?") . '")){
108
+    if(confirm("' . Yii::t("writesdown", "Are you sure?").'")){
109 109
         var ids     = $("#post-comment-grid-view").yiiGridView("getSelectedRows");
110 110
         var action  = $(this).parents(".form-group").find(".bulk-action").val();
111 111
         $.ajax({
112
-            url: "' . Url::to(["bulk-action"]) . '",
112
+            url: "' . Url::to(["bulk-action"]).'",
113 113
             data: { ids: ids, action: action, _csrf: yii.getCsrfToken() },
114 114
             type:"POST",
115 115
             success: function(data){
Please login to merge, or discard this patch.