@@ -75,7 +75,7 @@ |
||
75 | 75 | /** |
76 | 76 | * Scan widget directory to get list of all available widgets and list all active widgets. |
77 | 77 | * |
78 | - * @return mixed |
|
78 | + * @return string |
|
79 | 79 | */ |
80 | 80 | public function actionIndex() |
81 | 81 | { |
@@ -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 backend\controllers; |
9 | 9 |
@@ -8,7 +8,6 @@ |
||
8 | 8 | namespace backend\widgets; |
9 | 9 | |
10 | 10 | use common\models\MenuItem; |
11 | -use Yii; |
|
12 | 11 | use yii\base\Widget; |
13 | 12 | use yii\helpers\Html; |
14 | 13 |
@@ -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 backend\widgets; |
9 | 9 |
@@ -141,8 +141,8 @@ discard block |
||
141 | 141 | /** |
142 | 142 | * Get server var based on id. Return null when it's not exist. |
143 | 143 | * |
144 | - * @param $id |
|
145 | - * @return mixed |
|
144 | + * @param string $id |
|
145 | + * @return string |
|
146 | 146 | */ |
147 | 147 | protected function getServerVar($id) |
148 | 148 | { |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | * If the model is not found it will return null. |
209 | 209 | * |
210 | 210 | * @param integer $id |
211 | - * @return Media|array |
|
211 | + * @return Media |
|
212 | 212 | */ |
213 | 213 | protected function findMedia($id) |
214 | 214 | { |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | * The number before fileName extension is replaced by upCountNameCallback. |
332 | 332 | * |
333 | 333 | * @param string $fileName |
334 | - * @return mixed |
|
334 | + * @return string |
|
335 | 335 | * @see upCountNameCallback |
336 | 336 | */ |
337 | 337 | protected function upCountName($fileName) |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | } |
411 | 411 | |
412 | 412 | /** |
413 | - * @param $fileName |
|
413 | + * @param string $fileName |
|
414 | 414 | * @param $version |
415 | 415 | * @param $options |
416 | 416 | * @return bool|\imagine\Image\ManipulatorInterface |
@@ -570,7 +570,7 @@ discard block |
||
570 | 570 | } |
571 | 571 | |
572 | 572 | /** |
573 | - * @param $pages Pagination |
|
573 | + * @param Pagination $pages Pagination |
|
574 | 574 | * @return array |
575 | 575 | */ |
576 | 576 | protected function getPaging($pages) |
@@ -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\components; |
9 | 9 |
@@ -7,7 +7,6 @@ |
||
7 | 7 | |
8 | 8 | namespace common\models; |
9 | 9 | |
10 | -use Yii; |
|
11 | 10 | use yii\base\InvalidParamException; |
12 | 11 | use yii\base\Model; |
13 | 12 |
@@ -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 |
@@ -8,7 +8,6 @@ |
||
8 | 8 | namespace common\models\search; |
9 | 9 | |
10 | 10 | use common\models\MediaComment as MediaCommentModel; |
11 | -use Yii; |
|
12 | 11 | use yii\base\Model; |
13 | 12 | use yii\data\ActiveDataProvider; |
14 | 13 |
@@ -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\search; |
9 | 9 |
@@ -51,7 +51,7 @@ |
||
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 | }, |
@@ -8,7 +8,6 @@ |
||
8 | 8 | namespace common\models\search; |
9 | 9 | |
10 | 10 | use common\models\Post as PostModel; |
11 | -use Yii; |
|
12 | 11 | use yii\base\Model; |
13 | 12 | use yii\data\ActiveDataProvider; |
14 | 13 | use yii\helpers\ArrayHelper; |
@@ -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\search; |
9 | 9 |
@@ -8,7 +8,6 @@ |
||
8 | 8 | namespace common\models\search; |
9 | 9 | |
10 | 10 | use common\models\PostComment as PostCommentModel; |
11 | -use Yii; |
|
12 | 11 | use yii\base\Model; |
13 | 12 | use yii\data\ActiveDataProvider; |
14 | 13 |
@@ -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\search; |
9 | 9 |
@@ -54,7 +54,7 @@ |
||
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 | }, |
@@ -277,7 +277,7 @@ |
||
277 | 277 | /** |
278 | 278 | * Get array of user status. |
279 | 279 | * |
280 | - * @return array |
|
280 | + * @return string[] |
|
281 | 281 | */ |
282 | 282 | public function getStatuses() |
283 | 283 | { |
@@ -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 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * @param integer|null $id Media ID |
26 | 26 | * @param string|null $slug Media slug |
27 | - * @return mixed |
|
27 | + * @return string |
|
28 | 28 | * @throws \yii\web\NotFoundHttpException |
29 | 29 | */ |
30 | 30 | public function actionView($id = null, $slug = null) |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * If the model is not found, a 404 HTTP exception will be thrown. |
73 | 73 | * |
74 | 74 | * @param integer $id Media ID |
75 | - * @return Media the loaded model |
|
75 | + * @return string the loaded model |
|
76 | 76 | * @throws NotFoundHttpException if the model cannot be found |
77 | 77 | */ |
78 | 78 | protected function findModel($id) |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * If the model is not found, a 404 HTTP exception will be thrown. |
90 | 90 | * |
91 | 91 | * @param string $slug Media slug |
92 | - * @return Media the loaded model |
|
92 | + * @return string the loaded model |
|
93 | 93 | * @throws NotFoundHttpException if the model cannot be found |
94 | 94 | */ |
95 | 95 | protected function findModelBySlug($slug) |
@@ -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 frontend\controllers; |
9 | 9 |