@@ -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 | { |
@@ -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) |
@@ -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 | { |
@@ -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) |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * @param null $slug Post slug |
76 | 76 | * @param integer $id Post ID |
77 | 77 | * @throws \yii\web\NotFoundHttpException |
78 | - * @return mixed |
|
78 | + * @return string |
|
79 | 79 | */ |
80 | 80 | public function actionView($id = null, $slug = null) |
81 | 81 | { |
@@ -162,9 +162,9 @@ discard block |
||
162 | 162 | * Finds the Post model based on its primary key value. |
163 | 163 | * If the model is not found, a 404 HTTP exception will be thrown. |
164 | 164 | * |
165 | - * @param $id |
|
165 | + * @param integer $id |
|
166 | 166 | * @throws \yii\web\NotFoundHttpException |
167 | - * @return PostType the loaded model |
|
167 | + * @return string the loaded model |
|
168 | 168 | */ |
169 | 169 | protected function findPostType($id) |
170 | 170 | { |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * |
184 | 184 | * @param string $slug Post type slug |
185 | 185 | * @throws \yii\web\NotFoundHttpException |
186 | - * @return PostType the loaded model |
|
186 | + * @return string the loaded model |
|
187 | 187 | */ |
188 | 188 | protected function findPostTypeBySlug($slug) |
189 | 189 | { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @param integer $id Term ID |
29 | 29 | * @param null $slug Term slug |
30 | 30 | * @throws \yii\web\NotFoundHttpException |
31 | - * @return mixed |
|
31 | + * @return string |
|
32 | 32 | */ |
33 | 33 | public function actionView($id = null, $slug = null) |
34 | 34 | { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * If the model is not found, a 404 HTTP exception will be thrown. |
72 | 72 | * |
73 | 73 | * @param integer $id Term ID |
74 | - * @return Term the loaded model |
|
74 | + * @return string the loaded model |
|
75 | 75 | * @throws NotFoundHttpException if the model cannot be found |
76 | 76 | */ |
77 | 77 | protected function findModel($id) |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * @param string $slug Term Slug |
93 | 93 | * @throws \yii\web\NotFoundHttpException |
94 | 94 | * @internal param string $postslug |
95 | - * @return Term the loaded model |
|
95 | + * @return string the loaded model |
|
96 | 96 | */ |
97 | 97 | protected function findModelBySlug($slug) |
98 | 98 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * |
28 | 28 | * @param null $id User ID |
29 | 29 | * @param string|null $user Username |
30 | - * @return mixed |
|
30 | + * @return string |
|
31 | 31 | * @throws \yii\web\NotFoundHttpException |
32 | 32 | */ |
33 | 33 | public function actionView($id = null, $user = null) |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * If the model is not found, a 404 HTTP exception will be thrown. |
75 | 75 | * |
76 | 76 | * @param int $id User ID |
77 | - * @return User the loaded model |
|
77 | + * @return string the loaded model |
|
78 | 78 | * @throws NotFoundHttpException if the model cannot be found |
79 | 79 | */ |
80 | 80 | protected function findModel($id) |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * If the model is not found, a 404 HTTP exception will be thrown. |
92 | 92 | * |
93 | 93 | * @param string $username Username |
94 | - * @return User the loaded model |
|
94 | + * @return string the loaded model |
|
95 | 95 | * @throws NotFoundHttpException if the model cannot be found |
96 | 96 | */ |
97 | 97 | protected function findModelByUsername($username) |