Completed
Push — master ( fb7a26...d5e2d7 )
by Agiel Kurniawan
04:29
created
backend/views/theme/_navigation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 echo Nav::widget([
12 12
     'items' => [
13 13
         [
14
-            'label' => '<i class="fa fa-list"></i> <span>' . Yii::t('writesdown', 'Available Themes') . '</span>',
14
+            'label' => '<i class="fa fa-list"></i> <span>'.Yii::t('writesdown', 'Available Themes').'</span>',
15 15
             'url' => ['index'],
16 16
         ],
17 17
         [
18
-            'label' => '<i class="fa fa-upload"></i> <span>' . Yii::t('writesdown', 'Add New Theme') . '</span>',
18
+            'label' => '<i class="fa fa-upload"></i> <span>'.Yii::t('writesdown', 'Add New Theme').'</span>',
19 19
             'url' => ['upload'],
20 20
         ],
21 21
     ],
Please login to merge, or discard this patch.
backend/views/post/_form-term-js.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
 if (!$model->isNewRecord) {
18 18
     $onItemRemove = 'onItemRemove: function (value) {
19 19
         $.ajax({
20
-            url: "' . Url::to(['/term-relationship/ajax-delete-non-hierarchical']) . '",
20
+            url: "' . Url::to(['/term-relationship/ajax-delete-non-hierarchical']).'",
21 21
             data: {
22 22
                 TermRelationship: {
23
-                    post_id: "' . $model->id . '",
23
+                    post_id: "' . $model->id.'",
24 24
                     term_id: value
25 25
                 },
26 26
                 _csrf: yii.getCsrfToken()
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
     },';
31 31
     $onItemAdd = 'onItemAdd: function (value) {
32 32
         $.ajax({
33
-            url: "' . Url::to(['/term-relationship/ajax-create-non-hierarchical']) . '",
33
+            url: "' . Url::to(['/term-relationship/ajax-create-non-hierarchical']).'",
34 34
             data: {
35 35
                 TermRelationship: {
36
-                    post_id: "' . $model->id . '",
36
+                    post_id: "' . $model->id.'",
37 37
                     term_id: value
38 38
                 },
39 39
                 _csrf: yii.getCsrfToken()
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             plugins: ["remove_button"],
54 54
             create: function (input, callback) {
55 55
                 $.ajax({
56
-                    url: "' . Url::to(['/term/ajax-create-non-hierarchical']) . '",
56
+                    url: "' . Url::to(['/term/ajax-create-non-hierarchical']).'",
57 57
                     data: {
58 58
                         Term: {
59 59
                             name: input,
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     . 'load: function (query, callback) {
73 73
             if (!query.length) return callback();
74 74
                 $.ajax({
75
-                    url: "' . Url::to(['/term/ajax-search']) . '",
75
+                    url: "' . Url::to(['/term/ajax-search']).'",
76 76
                     type: "POST",
77 77
                     dataType: "json",
78 78
                     data: {
Please login to merge, or discard this patch.
backend/views/post/_form.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     ]) ?>
21 21
 
22 22
     <?= $form->field($model, 'slug', [
23
-        'template' => '<span class="input-group-addon">' . $model->getAttributeLabel('slug') . '</span>{input}',
23
+        'template' => '<span class="input-group-addon">'.$model->getAttributeLabel('slug').'</span>{input}',
24 24
         'options' => [
25 25
             'class' => 'input-group form-group input-group-sm',
26 26
         ],
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             'compressorRoute' => 'editor/compressor',
46 46
             'settings' => [
47 47
                 'menubar' => false,
48
-                'skin_url' => Url::base(true) . '/editor/skins/writesdown',
48
+                'skin_url' => Url::base(true).'/editor/skins/writesdown',
49 49
                 'toolbar_items_size' => 'medium',
50 50
                 'toolbar' => 'undo redo | styleselect | bold italic | alignleft aligncenter '
51 51
                     . 'alignright alignjustify | bullist numlist outdent indent | link image | code fullscreen',
Please login to merge, or discard this patch.
backend/views/post/index.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             ) ?>
42 42
 
43 43
             <?= ButtonDropdown::widget([
44
-                'label' => Html::tag('i', '', ['class' => 'fa fa-user']) . ' Author',
44
+                'label' => Html::tag('i', '', ['class' => 'fa fa-user']).' Author',
45 45
                 'dropdown' => [
46 46
                     'items' => [
47 47
                         [
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         'columns' => [
74 74
             [
75 75
                 'class' => 'yii\grid\CheckboxColumn',
76
-                'checkboxOptions' => function ($model) {
76
+                'checkboxOptions' => function($model) {
77 77
                     /* @var $model \common\models\search\Post */
78 78
                     if ($model->getPermission()) {
79 79
                         return ['value' => $model->id];
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             ],
85 85
             [
86 86
                 'attribute' => 'username',
87
-                'value' => function ($model) {
87
+                'value' => function($model) {
88 88
                     /* @var $model \common\models\search\Post */
89 89
                     return $model->postAuthor->username;
90 90
                 },
@@ -98,13 +98,13 @@  discard block
 block discarded – undo
98 98
             [
99 99
                 'class' => 'yii\grid\ActionColumn',
100 100
                 'buttons' => [
101
-                    'view' => function ($url, $model) {
101
+                    'view' => function($url, $model) {
102 102
                         return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', $model->url, [
103 103
                             'title' => Yii::t('yii', 'View'),
104 104
                             'data-pjax' => '0',
105 105
                         ]);
106 106
                     },
107
-                    'update' => function ($url, $model) {
107
+                    'update' => function($url, $model) {
108 108
                         /* @var $model \common\models\search\Post */
109 109
                         if ($model->getPermission()) {
110 110
                             return Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url, [
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
                         return '';
117 117
                     },
118
-                    'delete' => function ($url, $model) {
118
+                    'delete' => function($url, $model) {
119 119
                         /* @var $model \common\models\search\Post */
120 120
                         if ($model->getPermission()) {
121 121
                             return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, [
@@ -138,11 +138,11 @@  discard block
 block discarded – undo
138 138
 </div>
139 139
 <?php $this->registerJs('jQuery(".bulk-button").click(function(e){
140 140
     e.preventDefault();
141
-    if(confirm("' . Yii::t("app", "Are you sure to do this?") . '")){
141
+    if(confirm("' . Yii::t("app", "Are you sure to do this?").'")){
142 142
         var ids     = $("#post-grid-view").yiiGridView("getSelectedRows"); // returns an array of pkeys, and #grid is your grid element id
143 143
         var action  = $(this).parents(".form-group").find(".bulk-action").val();
144 144
         $.ajax({
145
-            url: "' . Url::to(["bulk-action"]) . '",
145
+            url: "' . Url::to(["bulk-action"]).'",
146 146
             data: { ids: ids, action: action, _csrf: yii.getCsrfToken() },
147 147
             type:"POST",
148 148
             success: function(data){
Please login to merge, or discard this patch.
backend/views/widget/_available.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         <?php endif ?>
47 47
 
48 48
         <?php $form = ActiveForm::begin([
49
-            'id' => 'widget-available-form-' . $directory,
49
+            'id' => 'widget-available-form-'.$directory,
50 50
             'action' => Url::to(['/site/forbidden']),
51 51
             'options' => [
52 52
                 'data-url' => Url::to(['ajax-activate', 'id' => $directory]),
Please login to merge, or discard this patch.
backend/views/widget/_active.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 /* @var $available [] */
17 17
 ?>
18 18
 <?php $form = ActiveForm::begin([
19
-    'id' => 'widget-active-form-' . $active->id,
19
+    'id' => 'widget-active-form-'.$active->id,
20 20
     'action' => Url::to(['/site/forbidden']),
21 21
     'options' => [
22 22
         'class' => 'widget-active-form box box-solid box-default collapsed-box',
Please login to merge, or discard this patch.
backend/views/widget/_form.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@
 block discarded – undo
18 18
  * @param $config array
19 19
  * @param $oldKey null|array
20 20
  */
21
-$renderConfig = function ($form, $model, $config, $oldKey = null) use (&$renderConfig) {
21
+$renderConfig = function($form, $model, $config, $oldKey = null) use (&$renderConfig) {
22 22
     echo '<ul>';
23 23
 
24 24
     foreach ($config as $key => $value) {
25 25
         echo '<li>';
26 26
         if (is_array($value)) {
27
-            $renderConfig($form, $model, $value, $oldKey . "[$key]");
27
+            $renderConfig($form, $model, $value, $oldKey."[$key]");
28 28
         } else {
29
-            echo $form->field($model, "config" . $oldKey . "[$key]")->textInput([
29
+            echo $form->field($model, "config".$oldKey."[$key]")->textInput([
30 30
                 'class' => 'form-control input-sm',
31 31
                 'value' => $value,
32 32
                 'readonly' => $key === 'class' ? 'readonly' : null,
Please login to merge, or discard this patch.
backend/views/widget/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 Widget'),
26
+                    'label' => '<i class="fa fa-upload"></i> '.Yii::t('writesdown', 'Upload New Widget'),
27 27
                     'options' => ['class' => 'active'],
28 28
                 ],
29 29
             ],
Please login to merge, or discard this patch.
backend/views/menu/_render-item.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 <div class="dd-handle"><?= $item->label ?></div>
19 19
 <div class="menu-header clearfix">
20 20
     <?= Html::button('<i class="fa fa-caret-down"></i>', [
21
-        'aria-controls' => 'menu-item-' . $item->id,
21
+        'aria-controls' => 'menu-item-'.$item->id,
22 22
         'class' => 'btn btn-flat btn-default btn-detail-menu',
23 23
         'data-toggle' => 'collapse',
24
-        'data-target' => '#menu-item-' . $item->id,
24
+        'data-target' => '#menu-item-'.$item->id,
25 25
     ]) ?>
26 26
 
27 27
 </div>
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
     <div class="row">
30 30
         <div class="col-sm-6">
31 31
             <div class="form-group">
32
-                <?= Html::label($item->getAttributeLabel('label'), 'menuitem-label-' . $item->id, [
32
+                <?= Html::label($item->getAttributeLabel('label'), 'menuitem-label-'.$item->id, [
33 33
                     'class' => 'form-label',
34 34
                 ]) ?>
35 35
 
36
-                <?= Html::textInput('MenuItem[' . $item->id . '][label]', $item->label, [
37
-                    'id' => 'menuitem-label-' . $item->id,
36
+                <?= Html::textInput('MenuItem['.$item->id.'][label]', $item->label, [
37
+                    'id' => 'menuitem-label-'.$item->id,
38 38
                     'class' => 'menu-input form-control input-sm',
39 39
                 ]) ?>
40 40
 
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
42 42
         </div>
43 43
         <div class="col-sm-6">
44 44
             <div class="form-group">
45
-                <?= Html::label($item->getAttributeLabel('url'), 'menuitem-url-' . $item->id, [
45
+                <?= Html::label($item->getAttributeLabel('url'), 'menuitem-url-'.$item->id, [
46 46
                     'class' => 'form-label',
47 47
                 ]) ?>
48 48
 
49
-                <?= Html::textInput('MenuItem[' . $item->id . '][url]', $item->url, [
50
-                    'id' => 'menuitem-url-' . $item->id,
49
+                <?= Html::textInput('MenuItem['.$item->id.'][url]', $item->url, [
50
+                    'id' => 'menuitem-url-'.$item->id,
51 51
                     'class' => 'menu-input form-control input-sm',
52 52
                 ]) ?>
53 53
 
@@ -57,19 +57,19 @@  discard block
 block discarded – undo
57 57
             <div class="form-group">
58 58
                 <?= Html::label(
59 59
                     $item->getAttributeLabel('description'),
60
-                    'menuitem-description-' . $item->id,
60
+                    'menuitem-description-'.$item->id,
61 61
                     ['class' => 'form-label']
62 62
                 ) ?>
63 63
 
64
-                <?= Html::textarea('MenuItem[' . $item->id . '][description]', $item->description, [
65
-                    'id' => 'menuitem-description-' . $item->id,
64
+                <?= Html::textarea('MenuItem['.$item->id.'][description]', $item->description, [
65
+                    'id' => 'menuitem-description-'.$item->id,
66 66
                     'class' => 'menu-input form-control input-sm',
67 67
                 ]) ?>
68 68
 
69 69
             </div>
70 70
         </div>
71 71
         <div class="col-sm-12">
72
-            <?= Html::button('<i class="fa fa-trash"></i> ' . Yii::t('writesdown', 'Remove Menu'), [
72
+            <?= Html::button('<i class="fa fa-trash"></i> '.Yii::t('writesdown', 'Remove Menu'), [
73 73
                 'data' => [
74 74
                     'url' => Url::to(['delete-menu-item']),
75 75
                     'id' => $item->id,
Please login to merge, or discard this patch.