@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * Lists all Dashboard models. |
| 57 | - * @return mixed |
|
| 57 | + * @return string |
|
| 58 | 58 | */ |
| 59 | 59 | public function actionIndex() |
| 60 | 60 | { |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * Displays a single Dashboard model. |
| 72 | 72 | * @param string $id |
| 73 | 73 | * |
| 74 | - * @return mixed |
|
| 74 | + * @return string |
|
| 75 | 75 | */ |
| 76 | 76 | public function actionView($id) |
| 77 | 77 | { |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * Deletes an existing Dashboard model. |
| 130 | 130 | * If deletion is successful, the browser will be redirected to the 'index' page. |
| 131 | 131 | * @param string $id |
| 132 | - * @return mixed |
|
| 132 | + * @return \yii\web\Response |
|
| 133 | 133 | */ |
| 134 | 134 | public function actionDelete($id) |
| 135 | 135 | { |
@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace cornernote\dashboard\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 6 | +use cornernote\dashboard\Module; |
|
| 7 | +use cornernote\dashboard\components\DashboardAccess; |
|
| 5 | 8 | use cornernote\dashboard\models\Dashboard; |
| 6 | 9 | use cornernote\dashboard\models\search\DashboardSearch; |
| 7 | -use cornernote\dashboard\Module; |
|
| 8 | 10 | use yii\filters\AccessControl; |
| 9 | 11 | use yii\web\Controller; |
| 10 | -use Yii; |
|
| 11 | 12 | use yii\web\HttpException; |
| 12 | -use cornernote\dashboard\components\DashboardAccess; |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * DashboardController implements the CRUD actions for Dashboard model. |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | * Deletes an existing DashboardPanel model. |
| 93 | 93 | * If deletion is successful, the browser will be redirected to the 'index' page. |
| 94 | 94 | * @param string $id |
| 95 | - * @return mixed |
|
| 95 | + * @return \yii\web\Response |
|
| 96 | 96 | */ |
| 97 | 97 | public function actionDelete($id) |
| 98 | 98 | { |
@@ -2,14 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace cornernote\dashboard\controllers; |
| 4 | 4 | |
| 5 | -use cornernote\dashboard\models\DashboardPanel; |
|
| 6 | -use cornernote\dashboard\models\search\DashboardPanelSearch; |
|
| 5 | +use Yii; |
|
| 7 | 6 | use cornernote\dashboard\Module; |
| 7 | +use cornernote\dashboard\components\DashboardPanelAccess; |
|
| 8 | +use cornernote\dashboard\models\DashboardPanel; |
|
| 8 | 9 | use yii\filters\AccessControl; |
| 9 | 10 | use yii\web\Controller; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\web\HttpException; |
| 12 | -use cornernote\dashboard\components\DashboardPanelAccess; |
|
| 13 | 12 | |
| 14 | 13 | /** |
| 15 | 14 | * DashboardPanelController implements the CRUD actions for DashboardPanel model. |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace cornernote\dashboard\models\query; |
| 4 | 4 | |
| 5 | -use yii\db\ActiveQuery; |
|
| 6 | -use cornernote\dashboard\models\DashboardPanel; |
|
| 7 | 5 | use cornernote\dashboard\components; |
| 6 | +use cornernote\dashboard\models\DashboardPanel; |
|
| 7 | +use yii\db\ActiveQuery; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * This is the ActiveQuery class for [[\cornernote\dashboard\models\DashboardPanel]]. |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace cornernote\dashboard\models\query; |
| 4 | 4 | |
| 5 | -use yii\db\ActiveQuery; |
|
| 6 | 5 | use cornernote\dashboard\models\Dashboard; |
| 6 | +use yii\db\ActiveQuery; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * This is the ActiveQuery class for [[\cornernote\dashboard\models\Dashboard]]. |