Passed
Branch master (be24eb)
by Agiel Kurniawan
11:45
created
backend/views/widget/_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 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) {
Please login to merge, or discard this patch.
common/models/BaseComment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             [
60 60
                 ['author', 'email'],
61 61
                 'required',
62
-                'when' => function () {
62
+                'when' => function() {
63 63
                     return Option::get('require_name_email') && Yii::$app->user->isGuest ? true : false;
64 64
                 },
65 65
             ],
Please login to merge, or discard this patch.
common/models/Post.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 
317 317
         if ($sameTerm) {
318 318
             $query->innerJoinWith([
319
-                'terms' => function ($query) {
319
+                'terms' => function($query) {
320 320
                     /* @var $query \yii\db\ActiveQuery */
321 321
                     $query->from(['term' => Term::tableName()])->andWhere([
322 322
                         'IN',
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
     public function getNextPostLink($title = '{title}', $sameType = true, $sameTerm = false, $options = [])
341 341
     {
342 342
         if ($nextPost = $this->getNextPost($sameType, $sameTerm)) {
343
-            $title = preg_replace_callback('/\\{([\w\-\/]+)\\}/', function ($matches) use ($nextPost) {
343
+            $title = preg_replace_callback('/\\{([\w\-\/]+)\\}/', function($matches) use ($nextPost) {
344 344
                 $attribute = $matches[1];
345 345
 
346 346
                 return $nextPost->{$attribute};
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 
373 373
         if ($sameTerm) {
374 374
             $query->innerJoinWith([
375
-                'terms' => function ($query) {
375
+                'terms' => function($query) {
376 376
                     /* @var $query \yii\db\ActiveQuery */
377 377
                     $query->from(['term' => Term::tableName()])->andWhere([
378 378
                         'IN',
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
     public function getPrevPostLink($title = '{title}', $sameType = true, $sameTerm = false, $options = [])
397 397
     {
398 398
         if ($prevPost = $this->getPrevPost($sameType, $sameTerm)) {
399
-            $title = preg_replace_callback('/\\{([\w\-\/]+)\\}/', function ($matches) use ($prevPost) {
399
+            $title = preg_replace_callback('/\\{([\w\-\/]+)\\}/', function($matches) use ($prevPost) {
400 400
                 $attribute = $matches[1];
401 401
 
402 402
                 return $prevPost->{$attribute};
Please login to merge, or discard this patch.
common/models/search/Media.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     {
67 67
         $query = MediaModel::find();
68 68
         $query->innerJoinWith([
69
-            'mediaAuthor' => function ($query) {
69
+            'mediaAuthor' => function($query) {
70 70
                 /* @var $query \yii\db\ActiveQuery */
71 71
                 return $query->from(['user' => User::tableName()]);
72 72
             },
Please login to merge, or discard this patch.
common/models/search/MediaComment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     {
52 52
         $query = MediaCommentModel::find();
53 53
         $query->innerJoinWith([
54
-            'commentMedia' => function ($query) {
54
+            'commentMedia' => function($query) {
55 55
                 /* @var $query \yii\db\ActiveQuery */
56 56
                 return $query->from(['media' => Media::tableName()]);
57 57
             },
Please login to merge, or discard this patch.
common/models/search/PostComment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $query = PostCommentModel::find();
55 55
 
56 56
         $query->innerJoinWith([
57
-            'commentPost' => function ($query) {
57
+            'commentPost' => function($query) {
58 58
                 /* @var $query \yii\db\ActiveQuery */
59 59
                 return $query->from(['post' => Post::tableName()]);
60 60
             },
Please login to merge, or discard this patch.
frontend/views/post/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                 <footer class="footer-meta">
70 70
                     <?php $tags = $post->getTerms()
71 71
                         ->innerJoinWith([
72
-                            'taxonomy' => function ($query) {
72
+                            'taxonomy' => function($query) {
73 73
                                 /** @var $query \yii\db\ActiveQuery */
74 74
                                 return $query->from(['taxonomy' => Taxonomy::tableName()]);
75 75
                             },
Please login to merge, or discard this patch.
frontend/views/post/protected.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
 ];
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
                     },
Please login to merge, or discard this patch.