@@ -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 | { |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * Define your route model bindings, pattern filters, etc. |
| 21 | 21 | * |
| 22 | - * @param \Illuminate\Routing\Router $router |
|
| 23 | 22 | * @return void |
| 24 | 23 | */ |
| 25 | 24 | public function boot() |
@@ -69,7 +69,6 @@ |
||
| 69 | 69 | /** |
| 70 | 70 | * Constructor |
| 71 | 71 | * |
| 72 | - * @param string $server The server Short UUID |
|
| 73 | 72 | */ |
| 74 | 73 | public function __construct($uuid) |
| 75 | 74 | { |
@@ -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); |
@@ -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 | |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | * Updates the password for a given database. |
| 120 | 120 | * @param int $database The ID of the database to modify. |
| 121 | 121 | * @param string $password The new password to use for the database. |
| 122 | - * @return bool |
|
| 122 | + * @return boolean|null |
|
| 123 | 123 | */ |
| 124 | 124 | public function modifyPassword($database, $password) |
| 125 | 125 | { |
@@ -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 | { |
@@ -36,6 +36,9 @@ |
||
| 36 | 36 | // |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $error |
|
| 41 | + */ |
|
| 39 | 42 | public static function log(Request $request, $error = null, $authorized = false) |
| 40 | 43 | { |
| 41 | 44 | if ($request->bearerToken() && !empty($request->bearerToken())) { |
@@ -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) |