@@ -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) |
@@ -42,7 +42,6 @@ |
||
| 42 | 42 | /** |
| 43 | 43 | * Create a new job instance. |
| 44 | 44 | * |
| 45 | - * @param int $server |
|
| 46 | 45 | * @return void |
| 47 | 46 | */ |
| 48 | 47 | public function __construct($id) |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | 110 | * Creates a new subuser on the server. |
| 111 | - * @param int $id The ID of the server to add this subuser to. |
|
| 111 | + * @param int $sid The ID of the server to add this subuser to. |
|
| 112 | 112 | * @param array $data |
| 113 | 113 | * @throws DisplayValidationException |
| 114 | 114 | * @throws DisplayException |
@@ -214,7 +214,6 @@ discard block |
||
| 214 | 214 | /** |
| 215 | 215 | * Revokes a users permissions on a server. |
| 216 | 216 | * @param int $id The ID of the subuser row in MySQL. |
| 217 | - * @param array $data |
|
| 218 | 217 | * @throws DisplayValidationException |
| 219 | 218 | * @throws DisplayException |
| 220 | 219 | * @return void |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * |
| 57 | 57 | * @param \Pterodactyl\Models\User $user |
| 58 | 58 | * @param string $ability |
| 59 | - * @return bool |
|
| 59 | + * @return boolean|null |
|
| 60 | 60 | */ |
| 61 | 61 | public function before(User $user, $ability) |
| 62 | 62 | { |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | * |
| 504 | 504 | * @param \Pterodactyl\Models\User $user |
| 505 | 505 | * @param \Pterodactyl\Models\Server $server |
| 506 | - * @param $permission |
|
| 506 | + * @param string $permission |
|
| 507 | 507 | * @return bool |
| 508 | 508 | */ |
| 509 | 509 | private function checkPermission(User $user, Server $server, $permission) |
@@ -47,10 +47,6 @@ 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 | 50 | * @return bool|int |
| 55 | 51 | */ |
| 56 | 52 | public function create(array $data) |
@@ -167,7 +163,7 @@ discard block |
||
| 167 | 163 | * Deletes a user on the panel, returns the number of records deleted. |
| 168 | 164 | * |
| 169 | 165 | * @param int $id |
| 170 | - * @return int |
|
| 166 | + * @return boolean |
|
| 171 | 167 | */ |
| 172 | 168 | public function delete($id) |
| 173 | 169 | { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | /** |
| 50 | 50 | * Update details for a users account. |
| 51 | 51 | * @param \Illuminate\Http\Request $request |
| 52 | - * @return void |
|
| 52 | + * @return null|\Illuminate\Http\RedirectResponse |
|
| 53 | 53 | */ |
| 54 | 54 | public function update(Request $request) |
| 55 | 55 | { |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * Returns a JSON tree of all avaliable nodes in a given location. |
| 188 | 188 | * |
| 189 | 189 | * @param \Illuminate\Http\Request $request |
| 190 | - * @return \Illuminate\Contracts\View\View |
|
| 190 | + * @return \Illuminate\Http\JsonResponse |
|
| 191 | 191 | */ |
| 192 | 192 | public function postNewServerGetNodes(Request $request) |
| 193 | 193 | { |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | * Returns a JSON tree of all avaliable IPs and Ports on a given node. |
| 205 | 205 | * |
| 206 | 206 | * @param \Illuminate\Http\Request $request |
| 207 | - * @return \Illuminate\Contracts\View\View |
|
| 207 | + * @return \Illuminate\Http\JsonResponse |
|
| 208 | 208 | */ |
| 209 | 209 | public function postNewServerGetIps(Request $request) |
| 210 | 210 | { |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | * Returns a JSON tree of all avaliable options for a given service. |
| 233 | 233 | * |
| 234 | 234 | * @param \Illuminate\Http\Request $request |
| 235 | - * @return \Illuminate\Contracts\View\View |
|
| 235 | + * @return \Illuminate\Http\JsonResponse |
|
| 236 | 236 | */ |
| 237 | 237 | public function postNewServerServiceOptions(Request $request) |
| 238 | 238 | { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * Returns a JSON tree of all avaliable variables for a given service option. |
| 252 | 252 | * |
| 253 | 253 | * @param \Illuminate\Http\Request $request |
| 254 | - * @return \Illuminate\Contracts\View\View |
|
| 254 | + * @return \Illuminate\Http\JsonResponse |
|
| 255 | 255 | */ |
| 256 | 256 | public function postNewServerOptionDetails(Request $request) |
| 257 | 257 | { |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * Returns the hash information for a pack. |
| 65 | 65 | * |
| 66 | 66 | * @param \Illuminate\Http\Request $request |
| 67 | - * @return \Illuminate\Http\Response |
|
| 67 | + * @return \Illuminate\Http\JsonResponse |
|
| 68 | 68 | */ |
| 69 | 69 | public function hash(Request $request, $uuid) |
| 70 | 70 | { |