@@ -33,7 +33,6 @@ discard block  | 
                                                    ||
| 33 | 33 | *  | 
                                                        
| 34 | 34 | * This is a great spot to send exceptions to Sentry, Bugsnag, etc.  | 
                                                        
| 35 | 35 | *  | 
                                                        
| 36 | - * @param \Exception $e  | 
                                                        |
| 37 | 36 | * @return void  | 
                                                        
| 38 | 37 | */  | 
                                                        
| 39 | 38 | public function report(Exception $exception)  | 
                                                        
@@ -45,7 +44,6 @@ discard block  | 
                                                    ||
| 45 | 44 | * Render an exception into an HTTP response.  | 
                                                        
| 46 | 45 | *  | 
                                                        
| 47 | 46 | * @param \Illuminate\Http\Request $request  | 
                                                        
| 48 | - * @param \Exception $e  | 
                                                        |
| 49 | 47 | * @return \Illuminate\Http\Response  | 
                                                        
| 50 | 48 | */  | 
                                                        
| 51 | 49 | public function render($request, Exception $exception)  | 
                                                        
@@ -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;  | 
                                                        
@@ -53,7 +53,7 @@ discard block  | 
                                                    ||
| 53 | 53 | * that they can generate a valid response.  | 
                                                        
| 54 | 54 | *  | 
                                                        
| 55 | 55 | * @param \Illuminate\Http\Request $request  | 
                                                        
| 56 | - * @return \Illuminate\Contracts\View\View  | 
                                                        |
| 56 | + * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 57 | 57 | */  | 
                                                        
| 58 | 58 | public function generateTotp(Request $request)  | 
                                                        
| 59 | 59 |      { | 
                                                        
@@ -100,7 +100,7 @@ discard block  | 
                                                    ||
| 100 | 100 | * Disables TOTP on an account.  | 
                                                        
| 101 | 101 | *  | 
                                                        
| 102 | 102 | * @param \Illuminate\Http\Request $request  | 
                                                        
| 103 | - * @return \Illuminate\Http\Response  | 
                                                        |
| 103 | + * @return \Illuminate\Http\RedirectResponse  | 
                                                        |
| 104 | 104 | */  | 
                                                        
| 105 | 105 | public function disableTotp(Request $request)  | 
                                                        
| 106 | 106 |      { | 
                                                        
@@ -67,7 +67,7 @@  | 
                                                    ||
| 67 | 67 | *  | 
                                                        
| 68 | 68 | * @param \Illuminate\Http\Request $request  | 
                                                        
| 69 | 69 | * @param string $uuid  | 
                                                        
| 70 | - * @return \Illuminate\Contracts\View\View  | 
                                                        |
| 70 | + * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 71 | 71 | */  | 
                                                        
| 72 | 72 | public function getStatus(Request $request, $uuid)  | 
                                                        
| 73 | 73 |      { | 
                                                        
@@ -169,7 +169,7 @@  | 
                                                    ||
| 169 | 169 | * @param Request $request  | 
                                                        
| 170 | 170 | * @param string $uuid  | 
                                                        
| 171 | 171 | * @param string $file  | 
                                                        
| 172 | - * @return \Illuminate\Contracts\View\View  | 
                                                        |
| 172 | + * @return \Illuminate\Http\RedirectResponse  | 
                                                        |
| 173 | 173 | */  | 
                                                        
| 174 | 174 | public function getDownloadFile(Request $request, $uuid, $file)  | 
                                                        
| 175 | 175 |      { | 
                                                        
@@ -107,7 +107,7 @@ discard block  | 
                                                    ||
| 107 | 107 | * Determine if we need to change the server's daemonSecret value to  | 
                                                        
| 108 | 108 | * match that of the user if they are a subuser.  | 
                                                        
| 109 | 109 | *  | 
                                                        
| 110 | - * @param Illuminate\Database\Eloquent\Model\Server $server  | 
                                                        |
| 110 | + * @param Server $server  | 
                                                        |
| 111 | 111 | * @return string  | 
                                                        
| 112 | 112 | */  | 
                                                        
| 113 | 113 | public static function getUserDaemonSecret(Server $server)  | 
                                                        
@@ -131,6 +131,7 @@ discard block  | 
                                                    ||
| 131 | 131 | * Returns array of all servers owned by the logged in user.  | 
                                                        
| 132 | 132 | * Returns all users servers if user is a root admin.  | 
                                                        
| 133 | 133 | *  | 
                                                        
| 134 | + * @param integer $paginate  | 
                                                        |
| 134 | 135 | * @return \Illuminate\Database\Eloquent\Collection  | 
                                                        
| 135 | 136 | */  | 
                                                        
| 136 | 137 | public static function getUserServers($paginate = null)  | 
                                                        
@@ -42,6 +42,7 @@ discard block  | 
                                                    ||
| 42 | 42 | /**  | 
                                                        
| 43 | 43 | * Create a new notification instance.  | 
                                                        
| 44 | 44 | *  | 
                                                        
| 45 | + * @param string $token  | 
                                                        |
| 45 | 46 | * @return void  | 
                                                        
| 46 | 47 | */  | 
                                                        
| 47 | 48 | public function __construct($token)  | 
                                                        
@@ -53,7 +54,7 @@ discard block  | 
                                                    ||
| 53 | 54 | * Get the notification's delivery channels.  | 
                                                        
| 54 | 55 | *  | 
                                                        
| 55 | 56 | * @param mixed $notifiable  | 
                                                        
| 56 | - * @return array  | 
                                                        |
| 57 | + * @return string[]  | 
                                                        |
| 57 | 58 | */  | 
                                                        
| 58 | 59 | public function via($notifiable)  | 
                                                        
| 59 | 60 |      { | 
                                                        
@@ -28,7 +28,7 @@  | 
                                                    ||
| 28 | 28 | * Get the notification's delivery channels.  | 
                                                        
| 29 | 29 | *  | 
                                                        
| 30 | 30 | * @param mixed $notifiable  | 
                                                        
| 31 | - * @return array  | 
                                                        |
| 31 | + * @return string[]  | 
                                                        |
| 32 | 32 | */  | 
                                                        
| 33 | 33 | public function via($notifiable)  | 
                                                        
| 34 | 34 |      { | 
                                                        
@@ -19,7 +19,6 @@  | 
                                                    ||
| 19 | 19 | /**  | 
                                                        
| 20 | 20 | * Define your route model bindings, pattern filters, etc.  | 
                                                        
| 21 | 21 | *  | 
                                                        
| 22 | - * @param \Illuminate\Routing\Router $router  | 
                                                        |
| 23 | 22 | * @return void  | 
                                                        
| 24 | 23 | */  | 
                                                        
| 25 | 24 | public function boot()  | 
                                                        
@@ -35,6 +35,9 @@  | 
                                                    ||
| 35 | 35 | protected $node;  | 
                                                        
| 36 | 36 | protected $client;  | 
                                                        
| 37 | 37 | |
| 38 | + /**  | 
                                                        |
| 39 | + * @param Models\Server $server  | 
                                                        |
| 40 | + */  | 
                                                        |
| 38 | 41 | public function __construct($server)  | 
                                                        
| 39 | 42 |      { | 
                                                        
| 40 | 43 | $this->server = ($server instanceof Models\Server) ? $server : Models\Server::findOrFail($server);  | 
                                                        
@@ -24,7 +24,6 @@  | 
                                                    ||
| 24 | 24 | |
| 25 | 25 | namespace Pterodactyl\Repositories\Daemon;  | 
                                                        
| 26 | 26 | |
| 27 | -use GuzzleHttp\Client;  | 
                                                        |
| 28 | 27 | use Pterodactyl\Models;  | 
                                                        
| 29 | 28 | use GuzzleHttp\Exception\RequestException;  | 
                                                        
| 30 | 29 | use Pterodactyl\Exceptions\DisplayException;  |