@@ -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) |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | namespace Pterodactyl\Repositories\Daemon; |
26 | 26 | |
27 | -use GuzzleHttp\Client; |
|
28 | 27 | use Pterodactyl\Models; |
29 | 28 | use GuzzleHttp\Exception\RequestException; |
30 | 29 | use Pterodactyl\Exceptions\DisplayException; |
@@ -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); |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | namespace Pterodactyl\Repositories\Daemon; |
26 | 26 | |
27 | -use GuzzleHttp\Client; |
|
28 | 27 | use Pterodactyl\Models; |
29 | 28 | use Pterodactyl\Exceptions\DisplayException; |
30 | 29 |
@@ -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); |
@@ -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 |
@@ -25,7 +25,6 @@ |
||
25 | 25 | namespace Pterodactyl\Repositories\ServiceRepository; |
26 | 26 | |
27 | 27 | use DB; |
28 | -use Uuid; |
|
29 | 28 | use Storage; |
30 | 29 | use Validator; |
31 | 30 | use Pterodactyl\Models; |
@@ -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 | { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * caching purposes. |
46 | 46 | * |
47 | 47 | * @param \Illuminate\Http\Request $request |
48 | - * @return \Illuminate\Http\Response |
|
48 | + * @return \Illuminate\Http\JsonResponse |
|
49 | 49 | */ |
50 | 50 | public function list(Request $request) |
51 | 51 | { |
@@ -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 | { |