@@ -25,7 +25,6 @@ |
||
| 25 | 25 | namespace Pterodactyl\Repositories\Daemon; |
| 26 | 26 | |
| 27 | 27 | use Exception; |
| 28 | -use GuzzleHttp\Client; |
|
| 29 | 28 | use Pterodactyl\Models\Server; |
| 30 | 29 | use Pterodactyl\Exceptions\DisplayException; |
| 31 | 30 | use Pterodactyl\Repositories\HelperRepository; |
@@ -133,7 +133,6 @@ |
||
| 133 | 133 | /** |
| 134 | 134 | * Returns non-administrative headers for accessing a server on the daemon. |
| 135 | 135 | * |
| 136 | - * @param string $uuid |
|
| 137 | 136 | * @return array |
| 138 | 137 | */ |
| 139 | 138 | public function guzzleHeaders() |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | * Updates the password for a given database. |
| 117 | 117 | * @param int $id The ID of the database to modify. |
| 118 | 118 | * @param string $password The new password to use for the database. |
| 119 | - * @return bool |
|
| 119 | + * @return boolean|null |
|
| 120 | 120 | */ |
| 121 | 121 | public function modifyPassword($id, $password) |
| 122 | 122 | { |
@@ -47,11 +47,7 @@ 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 | - * @return bool|int |
|
| 50 | + * @return Models\User |
|
| 55 | 51 | */ |
| 56 | 52 | public function create(array $data) |
| 57 | 53 | { |
@@ -163,7 +159,7 @@ discard block |
||
| 163 | 159 | * Deletes a user on the panel, returns the number of records deleted. |
| 164 | 160 | * |
| 165 | 161 | * @param int $id |
| 166 | - * @return int |
|
| 162 | + * @return boolean |
|
| 167 | 163 | */ |
| 168 | 164 | public function delete($id) |
| 169 | 165 | { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @param \Pterodactyl\Models\User $user |
| 46 | 46 | * @param \Pterodactyl\Models\Server $server |
| 47 | - * @param $permission |
|
| 47 | + * @param string $permission |
|
| 48 | 48 | * @return bool |
| 49 | 49 | */ |
| 50 | 50 | private function checkPermission(User $user, Server $server, $permission) |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * |
| 74 | 74 | * @param \Pterodactyl\Models\User $user |
| 75 | 75 | * @param string $ability |
| 76 | - * @return bool |
|
| 76 | + * @return boolean|null |
|
| 77 | 77 | */ |
| 78 | 78 | public function before(User $user, $ability) |
| 79 | 79 | { |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | /** |
| 77 | 77 | * Adds a new server to the system. |
| 78 | 78 | * @param array $data An array of data descriptors for creating the server. These should align to the columns in the database. |
| 79 | - * @return int |
|
| 79 | + * @return Models\Server |
|
| 80 | 80 | */ |
| 81 | 81 | public function create(array $data) |
| 82 | 82 | { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * Returns a JSON tree of all avaliable nodes in a given location. |
| 106 | 106 | * |
| 107 | 107 | * @param \Illuminate\Http\Request $request |
| 108 | - * @return \Illuminate\Contracts\View\View |
|
| 108 | + * @return \Illuminate\Http\JsonResponse |
|
| 109 | 109 | */ |
| 110 | 110 | public function postNewServerGetNodes(Request $request) |
| 111 | 111 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * Returns a JSON tree of all avaliable IPs and Ports on a given node. |
| 123 | 123 | * |
| 124 | 124 | * @param \Illuminate\Http\Request $request |
| 125 | - * @return \Illuminate\Contracts\View\View |
|
| 125 | + * @return \Illuminate\Http\JsonResponse |
|
| 126 | 126 | */ |
| 127 | 127 | public function postNewServerGetIps(Request $request) |
| 128 | 128 | { |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | * Returns a JSON tree of all avaliable options for a given service. |
| 151 | 151 | * |
| 152 | 152 | * @param \Illuminate\Http\Request $request |
| 153 | - * @return \Illuminate\Contracts\View\View |
|
| 153 | + * @return \Illuminate\Http\JsonResponse |
|
| 154 | 154 | */ |
| 155 | 155 | public function postNewServerServiceOption(Request $request) |
| 156 | 156 | { |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * Returns a JSON tree of all avaliable variables for a given service option. |
| 170 | 170 | * |
| 171 | 171 | * @param \Illuminate\Http\Request $request |
| 172 | - * @return \Illuminate\Contracts\View\View |
|
| 172 | + * @return \Illuminate\Http\JsonResponse |
|
| 173 | 173 | */ |
| 174 | 174 | public function postNewServerOptionDetails(Request $request) |
| 175 | 175 | { |