@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | /** |
33 | 33 | * Lists all Post models. |
34 | - * @return mixed |
|
34 | + * @return string |
|
35 | 35 | */ |
36 | 36 | public function actionIndex() |
37 | 37 | { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * Displays a single Post model. |
54 | 54 | * @param integer $id |
55 | - * @return mixed |
|
55 | + * @return string |
|
56 | 56 | */ |
57 | 57 | public function actionView($id) |
58 | 58 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * Deletes an existing Post model. |
103 | 103 | * If deletion is successful, the browser will be redirected to the 'index' page. |
104 | 104 | * @param integer $id |
105 | - * @return mixed |
|
105 | + * @return \yii\web\Response |
|
106 | 106 | */ |
107 | 107 | public function actionDelete($id) |
108 | 108 | { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use yii\data\ActiveDataProvider; |
8 | 8 | use yii\web\Controller; |
9 | 9 | use yii\web\NotFoundHttpException; |
10 | -use yii\filters\VerbFilter; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * PostController implements the CRUD actions for Post model. |
@@ -2,10 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace zacksleo\yii2\post\models; |
4 | 4 | |
5 | -use common\helpers\files\File; |
|
6 | -use Yii; |
|
7 | 5 | use yii\helpers\Url; |
8 | -use yii\web\UploadedFile; |
|
9 | 6 | use yii\behaviors\TimestampBehavior; |
10 | 7 | use zacksleo\yii2\post\Module; |
11 | 8 | use zacksleo\yii2\post\behaviors\UploadBehavior; |