@@ -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 | { |