@@ -2,9 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Pterodactyl\Exceptions; |
| 4 | 4 | |
| 5 | -use Log; |
|
| 6 | 5 | use Exception; |
| 7 | -use DisplayException; |
|
| 8 | 6 | use Illuminate\Auth\AuthenticationException; |
| 9 | 7 | use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
| 10 | 8 | |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * Handles POST request to create a new option. |
| 57 | 57 | * |
| 58 | 58 | * @param \Illuminate\Http\Request $request |
| 59 | - * @return \Illuminate\Response\RedirectResponse |
|
| 59 | + * @return \Illuminate\Http\RedirectResponse |
|
| 60 | 60 | */ |
| 61 | 61 | public function store(Request $request) |
| 62 | 62 | { |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | * Handle create pack request and route user to location. |
| 85 | 85 | * |
| 86 | 86 | * @param \Illuminate\Http\Request $request |
| 87 | - * @return \Illuminate\View\View |
|
| 87 | + * @return \Illuminate\Http\RedirectResponse |
|
| 88 | 88 | */ |
| 89 | 89 | public function store(Request $request) |
| 90 | 90 | { |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | * Create server controller method. |
| 85 | 85 | * |
| 86 | 86 | * @param \Illuminate\Http\Request $request |
| 87 | - * @return \Illuminate\Response\RedirectResponse |
|
| 87 | + * @return \Illuminate\Http\RedirectResponse |
|
| 88 | 88 | */ |
| 89 | 89 | public function store(Request $request) |
| 90 | 90 | { |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use Fractal; |
| 28 | 28 | use Illuminate\Http\Request; |
| 29 | 29 | use Pterodactyl\Models\Server; |
| 30 | -use GuzzleHttp\Exception\ConnectException; |
|
| 31 | 30 | use Pterodactyl\Http\Controllers\Controller; |
| 32 | 31 | use Pterodactyl\Transformers\User\ServerTransformer; |
| 33 | 32 | use Pterodactyl\Repositories\Daemon\PowerRepository; |
@@ -28,13 +28,11 @@ |
||
| 28 | 28 | use Crypt; |
| 29 | 29 | use Config; |
| 30 | 30 | use Closure; |
| 31 | -use Response; |
|
| 32 | 31 | use Debugbar; |
| 33 | 32 | use IPTools\IP; |
| 34 | 33 | use IPTools\Range; |
| 35 | 34 | use Illuminate\Http\Request; |
| 36 | 35 | use Pterodactyl\Models\APIKey; |
| 37 | -use Pterodactyl\Models\APIPermission; |
|
| 38 | 36 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; // 400 |
| 39 | 37 | use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; // 403 |
| 40 | 38 | |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | * Constructor for API Repository. |
| 56 | 56 | * |
| 57 | 57 | * @param null|\Pterodactyl\Models\User $user |
| 58 | - * @return void |
|
| 58 | + * @return string |
|
| 59 | 59 | */ |
| 60 | 60 | public function __construct(User $user = null) |
| 61 | 61 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * Constuctor for repository. |
| 42 | 42 | * |
| 43 | - * @param int|\Pterodactyl\Models\Server $server |
|
| 43 | + * @param Models\Server $server |
|
| 44 | 44 | * @return void |
| 45 | 45 | */ |
| 46 | 46 | public function __construct($server) |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * Sends a power option to the daemon. |
| 53 | 53 | * |
| 54 | 54 | * @param string $action |
| 55 | - * @return string |
|
| 55 | + * @return \Psr\Http\Message\StreamInterface |
|
| 56 | 56 | * |
| 57 | 57 | * @throws \GuzzleHttp\Exception\RequestException |
| 58 | 58 | * @throws \Pterodactyl\Exceptions\DisplayException |
@@ -858,7 +858,7 @@ |
||
| 858 | 858 | * |
| 859 | 859 | * @param int $id |
| 860 | 860 | * @param string $password |
| 861 | - * @return void |
|
| 861 | + * @return boolean |
|
| 862 | 862 | * |
| 863 | 863 | * @throws \Pterodactyl\Exceptions\DisplayValidationException |
| 864 | 864 | */ |