Completed
Push — master ( fb7a26...d5e2d7 )
by Agiel Kurniawan
04:29
created
themes/writesdown/media/view.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@
 block discarded – undo
50 50
                 </span>
51 51
                 <span class="comments-link">
52 52
                      <a title="<?= Yii::t(
53
-                         'writesdown', 'Comment on {mediaTitle}',
54
-                         ['mediaTitle' => $media->title]
55
-                     ) ?>" href="<?= $media->url ?>#respond"><?= Yii::t('writesdown', 'Leave a comment') ?></a>
53
+                            'writesdown', 'Comment on {mediaTitle}',
54
+                            ['mediaTitle' => $media->title]
55
+                        ) ?>" href="<?= $media->url ?>#respond"><?= Yii::t('writesdown', 'Leave a comment') ?></a>
56 56
                 </span>
57 57
             </div>
58 58
         </header>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 /* @var $metadata [] */
16 16
 /* @var $comment common\models\MediaComment */
17 17
 
18
-$this->title = Html::encode($media->title . ' - ' . Option::get('sitetitle'));
18
+$this->title = Html::encode($media->title.' - '.Option::get('sitetitle'));
19 19
 
20 20
 if ($media->mediaPost) {
21 21
     $this->params['breadcrumbs'][] = [
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         <div class="entry-content">
64 64
             <?= $media->content ?>
65 65
 
66
-            <?= Html::a($media->title, $media->uploadUrl . $metadata['versions']['full']['url']) ?>
66
+            <?= Html::a($media->title, $media->uploadUrl.$metadata['versions']['full']['url']) ?>
67 67
 
68 68
             <?= $media->mediaPost
69 69
                 ? Html::tag('h3', Html::a('<span aria-hidden="true" class="glyphicon glyphicon-menu-left"></span>'
Please login to merge, or discard this patch.
themes/writesdown/user/view.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 /* @var $pages yii\data\Pagination */
20 20
 
21 21
 $this->title = Html::encode(Yii::t('writesdown', 'All Posts By {user}', ['user' => $user->display_name])
22
-    . ' - ' . Option::get('sitetitle'));
22
+    . ' - '.Option::get('sitetitle'));
23 23
 $this->params['breadcrumbs'][] = Html::encode(Yii::t('writesdown', 'All Posts by {user}',
24 24
     ['user' => $user->display_name]));
25 25
 ?>
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                         <footer class="footer-meta">
81 81
                             <?php $tags = $post->getTerms()
82 82
                                 ->innerJoinWith([
83
-                                    'taxonomy' => function ($query) {
83
+                                    'taxonomy' => function($query) {
84 84
                                         /** @var $query \yii\db\ActiveQuery */
85 85
                                         return $query->from(['taxonomy' => Taxonomy::tableName()]);
86 86
                                     },
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                             <?php if ($tags): ?>
92 92
                                 <h3>
93 93
                                     <?php foreach ($tags as $tag): ?>
94
-                                        <?= Html::a($tag->name, $tag->url, ['class' => 'badge']) . "\n" ?>
94
+                                        <?= Html::a($tag->name, $tag->url, ['class' => 'badge'])."\n" ?>
95 95
                                     <?php endforeach ?>
96 96
                                 </h3>
97 97
                             <?php endif ?>
Please login to merge, or discard this patch.
environments/dev/public/admin/index.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,16 +2,16 @@
 block discarded – undo
2 2
 defined('YII_DEBUG') or define('YII_DEBUG', true);
3 3
 defined('YII_ENV') or define('YII_ENV', 'dev');
4 4
 
5
-require(__DIR__ . '/../../vendor/autoload.php');
6
-require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
7
-require(__DIR__ . '/../../common/config/bootstrap.php');
8
-require(__DIR__ . '/../../backend/config/bootstrap.php');
5
+require(__DIR__.'/../../vendor/autoload.php');
6
+require(__DIR__.'/../../vendor/yiisoft/yii2/Yii.php');
7
+require(__DIR__.'/../../common/config/bootstrap.php');
8
+require(__DIR__.'/../../backend/config/bootstrap.php');
9 9
 
10 10
 $config = yii\helpers\ArrayHelper::merge(
11
-    require(__DIR__ . '/../../common/config/main.php'),
12
-    require(__DIR__ . '/../../common/config/main-local.php'),
13
-    require(__DIR__ . '/../../backend/config/main.php'),
14
-    require(__DIR__ . '/../../backend/config/main-local.php')
11
+    require(__DIR__.'/../../common/config/main.php'),
12
+    require(__DIR__.'/../../common/config/main-local.php'),
13
+    require(__DIR__.'/../../backend/config/main.php'),
14
+    require(__DIR__.'/../../backend/config/main-local.php')
15 15
 );
16 16
 
17 17
 $application = new yii\web\Application($config);
Please login to merge, or discard this patch.
environments/dev/public/admin/index-test.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@
 block discarded – undo
8 8
 defined('YII_DEBUG') or define('YII_DEBUG', true);
9 9
 defined('YII_ENV') or define('YII_ENV', 'test');
10 10
 
11
-require(__DIR__ . '/../../vendor/autoload.php');
12
-require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
13
-require(__DIR__ . '/../../common/config/bootstrap.php');
14
-require(__DIR__ . '/../../backend/config/bootstrap.php');
11
+require(__DIR__.'/../../vendor/autoload.php');
12
+require(__DIR__.'/../../vendor/yiisoft/yii2/Yii.php');
13
+require(__DIR__.'/../../common/config/bootstrap.php');
14
+require(__DIR__.'/../../backend/config/bootstrap.php');
15 15
 
16 16
 
17
-$config = require(__DIR__ . '/../../tests/codeception/config/backend/acceptance.php');
17
+$config = require(__DIR__.'/../../tests/codeception/config/backend/acceptance.php');
18 18
 
19 19
 (new yii\web\Application($config))->run();
Please login to merge, or discard this patch.
environments/dev/public/index.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,16 +2,16 @@
 block discarded – undo
2 2
 defined('YII_DEBUG') or define('YII_DEBUG', true);
3 3
 defined('YII_ENV') or define('YII_ENV', 'dev');
4 4
 
5
-require(__DIR__ . '/../vendor/autoload.php');
6
-require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
7
-require(__DIR__ . '/../common/config/bootstrap.php');
8
-require(__DIR__ . '/../frontend/config/bootstrap.php');
5
+require(__DIR__.'/../vendor/autoload.php');
6
+require(__DIR__.'/../vendor/yiisoft/yii2/Yii.php');
7
+require(__DIR__.'/../common/config/bootstrap.php');
8
+require(__DIR__.'/../frontend/config/bootstrap.php');
9 9
 
10 10
 $config = yii\helpers\ArrayHelper::merge(
11
-    require(__DIR__ . '/../common/config/main.php'),
12
-    require(__DIR__ . '/../common/config/main-local.php'),
13
-    require(__DIR__ . '/../frontend/config/main.php'),
14
-    require(__DIR__ . '/../frontend/config/main-local.php')
11
+    require(__DIR__.'/../common/config/main.php'),
12
+    require(__DIR__.'/../common/config/main-local.php'),
13
+    require(__DIR__.'/../frontend/config/main.php'),
14
+    require(__DIR__.'/../frontend/config/main-local.php')
15 15
 );
16 16
 
17 17
 $application = new yii\web\Application($config);
Please login to merge, or discard this patch.
environments/dev/public/index-test.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 defined('YII_DEBUG') or define('YII_DEBUG', true);
9 9
 defined('YII_ENV') or define('YII_ENV', 'test');
10 10
 
11
-require(__DIR__ . '/../vendor/autoload.php');
12
-require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
13
-require(__DIR__ . '/../common/config/bootstrap.php');
14
-require(__DIR__ . '/../frontend/config/bootstrap.php');
11
+require(__DIR__.'/../vendor/autoload.php');
12
+require(__DIR__.'/../vendor/yiisoft/yii2/Yii.php');
13
+require(__DIR__.'/../common/config/bootstrap.php');
14
+require(__DIR__.'/../frontend/config/bootstrap.php');
15 15
 
16
-$config = require(__DIR__ . '/../tests/codeception/config/frontend/acceptance.php');
16
+$config = require(__DIR__.'/../tests/codeception/config/frontend/acceptance.php');
17 17
 
18 18
 (new yii\web\Application($config))->run();
Please login to merge, or discard this patch.
frontend/controllers/SiteController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@
 block discarded – undo
90 90
             $comment = new PostComment();
91 91
             $query = $query->andWhere(['id' => $frontPage]);
92 92
             if ($post = $query->one()) {
93
-                if (is_file($this->view->theme->basePath . '/post/view-' . $post->postType->slug . '.php')) {
94
-                    $render = '/post/view-' . $post->postType->slug;
93
+                if (is_file($this->view->theme->basePath.'/post/view-'.$post->postType->slug.'.php')) {
94
+                    $render = '/post/view-'.$post->postType->slug;
95 95
                 }
96 96
 
97 97
                 return $this->render($render, [
Please login to merge, or discard this patch.
frontend/views/post/protected.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@
 block discarded – undo
16 16
 /* @var $comment common\models\PostComment */
17 17
 /* @var $category common\models\Term */
18 18
 
19
-$this->title = Html::encode($post->title . ' - ' . Option::get('sitetitle'));
19
+$this->title = Html::encode($post->title.' - '.Option::get('sitetitle'));
20 20
 $this->params['breadcrumbs'][] = [
21 21
     'label' => Html::encode($post->postType->singular_name),
22 22
     'url' => ['/post/index', 'id' => $post->postType->id],
23 23
 ];
24 24
 $category = $post->getTerms()
25 25
     ->innerJoinWith([
26
-        'taxonomy' => function ($query) {
26
+        'taxonomy' => function($query) {
27 27
             /* @var $query \yii\db\ActiveQuery */
28 28
             $query->from(['taxonomy' => Taxonomy::tableName()]);
29 29
         },
Please login to merge, or discard this patch.
frontend/views/post/view.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@  discard block
 block discarded – undo
17 17
 /* @var $category common\models\Term */
18 18
 /* @var $tags common\models\Term[] */
19 19
 
20
-$this->title = Html::encode($post->title . ' - ' . Option::get('sitetitle'));
20
+$this->title = Html::encode($post->title.' - '.Option::get('sitetitle'));
21 21
 $this->params['breadcrumbs'][] = [
22 22
     'label' => Html::encode($post->postType->singular_name),
23 23
     'url' => ['/post/index', 'id' => $post->postType->id],
24 24
 ];
25 25
 $category = $post->getTerms()
26 26
     ->innerJoinWith([
27
-        'taxonomy' => function ($query) {
27
+        'taxonomy' => function($query) {
28 28
             /* @var $query \yii\db\ActiveQuery */
29 29
             $query->from(['taxonomy' => Taxonomy::tableName()]);
30 30
         },
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         <footer class="footer-meta">
82 82
             <?php $tags = $post->getTerms()
83 83
                 ->innerJoinWith([
84
-                    'taxonomy' => function ($query) {
84
+                    'taxonomy' => function($query) {
85 85
                         /** @var $query \yii\db\ActiveQuery */
86 86
                         return $query->from(['taxonomy' => Taxonomy::tableName()]);
87 87
                     },
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             <?php if ($tags): ?>
93 93
                 <h3>
94 94
                     <?php foreach ($tags as $tag): ?>
95
-                        <?= Html::a($tag->name, $tag->url, ['class' => 'btn btn-xs btn-success']) . "\n" ?>
95
+                        <?= Html::a($tag->name, $tag->url, ['class' => 'btn btn-xs btn-success'])."\n" ?>
96 96
                     <?php endforeach ?>
97 97
                 </h3>
98 98
             <?php endif ?>
Please login to merge, or discard this patch.