@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * |
| 98 | 98 | * @throws DisplayException |
| 99 | 99 | * @throws DisplayValidationException |
| 100 | - * @return void |
|
| 100 | + * @return boolean |
|
| 101 | 101 | */ |
| 102 | 102 | public function create($id, $data) |
| 103 | 103 | { |
@@ -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) |
@@ -31,7 +31,6 @@ |
||
| 31 | 31 | use IPTools\Range; |
| 32 | 32 | use Dingo\Api\Routing\Route; |
| 33 | 33 | use Illuminate\Http\Request; |
| 34 | -use Pterodactyl\Models\User; |
|
| 35 | 34 | use Pterodactyl\Models\APIKey; |
| 36 | 35 | use Pterodactyl\Models\APIPermission; |
| 37 | 36 | use Pterodactyl\Services\APILogService; |
@@ -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 Pterodactyl\Exceptions\DisplayException; |
| 30 | 29 | |
@@ -35,6 +35,9 @@ |
||
| 35 | 35 | protected $node; |
| 36 | 36 | protected $client; |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param Models\Server $server |
|
| 40 | + */ |
|
| 38 | 41 | public function __construct($server) |
| 39 | 42 | { |
| 40 | 43 | $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 |
@@ -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) |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | /** |
| 91 | 91 | * Determines if a user has permissions. |
| 92 | 92 | * |
| 93 | - * @return bool |
|
| 93 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
| 94 | 94 | */ |
| 95 | 95 | public function permissions() |
| 96 | 96 | { |