@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * @param Response $response |
| 16 | 16 | * @param array $args |
| 17 | 17 | * |
| 18 | - * @return mixed |
|
| 18 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 19 | 19 | */ |
| 20 | 20 | public function actionIndex(Request $request, Response $response, $args) |
| 21 | 21 | { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * @param Response $response |
| 88 | 88 | * @param array $args |
| 89 | 89 | * |
| 90 | - * @return mixed |
|
| 90 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 91 | 91 | * @throws JsonException |
| 92 | 92 | */ |
| 93 | 93 | public function actionGet(Request $request, Response $response, $args) |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * @param Response $response |
| 111 | 111 | * @param array $args |
| 112 | 112 | * |
| 113 | - * @return mixed |
|
| 113 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 114 | 114 | * @throws JsonException |
| 115 | 115 | */ |
| 116 | 116 | public function actionCreate(Request $request, Response $response, $args) |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | * @param Response $response |
| 134 | 134 | * @param array $args |
| 135 | 135 | * |
| 136 | - * @return mixed |
|
| 136 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 137 | 137 | * @throws JsonException |
| 138 | 138 | */ |
| 139 | 139 | public function actionUpdate(Request $request, Response $response, $args) |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | * @param Response $response |
| 163 | 163 | * @param array $args |
| 164 | 164 | * |
| 165 | - * @return mixed |
|
| 165 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 166 | 166 | * @throws JsonException |
| 167 | 167 | */ |
| 168 | 168 | public function actionDelete(Request $request, Response $response, $args) |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @param Response $response |
| 20 | 20 | * @param array $args |
| 21 | 21 | * |
| 22 | - * @return mixed |
|
| 22 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 23 | 23 | * @throws JsonException |
| 24 | 24 | */ |
| 25 | 25 | public function actionCreate(Request $request, Response $response, $args) |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * @param Response $response |
| 49 | 49 | * @param array $args |
| 50 | 50 | * |
| 51 | - * @return mixed |
|
| 51 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 52 | 52 | * @throws JsonException |
| 53 | 53 | */ |
| 54 | 54 | public function actionUpdate(Request $request, Response $response, $args) |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * @param Response $response |
| 81 | 81 | * @param array $args |
| 82 | 82 | * |
| 83 | - * @return mixed |
|
| 83 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 84 | 84 | * @throws JsonException |
| 85 | 85 | */ |
| 86 | 86 | public function actionRequestResetPassword(Request $request, Response $response, $args) |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * @param Response $response |
| 127 | 127 | * @param array $args |
| 128 | 128 | * |
| 129 | - * @return mixed |
|
| 129 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 130 | 130 | * @throws JsonException |
| 131 | 131 | */ |
| 132 | 132 | public function actionResetPassword(Request $request, Response $response, $args) |
@@ -196,25 +196,25 @@ |
||
| 196 | 196 | */ |
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | - * @api {delete} /role/:id Удаление роли |
|
| 200 | - * @apiName DeleteRole |
|
| 201 | - * @apiGroup Role |
|
| 202 | - * |
|
| 203 | - * @apiDescription Метод для удаления роли. |
|
| 204 | - * |
|
| 205 | - * @apiPermission admin |
|
| 206 | - * |
|
| 207 | - * @apiParam {Number} id Id роли |
|
| 208 | - * |
|
| 209 | - * @apiHeader {String} Authorization Токен. |
|
| 210 | - * |
|
| 211 | - * @apiSuccessExample {json} Успешно (204) |
|
| 212 | - * HTTP/1.1 204 OK |
|
| 213 | - * |
|
| 214 | - * @apiUse UnauthorizedError |
|
| 215 | - * @apiUse StandardErrors |
|
| 216 | - * @apiUse NotFoundError |
|
| 217 | - */ |
|
| 199 | + * @api {delete} /role/:id Удаление роли |
|
| 200 | + * @apiName DeleteRole |
|
| 201 | + * @apiGroup Role |
|
| 202 | + * |
|
| 203 | + * @apiDescription Метод для удаления роли. |
|
| 204 | + * |
|
| 205 | + * @apiPermission admin |
|
| 206 | + * |
|
| 207 | + * @apiParam {Number} id Id роли |
|
| 208 | + * |
|
| 209 | + * @apiHeader {String} Authorization Токен. |
|
| 210 | + * |
|
| 211 | + * @apiSuccessExample {json} Успешно (204) |
|
| 212 | + * HTTP/1.1 204 OK |
|
| 213 | + * |
|
| 214 | + * @apiUse UnauthorizedError |
|
| 215 | + * @apiUse StandardErrors |
|
| 216 | + * @apiUse NotFoundError |
|
| 217 | + */ |
|
| 218 | 218 | final class RoleSchema extends BaseSchema |
| 219 | 219 | { |
| 220 | 220 | protected $resourceType = 'role'; |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @param Request $request |
| 54 | 54 | * @param Response $response |
| 55 | 55 | * |
| 56 | - * @return mixed |
|
| 56 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 57 | 57 | * @throws JsonException |
| 58 | 58 | */ |
| 59 | 59 | public function getToken(Request $request, Response $response) |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * @param Request $request |
| 114 | 114 | * @param Response $response |
| 115 | 115 | * |
| 116 | - * @return mixed |
|
| 116 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 117 | 117 | * @throws JsonException |
| 118 | 118 | */ |
| 119 | 119 | public function refreshToken(Request $request, Response $response) |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | class CreateUsersTable |
| 5 | 5 | { |
| 6 | 6 | /** |
| 7 | - * Do the migration |
|
| 8 | - */ |
|
| 7 | + * Do the migration |
|
| 8 | + */ |
|
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | 11 | Capsule::schema()->create('users', function($table) |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * Undo the migration |
|
| 30 | - */ |
|
| 29 | + * Undo the migration |
|
| 30 | + */ |
|
| 31 | 31 | public function down() |
| 32 | 32 | { |
| 33 | 33 | Capsule::schema()->drop('users'); |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | class CreateLogsTable |
| 5 | 5 | { |
| 6 | 6 | /** |
| 7 | - * Do the migration |
|
| 8 | - */ |
|
| 7 | + * Do the migration |
|
| 8 | + */ |
|
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | 11 | Capsule::schema()->create('logs', function($table) |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * Undo the migration |
|
| 25 | - */ |
|
| 24 | + * Undo the migration |
|
| 25 | + */ |
|
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | 28 | Capsule::schema()->drop('logs'); |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | class CreateAccessTokensTable{ |
| 5 | 5 | /** |
| 6 | - * Do the migration |
|
| 7 | - */ |
|
| 6 | + * Do the migration |
|
| 7 | + */ |
|
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | 10 | Capsule::schema()->create('access_tokens', function($table) |
@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * Undo the migration |
|
| 22 | - */ |
|
| 21 | + * Undo the migration |
|
| 22 | + */ |
|
| 23 | 23 | public function down() |
| 24 | 24 | { |
| 25 | 25 | Capsule::schema()->drop('access_tokens'); |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | class CreateRolesToRightTable |
| 5 | 5 | { |
| 6 | 6 | /** |
| 7 | - * Do the migration |
|
| 8 | - */ |
|
| 7 | + * Do the migration |
|
| 8 | + */ |
|
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | 11 | Capsule::schema()->create('roles_to_rights', function($table) |
@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * Undo the migration |
|
| 22 | - */ |
|
| 21 | + * Undo the migration |
|
| 22 | + */ |
|
| 23 | 23 | public function down() |
| 24 | 24 | { |
| 25 | 25 | Capsule::schema()->drop('roles_to_rights'); |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | class CreateRightsTable |
| 5 | 5 | { |
| 6 | 6 | /** |
| 7 | - * Do the migration |
|
| 8 | - */ |
|
| 7 | + * Do the migration |
|
| 8 | + */ |
|
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | 11 | Capsule::schema()->create('rights', function($table) |
@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | - * Undo the migration |
|
| 26 | - */ |
|
| 25 | + * Undo the migration |
|
| 26 | + */ |
|
| 27 | 27 | public function down() |
| 28 | 28 | { |
| 29 | 29 | Capsule::schema()->drop('rights'); |