@@ -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 | { |
@@ -33,6 +33,9 @@ |
||
33 | 33 | { |
34 | 34 | protected $server; |
35 | 35 | |
36 | + /** |
|
37 | + * @param Models\Server $server |
|
38 | + */ |
|
36 | 39 | public function __construct($server) |
37 | 40 | { |
38 | 41 | $this->server = ($server instanceof Models\Server) ? $server : Models\Server::findOrFail($server); |
@@ -33,6 +33,9 @@ |
||
33 | 33 | { |
34 | 34 | protected $server; |
35 | 35 | |
36 | + /** |
|
37 | + * @param Models\Server $server |
|
38 | + */ |
|
36 | 39 | public function __construct($server) |
37 | 40 | { |
38 | 41 | $this->server = ($server instanceof Models\Server) ? $server : Models\Server::findOrFail($server); |
@@ -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 | { |
@@ -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 | { |