@@ -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 | { |
@@ -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() |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * |
| 98 | 98 | * @throws DisplayException |
| 99 | 99 | * @throws DisplayValidationException |
| 100 | - * @return void |
|
| 100 | + * @return boolean |
|
| 101 | 101 | */ |
| 102 | 102 | public function create($id, $data) |
| 103 | 103 | { |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | * @param \Pterodactyl\Models\Node $node |
| 121 | 121 | * @param int $memory |
| 122 | 122 | * @param int $disk |
| 123 | - * @return bool Returns true if this information would not put the node over it's limit. |
|
| 123 | + * @return boolean|null Returns true if this information would not put the node over it's limit. |
|
| 124 | 124 | */ |
| 125 | 125 | protected static function checkNodeAllocation(Models\Node $node, $memory, $disk) |
| 126 | 126 | { |
@@ -68,6 +68,7 @@ |
||
| 68 | 68 | * |
| 69 | 69 | * @param string $table |
| 70 | 70 | * @param string $field |
| 71 | + * @param string $attachedUuid |
|
| 71 | 72 | * @return string |
| 72 | 73 | */ |
| 73 | 74 | public function generateShort($table = 'servers', $field = 'uuidShort', $attachedUuid = null) |