@@ -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 |
@@ -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 | { |
@@ -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 | { |
@@ -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 | { |
@@ -65,7 +65,6 @@ |
||
| 65 | 65 | /** |
| 66 | 66 | * Constructor. |
| 67 | 67 | * |
| 68 | - * @param string $server The server Short UUID |
|
| 69 | 68 | */ |
| 70 | 69 | public function __construct($uuid) |
| 71 | 70 | { |
@@ -35,6 +35,9 @@ |
||
| 35 | 35 | // |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $error |
|
| 40 | + */ |
|
| 38 | 41 | public static function log(Request $request, $error = null, $authorized = false) |
| 39 | 42 | { |
| 40 | 43 | if ($request->bearerToken() && ! empty($request->bearerToken())) { |
@@ -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() |
@@ -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 | { |