@@ -2,7 +2,8 @@ |
||
| 2 | 2 | use App\Model\Role; |
| 3 | 3 | use App\Model\User; |
| 4 | 4 | |
| 5 | -class CreateRolesRightsUsers { |
|
| 5 | +class CreateRolesRightsUsers |
|
| 6 | +{ |
|
| 6 | 7 | public function run() |
| 7 | 8 | { |
| 8 | 9 | Role::create([ |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | * @param Response $response |
| 112 | 112 | * @param array $args |
| 113 | 113 | * |
| 114 | - * @return mixed |
|
| 114 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 115 | 115 | * @throws JsonException |
| 116 | 116 | */ |
| 117 | 117 | public function actionCreate(Request $request, Response $response, $args) |
@@ -20,7 +20,8 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * Undo the migration |
| 22 | 22 | */ |
| 23 | - public function down() { |
|
| 23 | + public function down() |
|
| 24 | + { |
|
| 24 | 25 | Capsule::schema()->drop('refresh_tokens'); |
| 25 | 26 | } |
| 26 | 27 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * @param User $user |
| 71 | - * @param $host |
|
| 71 | + * @param string $host |
|
| 72 | 72 | * @param array $settings |
| 73 | 73 | * |
| 74 | 74 | * @return string |