@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Pterodactyl\Exceptions; |
| 4 | 4 | |
| 5 | -use Log; |
|
| 6 | 5 | use Exception; |
| 7 | 6 | use DisplayException; |
| 8 | 7 | use Illuminate\Auth\AuthenticationException; |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | * Check if the provided user has TOTP enabled. |
| 142 | 142 | * |
| 143 | 143 | * @param \Illuminate\Http\Request $request |
| 144 | - * @return \Illuminate\Http\Response |
|
| 144 | + * @return \Illuminate\Http\JsonResponse |
|
| 145 | 145 | */ |
| 146 | 146 | public function checkTotp(Request $request) |
| 147 | 147 | { |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | /** |
| 91 | 91 | * Determines if a user has permissions. |
| 92 | 92 | * |
| 93 | - * @return bool |
|
| 93 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
| 94 | 94 | */ |
| 95 | 95 | public function permissions() |
| 96 | 96 | { |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | namespace Pterodactyl\Repositories\ServiceRepository; |
| 26 | 26 | |
| 27 | 27 | use DB; |
| 28 | -use Uuid; |
|
| 29 | 28 | use Storage; |
| 30 | 29 | use Validator; |
| 31 | 30 | use Pterodactyl\Models; |
@@ -47,10 +47,6 @@ discard block |
||
| 47 | 47 | /** |
| 48 | 48 | * Creates a user on the panel. Returns the created user's ID. |
| 49 | 49 | * |
| 50 | - * @param string $email |
|
| 51 | - * @param string|null $password An unhashed version of the user's password. |
|
| 52 | - * @param bool $admin Boolean value if user should be an admin or not. |
|
| 53 | - * @param int $token A custom user ID. |
|
| 54 | 50 | * @return bool|int |
| 55 | 51 | */ |
| 56 | 52 | public function create(array $data) |
@@ -167,7 +163,7 @@ discard block |
||
| 167 | 163 | * Deletes a user on the panel, returns the number of records deleted. |
| 168 | 164 | * |
| 169 | 165 | * @param int $id |
| 170 | - * @return int |
|
| 166 | + * @return boolean |
|
| 171 | 167 | */ |
| 172 | 168 | public function delete($id) |
| 173 | 169 | { |