@@ -115,6 +115,9 @@ |
||
115 | 115 | } |
116 | 116 | } |
117 | 117 | |
118 | + /** |
|
119 | + * @param string $command |
|
120 | + */ |
|
118 | 121 | protected function action($command, $params = []) |
119 | 122 | { |
120 | 123 | echo "\nRunning action '$command'...\n"; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @param array $params |
26 | 26 | * @param bool|true $allowCaching |
27 | 27 | * |
28 | - * @return bool |
|
28 | + * @return boolean|null |
|
29 | 29 | */ |
30 | 30 | public function can($permissionName, $params = [], $allowCaching = true) |
31 | 31 | { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | /** |
46 | 46 | * Checks permissions from guest role, when no user is logged in. |
47 | 47 | * |
48 | - * @param $permissionName |
|
48 | + * @param string $permissionName |
|
49 | 49 | * @param $params |
50 | 50 | * @param $allowCaching |
51 | 51 | * |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * Splits `permissionName` by underscore and match parts against more global rule |
65 | 65 | * eg. a permission `app_site` will match, `app_site_foo` |
66 | 66 | * |
67 | - * @param $permissionName |
|
67 | + * @param string $permissionName |
|
68 | 68 | * @param $params |
69 | 69 | * @param $allowCaching |
70 | 70 | * |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | /** |
45 | 45 | * Lists all Less models. |
46 | - * @return mixed |
|
46 | + * @return string |
|
47 | 47 | */ |
48 | 48 | public function actionIndex() |
49 | 49 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * Displays a single Less model. |
66 | 66 | * @param integer $id |
67 | 67 | * |
68 | - * @return mixed |
|
68 | + * @return string |
|
69 | 69 | */ |
70 | 70 | public function actionView($id) |
71 | 71 | { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * Deletes an existing Less model. |
124 | 124 | * If deletion is successful, the browser will be redirected to the 'index' page. |
125 | 125 | * @param integer $id |
126 | - * @return mixed |
|
126 | + * @return \yii\web\Response |
|
127 | 127 | */ |
128 | 128 | public function actionDelete($id) |
129 | 129 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | /** |
45 | 45 | * Lists all Less models. |
46 | - * @return mixed |
|
46 | + * @return string |
|
47 | 47 | */ |
48 | 48 | public function actionIndex() |
49 | 49 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * Displays a single Less model. |
66 | 66 | * @param integer $id |
67 | 67 | * |
68 | - * @return mixed |
|
68 | + * @return string |
|
69 | 69 | */ |
70 | 70 | public function actionView($id) |
71 | 71 | { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * Deletes an existing Less model. |
124 | 124 | * If deletion is successful, the browser will be redirected to the 'index' page. |
125 | 125 | * @param integer $id |
126 | - * @return mixed |
|
126 | + * @return \yii\web\Response |
|
127 | 127 | */ |
128 | 128 | public function actionDelete($id) |
129 | 129 | { |