Completed
Push — master ( fb7a26...d5e2d7 )
by Agiel Kurniawan
04:29
created
common/components/BackendBootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
         /* TIME ZONE */
45 45
         $app->timeZone = Option::get('time_zone');
46 46
         /* DATE TIME */
47
-        $app->formatter->dateFormat = 'php:' . Option::get('date_format');
48
-        $app->formatter->timeFormat = 'php:' . Option::get('time_format');
49
-        $app->formatter->datetimeFormat = 'php:' . Option::get('date_format') . ' ' . Option::get('time_format');
47
+        $app->formatter->dateFormat = 'php:'.Option::get('date_format');
48
+        $app->formatter->timeFormat = 'php:'.Option::get('time_format');
49
+        $app->formatter->datetimeFormat = 'php:'.Option::get('date_format').' '.Option::get('time_format');
50 50
     }
51 51
 
52 52
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     protected function setTheme($app)
58 58
     {
59 59
         /* THEME CONFIG */
60
-        $paramsPath = Yii::getAlias('@themes/') . Option::get('theme') . '/config/params.php';
60
+        $paramsPath = Yii::getAlias('@themes/').Option::get('theme').'/config/params.php';
61 61
 
62 62
         if (is_file($paramsPath)) {
63 63
             $params = require($paramsPath);
Please login to merge, or discard this patch.
common/components/FrontendBootstrap.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
         $app->timeZone = Option::get('time_zone');
46 46
 
47 47
         /* DATE TIME */
48
-        $app->formatter->dateFormat = 'php:' . Option::get('date_format');
49
-        $app->formatter->timeFormat = 'php:' . Option::get('time_format');
50
-        $app->formatter->datetimeFormat = 'php:' . Option::get('date_format') . ' ' . Option::get('time_format');
48
+        $app->formatter->dateFormat = 'php:'.Option::get('date_format');
49
+        $app->formatter->timeFormat = 'php:'.Option::get('time_format');
50
+        $app->formatter->datetimeFormat = 'php:'.Option::get('date_format').' '.Option::get('time_format');
51 51
     }
52 52
 
53 53
     /**
@@ -57,13 +57,13 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected function setTheme($app)
59 59
     {
60
-        $app->view->theme->basePath = '@themes/' . Option::get('theme');
61
-        $app->view->theme->baseUrl = '@web/themes/' . Option::get('theme');
60
+        $app->view->theme->basePath = '@themes/'.Option::get('theme');
61
+        $app->view->theme->baseUrl = '@web/themes/'.Option::get('theme');
62 62
         $app->view->theme->pathMap = [
63
-            '@app/views' => '@themes/' . Option::get('theme'),
64
-            '@app/views/post' => '@themes/' . Option::get('theme') . '/post',
63
+            '@app/views' => '@themes/'.Option::get('theme'),
64
+            '@app/views/post' => '@themes/'.Option::get('theme').'/post',
65 65
         ];
66
-        $paramsPath = Yii::getAlias('@themes/') . Option::get('theme') . '/config/params.php';
66
+        $paramsPath = Yii::getAlias('@themes/').Option::get('theme').'/config/params.php';
67 67
 
68 68
         if (is_file($paramsPath)) {
69 69
             $params = require($paramsPath);
Please login to merge, or discard this patch.
widgets/text/TextWidget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         echo $this->beforeWidget;
28 28
 
29 29
         if ($this->title) {
30
-            echo $this->beforeTitle . $this->title . $this->afterTitle;
30
+            echo $this->beforeTitle.$this->title.$this->afterTitle;
31 31
         }
32 32
 
33 33
         echo Menu::widget([
Please login to merge, or discard this patch.
modules/sitemap/frontend/views/default/home.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 /* @var $items array */
12 12
 ?>
13 13
 <?= '<?xml version="1.0" encoding="UTF-8"?>' ?>
14
-<?= '<?xml-stylesheet type="text/xsl" href="' . Url::to(['style']) . '"?>' ?>
14
+<?= '<?xml-stylesheet type="text/xsl" href="'.Url::to(['style']).'"?>' ?>
15 15
 <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16 16
         xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
17 17
         xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
Please login to merge, or discard this patch.
modules/sitemap/frontend/views/default/taxonomy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 /* @var $items array */
12 12
 ?>
13 13
 <?= '<?xml version="1.0" encoding="UTF-8"?>' ?>
14
-<?= '<?xml-stylesheet type="text/xsl" href="' . Url::to(['style']) . '"?>' ?>
14
+<?= '<?xml-stylesheet type="text/xsl" href="'.Url::to(['style']).'"?>' ?>
15 15
 <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16 16
         xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
17 17
         xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
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
@@ -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/site/login.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     </div>
71 71
     <br/>
72 72
     <?= Html::a(
73
-        '<i class="fa fa-home"></i> ' . Yii::t(
73
+        '<i class="fa fa-home"></i> '.Yii::t(
74 74
             'writesdown', 'Back to {sitetitle}',
75 75
             ['sitetitle' => Option::get('sitetitle')]
76 76
         ),
Please login to merge, or discard this patch.
backend/views/media/index.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         'columns' => [
52 52
             [
53 53
                 'class' => 'yii\grid\CheckboxColumn',
54
-                'checkboxOptions' => function ($model) {
54
+                'checkboxOptions' => function($model) {
55 55
                     if (!Yii::$app->user->can('editor') && $model->author !== Yii::$app->user->id) {
56 56
                         return ['disabled' => 'disabled'];
57 57
                     }
@@ -62,19 +62,19 @@  discard block
 block discarded – undo
62 62
             [
63 63
                 'attribute' => Yii::t('writesdown', 'Preview'),
64 64
                 'format' => 'raw',
65
-                'value' => function ($model) {
65
+                'value' => function($model) {
66 66
                     /* @var $model common\models\Media */
67 67
                     $metadata = $model->getMeta('metadata');
68 68
                     $iconUrl = ArrayHelper::getValue($metadata, 'icon_url');
69 69
 
70 70
                     if (preg_match('/^image\//', $model->mime_type)) {
71
-                        return Html::a(Html::img($model->getUploadUrl() . $iconUrl), [
71
+                        return Html::a(Html::img($model->getUploadUrl().$iconUrl), [
72 72
                             'update',
73 73
                             'id' => $model->id,
74 74
                         ], ['class' => 'media-mime-icon']);
75 75
                     }
76 76
 
77
-                    return Html::a(Html::img(Url::base(true) . '/' . $iconUrl), [
77
+                    return Html::a(Html::img(Url::base(true).'/'.$iconUrl), [
78 78
                         'update',
79 79
                         'id' => $model->id,
80 80
                     ], ['class' => 'media-mime-icon']);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             [
84 84
                 'label' => Yii::t('writesdown', 'File Name'),
85 85
                 'format' => 'html',
86
-                'value' => function ($model) {
86
+                'value' => function($model) {
87 87
                     /* @var $model common\models\Media */
88 88
                     $metadata = $model->getMeta('metadata');
89 89
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             ],
93 93
             [
94 94
                 'attribute' => 'username',
95
-                'value' => function ($model) {
95
+                'value' => function($model) {
96 96
                     return $model->mediaAuthor->username;
97 97
                 },
98 98
             ],
@@ -101,13 +101,13 @@  discard block
 block discarded – undo
101 101
             [
102 102
                 'class' => 'yii\grid\ActionColumn',
103 103
                 'buttons' => [
104
-                    'view' => function ($url, $model) {
104
+                    'view' => function($url, $model) {
105 105
                         return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', $model->url, [
106 106
                             'title' => Yii::t('yii', 'View'),
107 107
                             'data-pjax' => '0',
108 108
                         ]);
109 109
                     },
110
-                    'update' => function ($url, $model) {
110
+                    'update' => function($url, $model) {
111 111
                         if (!Yii::$app->user->can('editor') && $model->author !== Yii::$app->user->id) {
112 112
                             return '';
113 113
                         }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                             'data-pjax' => '0',
118 118
                         ]);
119 119
                     },
120
-                    'delete' => function ($url, $model) {
120
+                    'delete' => function($url, $model) {
121 121
                         if (!Yii::$app->user->can('editor') && $model->author !== Yii::$app->user->id) {
122 122
                             return '';
123 123
                         }
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
 </div>
140 140
 <?php $this->registerJs('jQuery(document).on("click", ".bulk-button", function(e){
141 141
     e.preventDefault();
142
-    if(confirm("' . Yii::t('writesdown', 'Are you sure?') . '")){
142
+    if(confirm("' . Yii::t('writesdown', 'Are you sure?').'")){
143 143
         var ids     = $("#media-grid-view").yiiGridView("getSelectedRows");
144 144
         var action  = $(this).closest(".form-group").find(".bulk-action").val();
145 145
         $.ajax({
146
-            url: "' . Url::to(['bulk-action']) . '",
146
+            url: "' . Url::to(['bulk-action']).'",
147 147
             data: { ids: ids, action: action, _csrf: yii.getCsrfToken() },
148 148
             type: "POST",
149 149
             success: function(data){
Please login to merge, or discard this patch.
backend/views/media/_form.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     ])->textInput(['placeholder' => $model->getAttributeLabel('title')]) ?>
26 26
 
27 27
     <?= $form->field($model, 'slug', [
28
-        'template' => '<span class="input-group-addon">' . $model->getAttributeLabel('slug') . '</span>{input}',
28
+        'template' => '<span class="input-group-addon">'.$model->getAttributeLabel('slug').'</span>{input}',
29 29
         'options' => ['class' => 'input-group form-group input-group-sm'],
30 30
     ])->textInput(['maxlength' => 255, 'placeholder' => $model->getAttributeLabel('slug')]) ?>
31 31
 
@@ -36,19 +36,19 @@  discard block
 block discarded – undo
36 36
             <?= $model->getThumbnail('full', ['class' => 'thumbnail']) ?>
37 37
         <?php elseif (preg_match('/^video\//', $model->mime_type)): ?>
38 38
             <video controls class="full-width">
39
-                <source src="<?= $model->getUploadUrl() . ArrayHelper::getValue($metadata, 'versions.full.url') ?>"
39
+                <source src="<?= $model->getUploadUrl().ArrayHelper::getValue($metadata, 'versions.full.url') ?>"
40 40
                         type="<?= $model->mime_type ?>">
41 41
                 <?= Yii::t('writesdown', 'Your browser does not support HTML5 video.') ?>
42 42
             </video>
43 43
         <?php elseif (preg_match('/^audio\//', $model->mime_type)): ?>
44 44
             <audio controls class="full-width">
45
-                <source src="<?= $model->getUploadUrl() . ArrayHelper::getValue($metadata, 'versions.full.url') ?>"
45
+                <source src="<?= $model->getUploadUrl().ArrayHelper::getValue($metadata, 'versions.full.url') ?>"
46 46
                         type="<?= $model->mime_type ?>">
47 47
                 <?= Yii::t('writesdown', 'Your browser does not support HTML5 audio.') ?>
48 48
             </audio>
49 49
         <?php else: ?>
50 50
             <?= Html::textInput(
51
-                'media-file-name', $model->getUploadUrl() . ArrayHelper::getValue($metadata, 'versions.full.url'),
51
+                'media-file-name', $model->getUploadUrl().ArrayHelper::getValue($metadata, 'versions.full.url'),
52 52
                 ['class' => 'form-control input-sm', 'readonly' => 'readonly'])
53 53
             ?>
54 54
         <?php endif ?>
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             'compressorRoute' => 'editor/compressor',
65 65
             'settings' => [
66 66
                 'menubar' => false,
67
-                'skin_url' => Url::base(true) . '/editor/skins/writesdown',
67
+                'skin_url' => Url::base(true).'/editor/skins/writesdown',
68 68
                 'toolbar_items_size' => 'medium',
69 69
                 'toolbar' => 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter '
70 70
                     . 'alignright alignjustify | bullist numlist outdent indent | link image | code fullscreen',
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             'load' => new JsExpression('function (query, callback) {
102 102
                 if (!query.length) return callback();
103 103
                 $.ajax({
104
-                    url: "' . Url::to(['/post/ajax-search']) . '",
104
+                    url: "' . Url::to(['/post/ajax-search']).'",
105 105
                     type: "POST",
106 106
                     dataType: "json",
107 107
                     data: {
Please login to merge, or discard this patch.