Completed
Push — master ( fb7a26...d5e2d7 )
by Agiel Kurniawan
04:29
created
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.
backend/views/term/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
                 'class' => 'yii\grid\ActionColumn',
34 34
                 'template' => '{update} {delete}',
35 35
                 'buttons' => [
36
-                    'update' => function ($url, $model) {
36
+                    'update' => function($url, $model) {
37 37
                         return Html::a('<span class="glyphicon glyphicon-pencil"></span>', [
38 38
                             '/taxonomy/update-term',
39 39
                             'id' => $model->taxonomy->id,
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                             'data-pjax' => '0',
44 44
                         ]);
45 45
                     },
46
-                    'delete' => function ($url, $model) {
46
+                    'delete' => function($url, $model) {
47 47
                         return Html::a('<span class="glyphicon glyphicon-trash"></span>', [
48 48
                             '/taxonomy/delete-term',
49 49
                             'id' => $model->taxonomy->id,
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
 </div>
82 82
 <?php $this->registerJs('jQuery(".bulk-button").click(function(e){
83 83
     e.preventDefault();
84
-    if(confirm("' . Yii::t('writesdown', 'Are you sure?') . '")){
84
+    if(confirm("' . Yii::t('writesdown', 'Are you sure?').'")){
85 85
         var ids     = $("#term-grid-view").yiiGridView("getSelectedRows"); // returns an array of pkeys, and #grid is your grid element id
86 86
         var action  = $(this).parents(".form-group").find(".bulk-action").val();
87 87
         $.ajax({
88
-            url: "' . Url::to(["/term/bulk-action"]) . '",
88
+            url: "' . Url::to(["/term/bulk-action"]).'",
89 89
             data: { ids: ids, action: action, _csrf: yii.getCsrfToken() },
90 90
             type:"POST",
91 91
             success: function(data){
Please login to merge, or discard this patch.
backend/views/media/update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
     </div>
85 85
 </div>
86 86
 <?php Modal::begin([
87
-    'header' => '<i class="glyphicon glyphicon-time"></i> ' . Yii::t('writesdown', 'Change Media Date') . '',
87
+    'header' => '<i class="glyphicon glyphicon-time"></i> '.Yii::t('writesdown', 'Change Media Date').'',
88 88
     'id' => 'modal-for-date',
89 89
 ]) ?>
90 90
 
Please login to merge, or discard this patch.
backend/views/user/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         'columns' => [
73 73
             [
74 74
                 'class' => 'yii\grid\CheckboxColumn',
75
-                'checkboxOptions' => function ($model) {
75
+                'checkboxOptions' => function($model) {
76 76
                     /* @var $model \common\models\User */
77 77
                     if ($model->checkPermission()) {
78 78
                         return ['value' => $model->id];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             'email:email',
87 87
             [
88 88
                 'attribute' => 'role',
89
-                'value' => function ($model) {
89
+                'value' => function($model) {
90 90
                     return implode(
91 91
                         ', ',
92 92
                         ArrayHelper::getColumn(Yii::$app->authManager->getRolesByUser($model->id), 'name')
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             ],
96 96
             [
97 97
                 'attribute' => 'status',
98
-                'value' => function ($model) {
98
+                'value' => function($model) {
99 99
                     return $model->statustext;
100 100
                 },
101 101
                 'filter' => $searchModel->getStatuses(),
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             [
104 104
                 'class' => 'yii\grid\ActionColumn',
105 105
                 'buttons' => [
106
-                    'update' => function ($url, $model) {
106
+                    'update' => function($url, $model) {
107 107
                         /* @var $model \common\models\User */
108 108
                         if ($model->checkPermission()) {
109 109
                             return Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url, [
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
                         return '';
116 116
                     },
117
-                    'delete' => function ($url, $model) {
117
+                    'delete' => function($url, $model) {
118 118
                         /* @var $model \common\models\User */
119 119
                         if ($model->checkPermission()) {
120 120
                             return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, [
@@ -137,11 +137,11 @@  discard block
 block discarded – undo
137 137
 </div>
138 138
 <?php $this->registerJs('jQuery(".bulk-button").click(function(e){
139 139
     e.preventDefault();
140
-    if(confirm("' . Yii::t("writesdown", "Are you sure?") . '")){
140
+    if(confirm("' . Yii::t("writesdown", "Are you sure?").'")){
141 141
         var ids     = $("#user-grid-view").yiiGridView("getSelectedRows");
142 142
         var action  = $(this).parents(".form-group").find(".bulk-action").val();
143 143
         $.ajax({
144
-            url: "' . Url::to(['bulk-action']) . '",
144
+            url: "' . Url::to(['bulk-action']).'",
145 145
             data: { ids: ids, action: action, _csrf: yii.getCsrfToken() },
146 146
             type:"POST",
147 147
             success: function(response){
@@ -152,11 +152,11 @@  discard block
 block discarded – undo
152 152
 });
153 153
 jQuery(".role-button").click(function(e){
154 154
     e.preventDefault();
155
-    if(confirm("' . Yii::t("writesdown", "Are you sure?") . '")){
155
+    if(confirm("' . Yii::t("writesdown", "Are you sure?").'")){
156 156
         var ids     = $("#user-grid-view").yiiGridView("getSelectedRows");
157 157
         var role    = $(this).parents(".form-group").find(".bulk-role").val();
158 158
         $.ajax({
159
-            url: "' . Url::to(['bulk-action']) . '",
159
+            url: "' . Url::to(['bulk-action']).'",
160 160
             data: { ids: ids, action: "changerole", role: role, _csrf: yii.getCsrfToken() },
161 161
             type:"POST",
162 162
             success: function(response){
Please login to merge, or discard this patch.
backend/widgets/MediaModal.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     public function init()
43 43
     {
44 44
         if (empty($this->buttonContent)) {
45
-            $this->buttonContent = '<i class="fa fa-folder-open"></i> ' . Yii::t('writesdown', 'Open Media');
45
+            $this->buttonContent = '<i class="fa fa-folder-open"></i> '.Yii::t('writesdown', 'Open Media');
46 46
         }
47 47
 
48 48
         if ($this->buttonTag == 'button') {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $callbackValue = ArrayHelper::remove($this->callback, 'value');
78 78
 
79 79
         if ($callbackName) {
80
-            $view->registerJs('var ' . $callbackName . ' = ' . $callbackValue, $view::POS_END);
80
+            $view->registerJs('var '.$callbackName.' = '.$callbackValue, $view::POS_END);
81 81
         }
82 82
 
83 83
         $settings['title'] = $this->title;
@@ -90,6 +90,6 @@  discard block
 block discarded – undo
90 90
             'callback' => $callbackName,
91 91
         ]);
92 92
         $settings = Json::htmlEncode($settings);
93
-        $view->registerJs('$("#' . $this->id . '").mediamodal(' . $settings . ')');
93
+        $view->registerJs('$("#'.$this->id.'").mediamodal('.$settings.')');
94 94
     }
95 95
 }
Please login to merge, or discard this patch.
backend/config/main.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@  discard block
 block discarded – undo
2 2
 use yii\web\Request;
3 3
 
4 4
 $params = array_merge(
5
-    require(__DIR__ . '/../../common/config/params.php'),
6
-    require(__DIR__ . '/../../common/config/params-local.php'),
7
-    require(__DIR__ . '/params.php'),
8
-    require(__DIR__ . '/params-local.php')
5
+    require(__DIR__.'/../../common/config/params.php'),
6
+    require(__DIR__.'/../../common/config/params-local.php'),
7
+    require(__DIR__.'/params.php'),
8
+    require(__DIR__.'/params-local.php')
9 9
 );
10 10
 
11 11
 $baseUrlFront = str_replace('/admin', '', (new Request())->getBaseUrl());
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         ],
46 46
         'urlManagerFront' => [
47 47
             'class' => 'yii\web\urlManager',
48
-            'scriptUrl' => $baseUrlFront . '/index.php',
48
+            'scriptUrl' => $baseUrlFront.'/index.php',
49 49
             'baseUrl' => $baseUrlFront,
50 50
         ],
51 51
         'urlManagerBack' => [
Please login to merge, or discard this patch.