@@ -1,9 +1,9 @@ |
||
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 |
@@ -316,7 +316,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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}; |
@@ -1,9 +1,9 @@ |
||
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 |
@@ -1,9 +1,9 @@ |
||
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 |
@@ -1,9 +1,9 @@ |
||
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 |
@@ -1,9 +1,9 @@ |
||
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 |
@@ -1,9 +1,9 @@ |
||
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 |
@@ -1,9 +1,9 @@ |
||
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 |
@@ -1,9 +1,9 @@ |
||
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 |
@@ -1,9 +1,9 @@ |
||
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 |