@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Pterodactyl\Exceptions; |
| 4 | 4 | |
| 5 | -use Log; |
|
| 6 | 5 | use Exception; |
| 7 | 6 | use Illuminate\Auth\AuthenticationException; |
| 8 | 7 | use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | |
| 27 | 27 | use DB; |
| 28 | 28 | use Crypt; |
| 29 | -use Config; |
|
| 30 | 29 | use Validator; |
| 31 | 30 | use Pterodactyl\Models\Server; |
| 32 | 31 | use Pterodactyl\Models\Database; |
@@ -26,13 +26,11 @@ |
||
| 26 | 26 | namespace Pterodactyl\Http\Controllers\Auth; |
| 27 | 27 | |
| 28 | 28 | use Auth; |
| 29 | -use Alert; |
|
| 30 | 29 | use Cache; |
| 31 | 30 | use Crypt; |
| 32 | 31 | use Illuminate\Http\Request; |
| 33 | 32 | use Pterodactyl\Models\User; |
| 34 | 33 | use PragmaRX\Google2FA\Google2FA; |
| 35 | -use Pterodactyl\Events\Auth\FailedLogin; |
|
| 36 | 34 | use Pterodactyl\Http\Controllers\Controller; |
| 37 | 35 | use Illuminate\Foundation\Auth\AuthenticatesUsers; |
| 38 | 36 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | /** |
| 151 | 151 | * Returns non-administrative headers for accessing a server on the daemon. |
| 152 | 152 | * |
| 153 | - * @param Pterodactyl\Models\User|null $user |
|
| 153 | + * @param null|User $user |
|
| 154 | 154 | * @return array |
| 155 | 155 | */ |
| 156 | 156 | public function guzzleHeaders(User $user = null) |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | /** |
| 171 | 171 | * Return an instance of the Guzzle client for this specific server using defined access token. |
| 172 | 172 | * |
| 173 | - * @param Pterodactyl\Models\User|null $user |
|
| 173 | + * @param null|User $user |
|
| 174 | 174 | * @return \GuzzleHttp\Client |
| 175 | 175 | */ |
| 176 | 176 | public function guzzleClient(User $user = null) |
@@ -27,8 +27,6 @@ |
||
| 27 | 27 | use Cron; |
| 28 | 28 | use Carbon; |
| 29 | 29 | use Pterodactyl\Models\Task; |
| 30 | -use Pterodactyl\Models\User; |
|
| 31 | -use Pterodactyl\Models\Server; |
|
| 32 | 30 | use Pterodactyl\Models\TaskLog; |
| 33 | 31 | use Illuminate\Queue\SerializesModels; |
| 34 | 32 | use Illuminate\Queue\InteractsWithQueue; |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | * Sends a power option to the daemon. |
| 63 | 63 | * |
| 64 | 64 | * @param string $action |
| 65 | - * @return string |
|
| 65 | + * @return \Psr\Http\Message\StreamInterface |
|
| 66 | 66 | * |
| 67 | 67 | * @throws \GuzzleHttp\Exception\RequestException |
| 68 | 68 | * @throws \Pterodactyl\Exceptions\DisplayException |