Passed
Branch master (be24eb)
by Agiel Kurniawan
11:45
created
common/models/Post.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models;
9 9
 
Please login to merge, or discard this 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/PostComment.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models;
9 9
 
Please login to merge, or discard this patch.
common/models/PostMeta.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models;
9 9
 
Please login to merge, or discard this patch.
common/models/PostType.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models;
9 9
 
Please login to merge, or discard this patch.
common/models/PostTypeTaxonomy.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models;
9 9
 
Please login to merge, or discard this patch.
common/models/SignupForm.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models;
9 9
 
Please login to merge, or discard this patch.
common/models/Taxonomy.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models;
9 9
 
Please login to merge, or discard this patch.
common/models/Term.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models;
9 9
 
Please login to merge, or discard this patch.
common/models/TermRelationship.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models;
9 9
 
Please login to merge, or discard this patch.